Re: [xwiki-users] Deleting admin user blocks execution of some pages

2016-04-05 Thread Charlie Mann
Mark,

You could try using the following extensions:

List Deleted Content Author Users
http://extensions.xwiki.org/xwiki/bin/view/Extension/List+Deleted+Content+Au
thor+Users

Change Content Author
http://extensions.xwiki.org/xwiki/bin/view/Extension/Change+Content+Author

They have helped me in the past to clean up deleted users.

Charlie


-Original Message-
From: users [mailto:users-boun...@xwiki.org] On Behalf Of Thomas Mortagne
Sent: Tuesday, April 5, 2016 10:28 AM
To: XWiki Users 
Subject: Re: [xwiki-users] Deleting admin user blocks execution of some
pages

On Tue, Apr 5, 2016 at 3:46 PM, Mark Sack  wrote:
> Due to another issue, I had to recreate some users (including the one 
> I had been using as the administrator). Instead of just hiding the old 
> users, I decided to delete them. It was a mistake to delete the old 
> admin user because, now, scripts that were last modified by that user 
> will not execute (even by the new admin user). The new admin user 
> needs make some new modification to the script in order to execute it.
>
> Is there a mechanism by which I could get a list of all the scripts 
> that were last modified by that old user so that I could go in and 
> clean up this problem at one go instead of one by one as I stumble 
> onto those pages? Is there another workaround a person can use when 
> they shoot themselves in the foot like this?
>

> Note that I tried restoring the old admin user from the deleted documents.
> He then appears in the user directory as expected. But the scripts 
> will still not execute. So it appears that restoring a user has the 
> effect of creating a new user with the same attributes as the old one 
> instead of actually recreating the old user. Could this be considered 
> an issue (defect or improvement) worthy of recording in JIRA?

Its not exactly that. It does recreate your user exactly as it was.
But restoring a the user does not automatically add it in groups since this
information is not stored in the user profile.

>
> Mark
>
>
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Deleting-admin-user-blocks-execution
> -of-some-pages-tp7598812.html Sent from the XWiki- Users mailing list 
> archive at Nabble.com.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



--
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] A tool to convert terminal pages to Nested Pages

2016-02-01 Thread Charlie Mann
I tried this extension out on our test server where we are simulating
upgrading from 7.1.2 to 7.4.  It looks like it will be a very helpful tool
in converting to the new nested pages scheme.  One thing I did notice is
that one of our wikis that had a lot of nested pages under a space would
never show the migration plan.  It was as though it was frozen.

Charlie

-Original Message-
From: users [mailto:users-boun...@xwiki.org] On Behalf Of Guillaume
Delhumeau
Sent: Tuesday, January 26, 2016 2:43 AM
To: XWiki Users 
Subject: Re: [xwiki-users] A tool to convert terminal pages to Nested Pages

No opinion ?

Thanks,

2016-01-20 9:53 GMT+01:00 Guillaume "Louis-Marie" Delhumeau <
gdelhum...@xwiki.com>:

> Hello, users of XWiki!
>
> I just have released the first version (alpha) of a new application to 
> help you convert your existing (terminal) pages to nested pages after 
> an upgrade to a recent wiki (7.4.x is the targeted version).
>
> This tool is available and can be installed directly with Extension 
> Manager. All informations are there:
>
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Nested+Pages+Migr
> ator+Application
>
> The application *does not currently apply the migration*. It only 
> computes a plan which say what actions should be done. The purpose, 
> right now, is only to test the tool without affecting any wiki.
>
> There is an option to simply convert your pages to nested pages 
> (Space.Page => Space.Page.WebHome) so they can have children (which 
> they cannot while being terminal). But, by default, the migrator tries 
> to preserve the existing hierarchy of pages (based on the "parent" 
> field of each page) by moving the pages under their parent page. So if 
> you have SpaceA.PageA with SpaceB.PageB as parent, the proposed 
> migration will be SpaceA.PageA => SpaceB.PageB.PageA.WebHome.
>
> In the future, the plan will also contain actions for preserving the 
> configured preferences (right now, if a page is moved, all the 
> preferences from its previous space are not applied to it anymore), and
rights.
>
> This version is a first step in order to have a very complete tool. A 
> design document have been written with more informations ( 
> http://design.xwiki.org/xwiki/bin/view/Proposal/UpgradeToNestedPages).
>
> I would love to see some of you testing this application, the user 
> interface, and judging the proposed plans. Don't hesitate to give your 
> feedbacks. Please tell me if you have other ideas that I have not 
> listed in the design document, like features that I have not think about.
>
> Thanks a lot,
> --
> Guillaume Delhumeau (gdelhum...@xwiki.com) Research & Development 
> Engineer at XWiki SAS Committer on the XWiki.org project
>



-- 
Guillaume Delhumeau (gdelhum...@xwiki.com)
Research & Development Engineer at XWiki SAS
Committer on the XWiki.org project
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] 6.4.3 Group Rights Issues

