Re: [xwiki-users] Problem with update from 7.1.2 to 8.4.1

2017-01-20 Thread Vincent Massol

> On 20 Jan 2017, at 09:28, aleksey-s  wrote:
> 
> Hi Vincent,
> 
> I repait it without XAR! 
> 
> I open my subwiki (where admin ui work correctly) page
> /XWiki/XWikiPreferences?editor=object in object editor and open this page in
> my Main wiki. I compare pages and delete all object which not present in
> /XWiki/XWikiPreferences in my subwiki. After this - admin ui works correctly
> on my Main wiki! (I think that some old objects broke admin UI) 

Ok I’m glad you could repair it!

I’m still curious about what happened. Did you voluntarily add some xobjects at 
some point in the XWiki.XWikiPreferences page?

Could you tell us which xobjects you removed?

Thanks
-Vincent

> Thank for help!
> 
> 
> 
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Problem-with-update-from-7-1-2-to-8-4-1-tp7601982p7602501.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.



Re: [xwiki-users] Problem with update from 7.1.2 to 8.4.1

2017-01-20 Thread aleksey-s
Hi Vincent,

I repait it without XAR! 

I open my subwiki (where admin ui work correctly) page
/XWiki/XWikiPreferences?editor=object in object editor and open this page in
my Main wiki. I compare pages and delete all object which not present in
/XWiki/XWikiPreferences in my subwiki. After this - admin ui works correctly
on my Main wiki! (I think that some old objects broke admin UI) 


Thank for help!



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Problem-with-update-from-7-1-2-to-8-4-1-tp7601982p7602501.html
Sent from the XWiki- Users mailing list archive at Nabble.com.


Re: [xwiki-users] Problem with update from 7.1.2 to 8.4.1

2017-01-19 Thread aleksey-s
In screenshot what I see when go to Administer wiki -
http://imgbox.com/36lnMNJk (columns - Image, User such used in group)



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Problem-with-update-from-7-1-2-to-8-4-1-tp7601982p7602484.html
Sent from the XWiki- Users mailing list archive at Nabble.com.


Re: [xwiki-users] Problem with update from 7.1.2 to 8.4.1

2017-01-19 Thread Vincent Massol
Your issue is really strange. Could you send us a screenshot of what you get 
when you go to the admin page (including the URL in the screenshot)?

