[xwiki-devs] Xwiki Office Importer - Privilege error to start the Server
Hi , Recently i checked out the 2.3 XE and try to start using the Xwiki Office Importer with Locally starting (Auto Start = false) When i try to start open office server it gives the error "Inadequate privileges". But the same configuration works with 2.2 XE successfully. What could be the problem. * Randomly once 2.3XE was able to start the server but it failed after that to do so. OS: Ubuntu 9.10 Regards, Shelan Perera
Hi Shelan, On Wed, Feb 24, 2010 at 12:17 PM, shelan Perera <[email protected]> wrote:
Hi ,
Recently i checked out the 2.3 XE and try to start using the Xwiki Office Importer with Locally starting (Auto Start = false) When i try to start open office server it gives the error "Inadequate privileges".
But the same configuration works with 2.2 XE successfully.
What could be the problem.
* Randomly once 2.3XE was able to start the server but it failed after that to do so
Yes, this is a problem that was reported several times. Can you look into this? Usually if you save the XWiki.OfficeImporterAdmin page with PR rights, this will get fixed. 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 Thanks. - Asiri
.
OS: Ubuntu 9.10
Regards,
Shelan Perera _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
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,
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,
Hi Shelan, This kind of issues are best caught by remotely debugging the issue when it happens. Add sources for both office-importer and xwiki-core when remotely debugging from eclipse. Note however that I have built XE trunk recently but I don't experience this kind of a problem with it. I will check it once again as soon as I have a time. - Asiri
participants (2)
-
Asiri Rathnayake -
shelan Perera