2015-03-25 Thread Charlie Mann
I have just upgraded our xWiki from 6.4.2 to 6.4.3 and noticed a change in
how group rights are handled.  We have a main wiki with 6 subwikis.  All
users are members of the main wiki.  In order to allow users rights to a
subwiki, we add them into a group in the main wiki and then give that group
access on the subwiki.  This worked great in 6.4.2, however with the upgrade
to 6.4.3, we get the following error when a user logs into a subwiki, even
though the user is in a group that has access to the subwiki.

 

(I have truncated the error message since it is long, but if you need more
of it I can include it)

 

Failed to execute the [include] macro. Click on this message for details.

 

org.xwiki.rendering.macro.MacroExecutionException: Current user
[xwiki:XWiki.TestUser] doesn't have view rights on document
[test:WikiManager.Dashboard]

at
org.xwiki.rendering.internal.macro.include.IncludeMacro.execute(IncludeMacro
.java:151)

at
org.xwiki.rendering.internal.macro.include.IncludeMacro.execute(IncludeMacro
.java:55)

at
org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transf
orm(MacroTransformation.java:252)

at
org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transfor
mInContext(DefaultRenderingContext.java:183)

at
org.xwiki.rendering.internal.transformation.DefaultTransformationManager.per
formTransformations(DefaultTransformationManager.java:94)

at
org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentD
isplayer.java:252)

at
org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentD
isplayer.java:125)

at
org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentD
isplayer.java:55)

at
org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentD
isplayer.java:96)

at
org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentD
isplayer.java:39)

at
org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplay
er.java:113).

 

Attempting to access a page within the subwiki gives this error:

 

Error

You are not allowed to view this document or perform this action.

 

Is the use of groups to give access to subwikis no longer allowed, or is
this an issue with 6.4.3?  In our test environment, I took our 6.4.3 XWiki
and switched back to the 6.4.2 deployment and things worked as expected,
however that really isn't an option as all of the extensions have been
upgraded to 6.4.3.  

 

If this isn't an issue with 6.4.3, then what is the best way to handle
delegating rights for users in our setup?

 

Thanks!

Charlie

 

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Cannot upgrade Enterprise UI Extension to 6.4.2

2015-03-06 Thread Charlie Mann
Thomas,

Thanks for the quick reply.  Here is a little more background on our
install.  We have a test server set up with a mirror of production and that
is where I am doing the upgrade testing, so I can go back to the current 6.3
at any time and redo the process till I get it right. We have a main wiki
with 7 or 8 subwikis.  Despite many different attempts, I have never been
able to get the Distribution Wizard to appear.   So we have taken to just
deploying the latest War file and then using the Extension Updater.  I
generally chose 'Check for updates on farm'.  This then provides me with a
list of extension that are out of date.  I then go through and update every
extension that is out of date.  This had worked with every upgrade I have
tried until 6.4.2.  It worked with 6.4.1 in our test environment, but we
didn't actually go to 6.4.1 in production because of some the issues present
in 6.4.1.

What is the best option here for the place we are at?  Should I try to get
the Distribution Wizard to appear so that it will handle the upgrade from
6.3 to 6.4.2?  If so, are there any suggestions on how to do this?  

Or would it be better to try and clean things out first?  Im not quite sure
how to determine which installed extensions don't make sense. Also, when you
say clean up, how should I do that?  For most of the extensions I only have
Uninstall and Downgrade options.  (not sure why there are Downgrade options,
as I have only seen in that when trying to go to 6.4.2).

Thanks for the help!
Charlie

-Original Message-
From: users [mailto:users-boun...@xwiki.org] On Behalf Of Thomas Mortagne
Sent: Friday, March 6, 2015 3:18 AM
To: XWiki Users
Subject: Re: [xwiki-users] Cannot upgrade Enterprise UI Extension to 6.4.2

You have several very weird things in your setup:
* first as you can see in the error it seems like you installed
org.xwiki.platform:xwiki-platform-appwithinminutes-ui at farm level which is
a really unusual thing to do for a XAR and especially for a XAR which is a
standard XE dependency
* this extension is 6.3 which mean you did not fully upgraded from 6.3 to
6.4.1 and you have some leftover for some reason
* as far as I understand you are not using the Distribution Wizard (as
otherwise you wouldn't have ended up with XWiki Enterprise - UI - Main Wiki
All and at all or some standard extension installed at farm level), is there
a specific reason for that ?

