[xwiki-users] Can't install Column Macro due to lack of Programming Rights
Ok, so I want to install the Column Macro, but I am getting this error when I try to install it by the Extension Manager: Programming right is required to install extension [jeromevelociter:column-macro-1.0] on namespace [wiki:xwiki] So I go to the XWiki Administration --> Rights --> And I grant the Admin Programming Rights for the XWiki Administation (there's now a green mark/tick). But I still can't install the macro. If I select the XWiki space, I can't set any programming rights (that column is only available on the XWiki Administration). Help!!! -- View this message in context: http://xwiki.475771.n2.nabble.com/Can-t-install-Column-Macro-due-to-lack-of-... Sent from the XWiki- Users mailing list archive at Nabble.com.
Thinking about this... An administrator should ALWAYS be able to install any extension...so guys...please fix this! -- View this message in context: http://xwiki.475771.n2.nabble.com/Can-t-install-Column-Macro-due-to-lack-of-... Sent from the XWiki- Users mailing list archive at Nabble.com.
On 13 Mar 2014 at 13:12:44, Hamster ([email protected](mailto:[email protected])) wrote:
Thinking about this...
An administrator should ALWAYS be able to install any extension...so guys...please fix this!
An administrator isn’t the highest authority in a wiki and he doesn’t have PR by default. See http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Access+Rights#HSpecialpe... Thanks -Vincent
Ok, so what does this green tick do? <http://xwiki.475771.n2.nabble.com/file/n7589571/PR.jpg> -- View this message in context: http://xwiki.475771.n2.nabble.com/Can-t-install-Column-Macro-due-to-lack-of-... Sent from the XWiki- Users mailing list archive at Nabble.com.
On 13 Mar 2014 at 14:16:56, Hamster ([email protected](mailto:[email protected])) wrote:
Ok, so what does this green tick do?
It gives PR to your “Admin” user but if your Admin user is *local* to a subwiki it won’t have any effect since you need a global user to have PR on the farm to be able to have PR on a subwiki. Otherwise any local subwiki admin would be able to modify anything anywhere in the farm. I agree that an improvement would be to NOT show this column in the admin of subwikis. You could create a jira issue for that IMO. Thanks -Vincent
Ok, so I set "PR" rights to myself...but "I" can not administer the Wiki. So I can't get to the Extension Manager to install the Column Macro!!! So now I need to give myself full admin rights to the wiki too??? As you can see...this is getting rediculously complicated! -- View this message in context: http://xwiki.475771.n2.nabble.com/Can-t-install-Column-Macro-due-to-lack-of-... Sent from the XWiki- Users mailing list archive at Nabble.com.
Please start by explaining what you did precisely. I still don’t know what you’ve done. I explained different cases where what you did wouldn’t work but I’m guessing since you didn’t take the time to explain what you did… I’ve lost a lot of my time already, trying to help you and trying to guess what you did… Thanks -Vincent On 13 Mar 2014 at 14:33:43, Hamster ([email protected](mailto:[email protected])) wrote:
Ok, so I set "PR" rights to myself...but "I" can not administer the Wiki. So I can't get to the Extension Manager to install the Column Macro!!!
So now I need to give myself full admin rights to the wiki too???
As you can see...this is getting rediculously complicated!
Ok, I will try to explain: We were on XWiki 4.0 previously. On that XWiki I used the "Admin" user to manage the XWiki, installing extensions never gave me any trouble. Now, we are moving to XWiki 5.4.2, and "suddenly" my Admin user can't be used anymore to install a simple Extension like the "Column Maco". The user who installs the "Column Macro" needs to have PR, but the Admin user doen't have PR by default. But giving the Admin user PR doesn't cut it. The Admin user still can't install the "Column Macro". So now I am trying to grant *myself* both PR rights and the right to administer the XWiki (as I need to be able to get to the Extension Manager to install the "Column Macro"). -- View this message in context: http://xwiki.475771.n2.nabble.com/Can-t-install-Column-Macro-due-to-lack-of-... Sent from the XWiki- Users mailing list archive at Nabble.com.
What I have done now: -I have given myself "Admin Rights" to the XWiki space. This way I can administer the XWiki. (Administration --> Users & Groups --> Rights --> Filter on "myself", then select "Edit space preferences" --> "XWiki", than add green mark/tick under "Admin") -I have given myself "PR" to (Administration --> Users & Groups --> Rights --> Filter on "myself", "Edit Wiki Preferences" --> "Wiki administration", than add green mark/thick under "Programming") Result: I can't install the "Column Macro" :-( The same error message is being displayed. -- View this message in context: http://xwiki.475771.n2.nabble.com/Can-t-install-Column-Macro-due-to-lack-of-... Sent from the XWiki- Users mailing list archive at Nabble.com.
Starting job of type [installplan] with identifier [extension/plan/jeromevelociter:column-macro/wiki:xwiki] Resolving extension [jeromevelociter:column-macro-1.0] on namespace [xwiki] Programming right is required to install extension [jeromevelociter:column-macro-1.0] on namespace [wiki:xwiki] class org.xwiki.extension.InstallException: Failed to resolve extension at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:698) at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:389) at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:288) at org.xwiki.extension.job.internal.AbstractInstallPlanJob.start(AbstractInstallPlanJob.java:218) at org.xwiki.extension.job.internal.InstallPlanJob.runInternal(InstallPlanJob.java:88) at org.xwiki.job.internal.AbstractJob.run(AbstractJob.java:154) at org.xwiki.job.internal.DefaultJobManager.runJob(DefaultJobManager.java:134) at org.xwiki.job.internal.DefaultJobManager.run(DefaultJobManager.java:113) at java.lang.Thread.run(Thread.java:701) Caused by: class org.xwiki.extension.InstallException: Programming right is required to install extension [jeromevelociter:column-macro-1.0] on namespace [wiki:xwiki] at org.xwiki.extension.script.internal.XWikiExtensionValidator.checkInstall(XWikiExtensionValidator.java:175) at org.xwiki.extension.handler.internal.AbstractExtensionHandler.checkInstall(AbstractExtensionHandler.java:101) at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:800) at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:696) at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:389) at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:288) at org.xwiki.extension.job.internal.AbstractInstallPlanJob.start(AbstractInstallPlanJob.java:218) at org.xwiki.extension.job.internal.InstallPlanJob.runInternal(InstallPlanJob.java:88) at org.xwiki.job.internal.AbstractJob.run(AbstractJob.java:154) at org.xwiki.job.internal.DefaultJobManager.runJob(DefaultJobManager.java:134) at org.xwiki.job.internal.DefaultJobManager.run(DefaultJobManager.java:113) at java.lang.Thread.run(Thread.java:701) Finished job of type [installplan] with identifier [extension/plan/jeromevelociter:column-macro/wiki:xwiki] -- View this message in context: http://xwiki.475771.n2.nabble.com/Can-t-install-Column-Macro-due-to-lack-of-... Sent from the XWiki- Users mailing list archive at Nabble.com.
Have you tried to restart the WebServer application? I don’t know the reason but the new rights management methods is not working in my XWiki 5.4.2, So, in order to update the permissions that I have set I need to: Or restart my tomcat each time that I change my rights in any page/space/wiki Or configure the Xwiki to use the older Rigths management method though the xwiki.config (you need uncomment the xwiki.authentication.rightsclass=com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl line) I am guessing that your rights is not being updated as your environment too. In other words, I am wondering that you agave access to the admin user but the xwiki did not update it. Danilo Grupo Energisa Danilo A. Oliveira Analista Suporte Aplicacao TI - DPTO CORP. DE INFRAESTR. TI e-mail: [email protected] | tel: (32) 3429-6342 | cel: (32) 8452-9478 Esta mensagem contém informação confidencial. Se você a recebeu por engano, não divulgue ou copie seu conteúdo. Por favor, avise ao remetente imediatamente e apague-a do computador. Privileged and confidential. If this message has been received by mistake, do not disclose or copy its contents. Please notify sender and delete immediately. -----Mensagem original----- De: users [mailto:[email protected]] Em nome de Hamster Enviada em: quinta-feira, 13 de março de 2014 11:25 Para: [email protected] Assunto: Re: [xwiki-users] Can't install Column Macro due to lack of Programming Rights Starting job of type [installplan] with identifier [extension/plan/jeromevelociter:column-macro/wiki:xwiki] Resolving extension [jeromevelociter:column-macro-1.0] on namespace [xwiki] Programming right is required to install extension [jeromevelociter:column-macro-1.0] on namespace [wiki:xwiki] class org.xwiki.extension.InstallException: Failed to resolve extension at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:698) at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:389) at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:288) at org.xwiki.extension.job.internal.AbstractInstallPlanJob.start(AbstractInstallPlanJob.java:218) at org.xwiki.extension.job.internal.InstallPlanJob.runInternal(InstallPlanJob.java:88) at org.xwiki.job.internal.AbstractJob.run(AbstractJob.java:154) at org.xwiki.job.internal.DefaultJobManager.runJob(DefaultJobManager.java:134) at org.xwiki.job.internal.DefaultJobManager.run(DefaultJobManager.java:113) at java.lang.Thread.run(Thread.java:701) Caused by: class org.xwiki.extension.InstallException: Programming right is required to install extension [jeromevelociter:column-macro-1.0] on namespace [wiki:xwiki] at org.xwiki.extension.script.internal.XWikiExtensionValidator.checkInstall(XWikiExtensionValidator.java:175) at org.xwiki.extension.handler.internal.AbstractExtensionHandler.checkInstall(AbstractExtensionHandler.java:101) at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:800) at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:696) at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:389) at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:288) at org.xwiki.extension.job.internal.AbstractInstallPlanJob.start(AbstractInstallPlanJob.java:218) at org.xwiki.extension.job.internal.InstallPlanJob.runInternal(InstallPlanJob.java:88) at org.xwiki.job.internal.AbstractJob.run(AbstractJob.java:154) at org.xwiki.job.internal.DefaultJobManager.runJob(DefaultJobManager.java:134) at org.xwiki.job.internal.DefaultJobManager.run(DefaultJobManager.java:113) at java.lang.Thread.run(Thread.java:701) Finished job of type [installplan] with identifier [extension/plan/jeromevelociter:column-macro/wiki:xwiki] -- View this message in context: http://xwiki.475771.n2.nabble.com/Can-t-install-Column-Macro-due-to-lack-of-... Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
I am at a total loss right now...can anyone show me *what* (rights) I need to change *where* so I can install the Column Macro? -- View this message in context: http://xwiki.475771.n2.nabble.com/Can-t-install-Column-Macro-due-to-lack-of-... Sent from the XWiki- Users mailing list archive at Nabble.com.
-bump- -- View this message in context: http://xwiki.475771.n2.nabble.com/Can-t-install-Column-Macro-due-to-lack-of-... Sent from the XWiki- Users mailing list archive at Nabble.com.
You need to: - give PR right to the GLOBAL Admin user, or to your administrative user (not on XWiki space specifically, but globally for that user) - be logged with this GLOBAL user when you try to install the extension For the first part, you need to check that you are in the global administration section of your main wiki (not in a space admin, not in a subwiki). For the second part, you can check if your user is local or global by going to the profile (top-right), and check the url. If that url targets a subwiki your user is a local user and it's no good. Logout, browse to the main wiki, and login again. 2014-03-18 7:57 GMT+01:00 Hamster <[email protected]>:
-bump-
-- View this message in context: http://xwiki.475771.n2.nabble.com/Can-t-install-Column-Macro-due-to-lack-of-... Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
participants (4)
-
Danilo Amaral de Oliveira -
Hamster -
Jeremie BOUSQUET -
vincent@massol.net