(You an use http://imgur.com/ for ex for posting the image)

Otherwise you could use the XWiki REST API to import the XAR, see 
http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI#HRootresources
 (see for XAR).

However it would be better to understand what happened.

Thanks
-Vincent

> On 19 Jan 2017, at 07:43, aleksey-s  wrote:
> 
> Hi,
> 
> Does anyone know how to import xar without ui or may be exist different page
> for import ? (not administrator ui which not work on my wiki)
> 
> 
> 
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Problem-with-update-from-7-1-2-to-8-4-1-tp7601982p7602476.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.



Re: [xwiki-users] Problem with update from 7.1.2 to 8.4.1

2017-01-18 Thread aleksey-s
Hi,

Does anyone know how to import xar without ui or may be exist different page
for import ? (not administrator ui which not work on my wiki)



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Problem-with-update-from-7-1-2-to-8-4-1-tp7601982p7602476.html
Sent from the XWiki- Users mailing list archive at Nabble.com.


Re: [xwiki-users] Problem with update from 7.1.2 to 8.4.1

2017-01-17 Thread aleksey-s
Hi Vincent,

It is good idea but I do not know how to import xar file without admin ui. 

In instruction
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/ImportExport I found
only:

 - Point your browser to
http://localhost:8080/xwiki/bin/admin/XWiki/XWikiPreferences or click on the
"Wiki" menu and then on "Administer Wiki"

But my Admin Application not work (it showing me group members of
XWikiPreferences).

It is possible import xar without ui or may be exist different page for
import ? 



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Problem-with-update-from-7-1-2-to-8-4-1-tp7601982p7602456.html
Sent from the XWiki- Users mailing list archive at Nabble.com.


Re: [xwiki-users] Problem with update from 7.1.2 to 8.4.1

2017-01-17 Thread Vincent Massol
Hi Aleksey,

> On 17 Jan 2017, at 13:24, aleksey-s  wrote:
> 
> Hi, 
> 
> Update: I tried to update my wiki from 7.1.2 to 7.1.4 - administrator panel
> is Ok. 
> 
> If I update from 7.1.2 to 7.4.5 - administrator panel not work (I see group
> members instead panel). All updates I do with Distribution wizard after
> installing .war.  
> If I create new/other wiki on my instalation  - administration panel Ok .
> But in my old wiki it not work.
> 
> If anyone know how to return administration panel
> (/xwiki/bin/admin/XWiki/XWikiPreferences ) in my wiki ?
> 
> I think that not one page/xwiki/bin/admin/XWiki/XWikiPreferences  relate
> with it (I see many changes in Distribution wizard, but don't know what of
> it broke my panel ). 

I guess the simplest would be for you to do a XAR import of the Administration 
application 
(http://extensions.xwiki.org/xwiki/bin/view/Extension/Administration+Application)
 in version 7.4.5:

http://extensions.xwiki.org/xwiki/rest/repository/extensions/org.xwiki.platform%3Axwiki-platform-administration-ui/versions/7.4.5/file?rid=maven-xwiki

This will overwrite all the pages from the admin app. It’s possible that you 
had made some changes to those pages that broke it or that a bad merge was done 
during the Distribution Wizard at some point.

Let us now how it goes.

Thanks
-Vincent

> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Problem-with-update-from-7-1-2-to-8-4-1-tp7601982p7602434.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.



Re: [xwiki-users] Problem with update from 7.1.2 to 8.4.1

2017-01-17 Thread aleksey-s
Hi, 

Update: I tried to update my wiki from 7.1.2 to 7.1.4 - administrator panel
is Ok. 

If I update from 7.1.2 to 7.4.5 - administrator panel not work (I see group
members instead panel). All updates I do with Distribution wizard after
installing .war.  
If I create new/other wiki on my instalation  - administration panel Ok .
But in my old wiki it not work.

If anyone know how to return administration panel
(/xwiki/bin/admin/XWiki/XWikiPreferences ) in my wiki ?

 I think that not one page/xwiki/bin/admin/XWiki/XWikiPreferences  relate
with it (I see many changes in Distribution wizard, but don't know what of
it broke my panel ). 



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Problem-with-update-from-7-1-2-to-8-4-1-tp7601982p7602434.html
Sent from the XWiki- Users mailing list archive at Nabble.com.


Re: [xwiki-users] Problem with update from 7.1.2 to 8.4.1

2016-12-05 Thread aleksey-s
Hi Thomas,

In /xwiki/bin/view/XWiki/XWikiPreferences I see group members too (like as
xwiki/bin/admin/XWiki/XWikiPreferences). And in my logs appear similar
record:

"GET
/xwiki/bin/view/XWiki/XWikiPreferences?xpage=getgroupmembers=1=15=1=member=asc
HTTP/1.1" 200 53 "http://localhost/xwiki/bin/view/XWiki/XWikiPreferences;



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Problem-with-update-from-7-1-2-to-8-4-1-tp7601982p7602006.html
Sent from the XWiki- Users mailing list archive at Nabble.com.


Re: [xwiki-users] Problem with update from 7.1.2 to 8.4.1

2016-12-05 Thread Thomas Mortagne
On Mon, Dec 5, 2016 at 9:42 AM, aleksey-s  wrote:
> Hi Thomas,
>
> I revert changes for XWiki/XWikiPreference and XWiki/XWikiAdminGroup (to
> version before update). For XWikiAdminGroup it helped to restore admin
> rights, but for XWiki/XWikiPreference it not helped.
>
> I don't see Admin UI in /xwiki/bin/admin/XWiki/XWikiPreferences  - page only
> show group members of XWikiPreferences
>
> In web server logs I see GET requests if I open this page:
>
> "GET /xwiki/bin/lock/XWiki/XWikiPreferences?ajax=1=admin& HTTP/1.1"
> 204 0 "http://localhost/xwiki/bin/admin/XWiki/XWikiPreferences;
>
> "GET
> /xwiki/bin/view/XWiki/XWikiPreferences?xpage=getgroupmembers=1=15=1=member=asc
> HTTP/1.1" 200 53 "http://localhost/xwiki/bin/admin/XWiki/XWikiPreferences;

You have xpage=getgroupmembers in your URL which force the group UI.
Try to do to /xwiki/bin/view/XWiki/XWikiPreferences.

>
>
> What component show Admin UI instead group members ? (I think it not work
> for my version)
>
>
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Problem-with-update-from-7-1-2-to-8-4-1-tp7601982p7602004.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.



-- 
Thomas Mortagne


Re: [xwiki-users] Problem with update from 7.1.2 to 8.4.1

2016-12-05 Thread aleksey-s
Hi Thomas,

I revert changes for XWiki/XWikiPreference and XWiki/XWikiAdminGroup (to
version before update). For XWikiAdminGroup it helped to restore admin
rights, but for XWiki/XWikiPreference it not helped. 

I don't see Admin UI in /xwiki/bin/admin/XWiki/XWikiPreferences  - page only
show group members of XWikiPreferences

In web server logs I see GET requests if I open this page:

"GET /xwiki/bin/lock/XWiki/XWikiPreferences?ajax=1=admin& HTTP/1.1"
204 0 "http://localhost/xwiki/bin/admin/XWiki/XWikiPreferences;

"GET
/xwiki/bin/view/XWiki/XWikiPreferences?xpage=getgroupmembers=1=15=1=member=asc
HTTP/1.1" 200 53 "http://localhost/xwiki/bin/admin/XWiki/XWikiPreferences;


What component show Admin UI instead group members ? (I think it not work
for my version)



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Problem-with-update-from-7-1-2-to-8-4-1-tp7601982p7602004.html
Sent from the XWiki- Users mailing list archive at Nabble.com.


Re: [xwiki-users] Problem with update from 7.1.2 to 8.4.1

2016-12-02 Thread Thomas Mortagne
On Fri, Dec 2, 2016 at 2:46 PM, aleksey-s  wrote:
> Thomas, I login under superadmin and see history in
> /xwiki/bin/view/XWiki/XWikiPreferences  - creater was superadmin. For most
> system pages owner is admin. In /xwiki/bin/admin/XWiki/XWikiPreferences
> owner admin. I did update xwiki to 8.4.1 under admin too. But admin and
> superadmin don't see administrator panel in
> /xwiki/bin/view/XWiki/XWikiPreferences. But under admin I may edit
> /xwiki/bin/view/XWiki/XWikiPreferences in object editor.
> And I don't know why my custom  users in admin group (not admin and
> superadmin) lost all rights after update...

Hard to tell without knowing what was your setup.

Usually it means you overwritten XWikiPreference or admin group
members during upgrade. You should make sure the proposed changes is
Ok when you have a conflict.

What you could try I guess is to check the history of
XWiki/XWikiPreference and XWiki/XWikiAdminGroup pages and revert to
the version before the upgrade.

>
> May be it is better to update xwiki from 7.1.2 to 7.4.5 first ?

I don't think it will change anything.

>
>
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Problem-with-update-from-7-1-2-to-8-4-1-tp7601982p7602002.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.



-- 
Thomas Mortagne


Re: [xwiki-users] Problem with update from 7.1.2 to 8.4.1

2016-12-02 Thread aleksey-s
Thomas, I login under superadmin and see history in
/xwiki/bin/view/XWiki/XWikiPreferences  - creater was superadmin. For most
system pages owner is admin. In /xwiki/bin/admin/XWiki/XWikiPreferences
owner admin. I did update xwiki to 8.4.1 under admin too. But admin and
superadmin don't see administrator panel in
/xwiki/bin/view/XWiki/XWikiPreferences. But under admin I may edit
/xwiki/bin/view/XWiki/XWikiPreferences in object editor. 
And I don't know why my custom  users in admin group (not admin and
superadmin) lost all rights after update... 

