Re: [xwiki-users] Problem Global User in Subwiki

2016-09-16 Thread Eduard Moraru
Hi,

Any chance there is a local user inside that subwiki with the exact same
name and credentials of the global user you are trying to log into from the
subwiki? If so, delete the subwiki user OR, when logging in, try prefixing
the user name with the main wiki ID, e.g. "xwiki:SomeUser" to make extra
sure you are logging in with the global user and not some local user that
has the same name.

Hope this helps,
Eduard

On Fri, Sep 16, 2016 at 11:41 PM, Tobias Kirchhofer 
wrote:

> We experience a strange behaviour with version 8.2.1 which was not there
> with
> Version 7.4.2:
>
> - Subwiki (allows only global user)
> - Login at Home-Wiki
> - Navigate to Subwiki
> - Logout at Subwiki
> - Login at Subwiki
>
> Error message: You are not allowed ...
>
> - Logout
> - Login at Home Wiki
> - Works
>
> Changing "allow local user and global user" in subwiki does not change
> anything expect that a local user is created. The local user can login
> (correct permissions provided).
>
> Same configuration in 7.4.2 works as expected.
>
> How can we achieve global user login to subwikis?
>
>
>
>
> --
> View this message in context: http://xwiki.475771.n2.nabble.
> com/Problem-Global-User-in-Subwiki-tp7601243.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
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [myxwiki] How to return to the first installed version of my xwiki space ?

2016-09-16 Thread Eduard Moraru
Hi,

You could also reinstall the entire XWiki UI, to make sure you don`t miss
anything. That is, if you want to keep your data and your wiki is fairly
uncustomized.

Hope this helps,
Eduard

On Mon, Sep 12, 2016 at 12:23 PM, Thomas Mortagne  wrote:

> Reset it would not be too hard but you would loose all your datas, is this
> OK ?
>
> On Mon, Sep 12, 2016 at 10:12 AM, Guillaume Delhumeau
>  wrote:
> > Hi.
> >
> > I transfer your message to the proper mailing list.
> >
> >
> > -- Forwarded message --
> > From: paulebou...@gmail.com 
> > Date: 2016-09-09 17:49 GMT+02:00
> > Subject: How to return to the first installed version of my xwiki space ?
> > To: guillaume.delhum...@xwiki.com
> >
> >
> >
> > Hi,
> >
> > How can i come back to the original configuration of my xwiki space ?
> >
> > ... Seem i have deleted the administration module !!! and, i can't use my
> > xwiki space anymore ...
> >
> > It's very problematic because,i have plan to use it all this year to
> > animate the local discussion groups for citizens of Bagnolet ...
> >
> > Can you please re-initialize my space ?
> >
> > Thanks for your help.
> >
> > Paule Bouton
> > paulebou...@gmail.com
> >
> >
> >
> >
> >
> > --
> > [image: Avast logo] 
> >
> > This email has been checked for viruses by Avast antivirus software.
> > www.avast.com 
> >
> >
> >
> >
> > --
> > Guillaume Delhumeau (guillaume.delhum...@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
>
>
>
> --
> 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] Problem Global User in Subwiki

2016-09-16 Thread Tobias Kirchhofer
We experience a strange behaviour with version 8.2.1 which was not there with
Version 7.4.2:

- Subwiki (allows only global user)
- Login at Home-Wiki
- Navigate to Subwiki
- Logout at Subwiki
- Login at Subwiki

Error message: You are not allowed ...

- Logout
- Login at Home Wiki
- Works

Changing "allow local user and global user" in subwiki does not change
anything expect that a local user is created. The local user can login
(correct permissions provided).

Same configuration in 7.4.2 works as expected.

How can we achieve global user login to subwikis?




--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Problem-Global-User-in-Subwiki-tp7601243.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


Re: [xwiki-users] Accessing nested document in velocity

2016-09-16 Thread Eduard Moraru
Hi,

You need to be aware that the method you are trying results in specifying
the space name, not the space reference, so instead of creating the space
reference "A.B" (i.e. "B", child of "A"), you are creating a reference to
"A\.B" (i.e. space called "A.B", at the top level).

You`re probably looking for the Nested Spaces specific signature of the
createDocumentReference method:

  public DocumentReference createDocumentReference(String wiki,
List spaces, String page, String hint) [1]

  e.g.: $services.model.createDocumentReference('', ['XApp', 'Data'],
'WebHome')

Another option is the more generic approach, using the resolveDocument
method:

  public DocumentReference resolveDocument(String stringRepresentation,
Object... parameters) [2]

  e.g.: $services.model.resolveDocument('XApp.Data.WebHome')

Hope this helps,
Eduard

--
[1]
http://nexus.xwiki.org/nexus/service/local/repositories/releases/archive/org/xwiki/platform/xwiki-platform-model/8.2.1/xwiki-platform-model-8.2.1-javadoc.jar/!/index.html
[2]
http://nexus.xwiki.org/nexus/service/local/repositories/releases/archive/org/xwiki/platform/xwiki-platform-model/8.2.1/xwiki-platform-model-8.2.1-javadoc.jar/!/index.html

On Thu, Sep 15, 2016 at 3:50 PM, D R  wrote:

> Hi guys,
>
> I'm having a hard time accessing the fields of an application (prepared via
> App Within Minutes) document from another document.
>
> I have those 2 documents:
>
> 1. XApp / Data / 123456789
> 2. Test / Testscript
>
> I try to prepare an event listener to rename new documents according to
> some of their fields.
> For example I have the field 'ddlCategory' and I want the name of all new
> documents of the XApp application to be "XP--DateTime".
>
> To get the doc before accessing the objects of the class I tested
> retrieving XApp.WebHome:
>
> #set($docRef   = $services.model.createDocumentReference('', 'XApp',
> 'WebHome'))
> #set($document = $xwiki.getDocument($docRef))
>
> "$document.getContent()" shows me the content.
>
> Now I want to get the nested Data space (where the documents are stored and
> which contains the livetable):
>
> #set($docRef   = $services.model.createDocumentReference('', 'XApp.Data',
> 'WebHome'))
> #set($document = $xwiki.getDocument($docRef))
>
> "$document.getContent()" is not replaced, the resulting page shows
> "$document.getContent()" so it can't find the XApp.Data.WebHome.
>
> In the reference I tried different things (ie "Xapp\.Data") but it also
> fails.
>
> So how to retrieve a nested document in velocity?
>
> Thanks in advance,
> Dennis
> ___
> 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