I found a change in xwiki-core :: XWikiRightServiceImpl :: needAuth(){ try { needsAuth |= context.getWiki().getSpacePreference("authenticate_" + right, "", context).toLowerCase().equals("yes"); } catch (Exception e) { } try { needsAuth |= (context.getWiki().getSpacePreferenceAsInt("authenticate_" + right, 0, context) == 1); } catch (Exception e) { } Where in the 2.2 it used getWiki().getXWikiPreference() and getXWikiPreferenceAsInt(), What is the main reason of this method change?( when i searched in mail archives i could not find a thread regarding getSpacePreference()) But when i change the method and then Start the XE with the previous method issue prevails. Could this error occur due to a change in privilege policies for an Application ? On Wed, Feb 24, 2010 at 3:34 PM, shelan Perera <[email protected]> wrote:
Hi,
Yes, this is a problem that was reported several times. Can you look into this?
Thanks for pointing the source,
I am checking the issue,
Usually if you save the XWiki.OfficeImporterAdmin page with PR rights, this will get fixed.
Actually when i set privileges of the Admin such that he has PR right same error occurred.
But when i set the Unregistered user has PR , issue got fixed.I suspect in new 2.3 there might have an issue Admin is not properly logged in.
So if admin needs to start the server he needs to set PR rights for unregistered user ,Not for himself
I tried to look in the Xwik-Core but hopefully need some insight whether some changes has been done in the core.From out side both 2.2 XE and 2.3 looks alike.
May be we should only check admin rights and not PR rights. (will need a vote)
The source you should look into is OpenOfficeManagerVelocityBridge.java
Thank you,
Regards
Shelan Perera,