I ideally I would suggest to cleanup a bit (look at installed extension and
try to clean anything that don't make much sense like
6.3 standard extension leftover or standard extension installed at farm
level instead of in the wiki they are used) and then use the Distribution
Wizard to so a proper upgrade but I don't know your constraints.

On Thu, Mar 5, 2015 at 10:28 PM, Charlie Mann charlie.m...@aed.pro wrote:
 I am using the Extension Updater to upgrade our XWiki instance from 
 6.3 to
 6.4.2  Whenever I try to upgrade the 'XWiki Enterprise - UI - Main Wiki
All'
 package, I get the following error:

 * An extension with feature
 [org.xwiki.platform:xwiki-platform-appwithinminutes-ui] is already 
 installed on root namespace
 ([org.xwiki.platform:xwiki-platform-appwithinminutes-ui-6.3])

 class org.xwiki.extension.InstallException: Failed to resolve 
 extension at 
 org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtensi
 on(Abs
 tractInstallPlanJob.java:770) at
 org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtensi
 on(Abs
 tractInstallPlanJob.java:393) at
 org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtensi
 on(Abs
 tractInstallPlanJob.java:290) at
 org.xwiki.extension.job.internal.AbstractInstallPlanJob.start(Abstract
 Instal
 lPlanJob.java:220) at
 org.xwiki.extension.job.internal.InstallPlanJob.runInternal(InstallPla
 nJob.j
 ava:88) at
 org.xwiki.job.internal.AbstractJob.runInContext(AbstractJob.java:209) 
 at
 org.xwiki.job.internal.AbstractJob.run(AbstractJob.java:192)



 I have tried to upgrade from 6.3 to 6.4.1 first and then upgrade from 
 6.4.1 to 6.4.2, but I still get the same issue when going from 6.4.1 to
6.4.2.
 Going from 6.3 to 6.4.1 works fine.



 Are there any workarounds to get Enterprise UI package to upgrade, or 
 will this be something that is fixed in next release?



 Thank you,

 Charlie

 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users



--
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Cannot upgrade Enterprise UI Extension to 6.4.2

2015-03-05 Thread Charlie Mann
I am using the Extension Updater to upgrade our XWiki instance from 6.3 to
6.4.2  Whenever I try to upgrade the 'XWiki Enterprise - UI - Main Wiki All'
package, I get the following error:

* An extension with feature
[org.xwiki.platform:xwiki-platform-appwithinminutes-ui] is already installed
on root namespace
([org.xwiki.platform:xwiki-platform-appwithinminutes-ui-6.3]) 

class org.xwiki.extension.InstallException: Failed to resolve extension at
org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(Abs
tractInstallPlanJob.java:770) at
org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(Abs
tractInstallPlanJob.java:393) at
org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(Abs
tractInstallPlanJob.java:290) at
org.xwiki.extension.job.internal.AbstractInstallPlanJob.start(AbstractInstal
lPlanJob.java:220) at
org.xwiki.extension.job.internal.InstallPlanJob.runInternal(InstallPlanJob.j
ava:88) at
org.xwiki.job.internal.AbstractJob.runInContext(AbstractJob.java:209) at
org.xwiki.job.internal.AbstractJob.run(AbstractJob.java:192) 

 

I have tried to upgrade from 6.3 to 6.4.1 first and then upgrade from 6.4.1
to 6.4.2, but I still get the same issue when going from 6.4.1 to 6.4.2.
Going from 6.3 to 6.4.1 works fine.

 

Are there any workarounds to get Enterprise UI package to upgrade, or will
this be something that is fixed in next release?

 

Thank you,

Charlie

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Calc Macro Not Working in 6.4.1

2015-02-12 Thread Charlie Mann
We have been using the Calc Macro Extension in xWiki 6.3 and it was working
well.  When we upgraded to 6.4.1, the macro stopped working and now
displays: Failed to execute the [groovy] macro. Click on this message for
details. 

 

Debugging the CalcGroovy script, it appears that when the script does a
.getParent() on the MacroBlock that is coming in, it is returning null.
Previously, it used to return the TableHeader block of the table containing
the Macro. 

 

Is there something that needs to be changed in the CalcGroovy code to get it
to work with 6.4.1, or is this something that will need to be fixed in
6.4.2? 

 

Thanks

Charlie

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users