May be it is better to update xwiki from 7.1.2 to 7.4.5 first ?  



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Problem-with-update-from-7-1-2-to-8-4-1-tp7601982p7602002.html
Sent from the XWiki- Users mailing list archive at Nabble.com.


Re: [xwiki-users] Problem with update from 7.1.2 to 8.4.1

2016-12-02 Thread Thomas Mortagne
On Fri, Dec 2, 2016 at 11:40 AM, aleksey-s  wrote:
> Hi, Thomas!
>
> Thank you for answer. I check /xwiki/bin/admin/XWiki/XWikiPreferences  in
> version before and after update and see this:
>
> 
>
> I use admin user and I don't see anything in administration panel.

The user you are accessing the wiki with is not the subject here.

As you can see form the error you pasted the issue you have is that
the author of XWikiPreference pages (and others) does not have admin
right anymore so the fix is to give it back. So if Admin is the owner
then it means the author of those page is not Admin and you should try
to set a different user as owner (again it's usually the user you used
to do the upgrade).

>
> After update I see many errors such as:
>
> Failed to execute the [velocity] macro. Cause: [The execution of the
> [velocity] script macro is not allowed. Check the rights of its last author
> or the parameters if it's rendered from another script.]. Click on this
> message for details.
>
> I want to change permissions for scripts in admin panel, but it disappeared
> :(
>
>
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Problem-with-update-from-7-1-2-to-8-4-1-tp7601982p7601995.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.



-- 
Thomas Mortagne


Re: [xwiki-users] Problem with update from 7.1.2 to 8.4.1

2016-12-02 Thread aleksey-s
Hi, Thomas!

Thank you for answer. I check /xwiki/bin/admin/XWiki/XWikiPreferences  in
version before and after update and see this:

 

I use admin user and I don't see anything in administration panel.

After update I see many errors such as:

Failed to execute the [velocity] macro. Cause: [The execution of the
[velocity] script macro is not allowed. Check the rights of its last author
or the parameters if it's rendered from another script.]. Click on this
message for details.

I want to change permissions for scripts in admin panel, but it disappeared
:(



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Problem-with-update-from-7-1-2-to-8-4-1-tp7601982p7601995.html
Sent from the XWiki- Users mailing list archive at Nabble.com.


Re: [xwiki-users] Problem with update from 7.1.2 to 8.4.1

2016-12-02 Thread Thomas Mortagne
Do you have any idea who is the registered as author of most pages
(usually the user you used to do the upgrade) ? Usually the trick is
to make this user the owner of the main wiki. You can do that by going
to /xwiki/bin/edit/XWiki/XWikiServerXwiki and set this user reference
in owner field (and save).

On Fri, Dec 2, 2016 at 8:09 AM, aleksey-s  wrote:
> *Little update: * In browser console and tomcat logs - nothing when I open
> /xwiki/bin/admin/XWiki/XWikiPreferences
>
> Who know how to  return admin panel ?
>
>
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Problem-with-update-from-7-1-2-to-8-4-1-tp7601982p7601991.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.



-- 
Thomas Mortagne


Re: [xwiki-users] Problem with update from 7.1.2 to 8.4.1

2016-12-01 Thread aleksey-s
*Little update: * In browser console and tomcat logs - nothing when I open
/xwiki/bin/admin/XWiki/XWikiPreferences

Who know how to  return admin panel ? 



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Problem-with-update-from-7-1-2-to-8-4-1-tp7601982p7601991.html
Sent from the XWiki- Users mailing list archive at Nabble.com.