Hello,
i have a form that is trying to update xwiki object. For whatever reason, it's not updating. Here is the groovy code. The nearly same code but with "newObject" instead of "getObject" properly create new entries. I can't find out how to tell xwiki that the object has changed and need to be updated in database.
if (request.update !=null){
println ("update mode");
obj = doc.getObject('Configuration.NewsClass',request.doEdit.toInteger())
println "$obj " // Here i get "com.xpn.xwiki.api.Object@69506371"
obj.set("linkfr",request.linkfr)
obj.set("titlefr",request.titlefr)
obj.set("linknl",request.linknl)
obj.set("titlenl",request.titlenl)
obj.set("publication",new java.util.Date().parse("dd/MM/yyyy HH:mm",request.publication))
println obj.get("linkfr"); // Correclty outputs the new value
doc.save("update news entries") // This properly appear in history
println "Saved "+request.doEdit // It says "Saved 53" for example
Regards,
David Delbecq
Our xWiki server is very slow
Our server is running on TomCat version 6
The database is a Windows 2003 MySQL it has 4GB Ram and 2 processors
Does anybody know a solution?
--
View this message in context: http://xwiki.475771.n2.nabble.com/xWiki-server-is-slow-tp7583722.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
Thanks, Eduard. I discovered that setting the " xwiki.authentication.useip=0 " corrected the issue I was seeing with the constant login requests on each click.
I did check, and the xwiki-platform-workspace-api-4.3-rc-1.jar file does not exists in the WEB-INF/lib directory. However, I tried to add it for its functionality, and it broke the entire deployment. Xwiki would not longer load with numerous "ClassNotFound" exceptions. I removed the JAR and pulled out the workspacemanager directory and the site started functioning again.
So - my original issue was solved with the xwiki.authentication.useip setting.
I appreciate your suggestion, and I'll look deeper into what functionality I may be missing without the WorkSpaceManager plugin.
- Casey
-----Original Message-----
From: users-bounces(a)xwiki.org [mailto:users-bounces@xwiki.org] On Behalf Of Eduard Moraru
Sent: Tuesday, February 05, 2013 7:27 AM
To: XWiki Users
Subject: Re: [xwiki-users] XWiki 4.3 will not maintain logged in status of users
Hi Casey,
> Failed to lookup script service for role hint [workspace]
I`m not sure about your login problem, but this log messages suggests that the workspace jar is missing for some reason. Please have a look in your "webapps/xwiki/WEB-INF/lib" folder and see if the file "xwiki-platform-workspace-api-4.3-rc-1.jar" exists. If not, please add it from the default installation zip/war or download it [1] individually.
Hope this helps,
Eduard
----------
[1]
http://maven.xwiki.org/releases/org/xwiki/platform/xwiki-platform-workspace…
On Tue, Jan 29, 2013 at 12:31 AM, Lineberry, Casey < Casey.Lineberry(a)verizonwireless.com> wrote:
> I apologize if this issue is somewhere out in this user list, the web
> or on xwiki.org docs, but I am unable to find anything out there on it.
>
> We're using XWIki 4.3-rc-1 running under Tomcat 7.0.32 on Red Hat 5.7
> 64-bit.
>
> Everything was working fine. Then, all of a sudden, all users are
> prompted to login after every click. It's now impossible to import or
> export any content. Editing is impossible.
>
> In the catalina.out from tomcat, we see the following over and over again:
>
> 2013-01-28 14:11:04,531 [
> https://epswiki.sdc.vzwcorp.com/xwiki/bin/login/XWiki/XWikiLogin?srid=BOeR3…]
> DEBUG o.x.c.ExecutionContext - Getting undefined property
> localization.bundles from execution context.
> 2013-01-28 14:11:04,534 [
> https://epswiki.sdc.vzwcorp.com/xwiki/bin/login/XWiki/XWikiLogin?srid=
> BOeR3uZn&xredirect=%2Fxwiki%2Fbin%2Fexport%2FXWiki%2FXWikiPreferences%
> 3Feditor%3Dglobaladmin%26section%3DExport%26srid%3DBOeR3uZn]
> DEBUG .s.DefaultScriptServiceManager - Failed to lookup script service
> for role hint [workspace]
> org.xwiki.component.manager.ComponentLookupException: Can't find
> descriptor for the component [role = [interface
> org.xwiki.script.service.ScriptService] hint = [workspace]]
> at
> org.xwiki.component.embed.EmbeddableComponentManager.getComponentInsta
> nce(EmbeddableComponentManager.java:355)
> ~[xwiki-commons-legacy-component-default-4.3-rc-1.jar:na]
>
> I am unable to find anything that can point me to where our
> configuration has gotten hosed.
>
> We are configured to use LDAP authentication against an MS Active
> Directory domain. As stated earlier - that has been working fine -
> and this just started happening.
>
> Any direction in how we can get this corrected would be greatly
> appreciated.
>
> Thanks,
>
> Casey
>
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
I apologize if this issue is somewhere out in this user list, the web or on xwiki.org docs, but I am unable to find anything out there on it.
We're using XWIki 4.3-rc-1 running under Tomcat 7.0.32 on Red Hat 5.7 64-bit.
Everything was working fine. Then, all of a sudden, all users are prompted to login after every click. It's now impossible to import or export any content. Editing is impossible.
In the catalina.out from tomcat, we see the following over and over again:
2013-01-28 14:11:04,531 [https://epswiki.sdc.vzwcorp.com/xwiki/bin/login/XWiki/XWikiLogin?srid=BOeR3…] DEBUG o.x.c.ExecutionContext - Getting undefined property localization.bundles from execution context.
2013-01-28 14:11:04,534 [https://epswiki.sdc.vzwcorp.com/xwiki/bin/login/XWiki/XWikiLogin?srid=BOeR3…] DEBUG .s.DefaultScriptServiceManager - Failed to lookup script service for role hint [workspace]
org.xwiki.component.manager.ComponentLookupException: Can't find descriptor for the component [role = [interface org.xwiki.script.service.ScriptService] hint = [workspace]]
at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:355) ~[xwiki-commons-legacy-component-default-4.3-rc-1.jar:na]
I am unable to find anything that can point me to where our configuration has gotten hosed.
We are configured to use LDAP authentication against an MS Active Directory domain. As stated earlier - that has been working fine - and this just started happening.
Any direction in how we can get this corrected would be greatly appreciated.
Thanks,
Casey
Hi all,
We are using LDAP and I want to grant a specific user ONLY view-rights (on
the entire wiki)
As far as I can see, I can't just grant him "view-only" rights to the wiki,
because the space-rights will grant the user edit rights (the user is also
in the XWikiAllUsers group).
Do I need to apply "view-only" rights for that specific user on every space
in the wiki?
If that's the case, how do I handle the fact when an "admin"-user creates a
new space? (where the specific user should have "view-only" rights by
default?) That's kind of dangerous, don't you think?
Or am I missing something?
--
View this message in context: http://xwiki.475771.n2.nabble.com/Grant-only-View-Rights-to-a-specific-user…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi
We just introduced XWIKI in our company and I have noticed that there are
quite a few problems with links.
Among other we have solutions, customers, faq, wiki users...
It would be nice have a complete xref of which page references which other
page, so we can see (among other):
- which customer uses which solutions.
- which wiki user was responsible for which project...
My idea was to use links for this purpose, but I notices the following
problems:
- If the link is contained in a macros like {{warn}}[[target]]{{/warn}},
the backreference is not reported on the target page .
- If the link is contained in an object like {{include
document="FAQCode.FAQSheet"/}}, the backreference is not reported on the
target page.
- If I rename the target page, the links are broken in the two cases
above.
I have screenshots documenting my tests
Have I missed something in XWIKI? Is there another way to solve my
problem?
@XWIKI developper: do you have a schedule to correct this?
Claude
Hello,
using the search tools in Xwiki, i notice that some documents appear several times in search results. Why does lucene gives duplicate results and how to avoid this? Do i need to reindex or so?
Best regards,
David Delbecq
Hi Everyone,
I was just trying to upgrade from 3.0.1 to 4.4. as I figured I can't save XWikiPreferences anymore:
13:07:17,307 [http://0x64plusxwiki.local.0x64plus.de:8080/xwiki/bin/saveandcontinue/XWiki…] [http://0x64plusxwiki.local.0x64plus.de:8080/xwiki/bin/save/XWiki/XWikiPrefe…] ERROR .AbstractFlushingEventListener - Could not synchronize database state with session
org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [com.xpn.xwiki.objects.IntegerProperty#<?xml version="1.0" encoding="UTF-8"?>
<showcomments></showcomments>
]
at org.hibernate.persister.entity.AbstractEntityPersister.check(AbstractEntityPersister.java:1769)
…
Is there any way to fix this?
Or force the save of my current XWikiPreferences?
Thanks in advance,
Florian