Michael,
User-id option:
xdmp:eval('(: some expression.. :)', (), <options
xmlns="xdmp:eval"><user-id>{xdmp:user('someuser')}</user-id></options>)
I tried to create a test case that shows my problems, but it seems more
complicated than I thought. I'll be in touch..
Kind regards,
Geert
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of
> Michael Blakeley
> Sent: dinsdag 24 februari 2009 18:17
> To: General Mark Logic Developer Discussion
> Subject: Re: [MarkLogic Dev General]
> Xdmp:default-permissions() not working?
>
> Geert,
>
> Can you be more explicit about "the user-id option"?
>
> The cq window should tell you what user you're logged in as,
> in the title bar. For example, my copy of cq (svn HEAD) in
> firefox 3.0.6 says "cq - [email protected]:8000", and I get
> the results I expect from
> xdmp:default-permissions():
>
> <sec:permission xmlns:sec="http://marklogic.com/xdmp/security">
> <sec:capability>insert</sec:capability>
> <sec:role-id>18086402793777567391</sec:role-id>
> </sec:permission>
> <sec:permission xmlns:sec="http://marklogic.com/xdmp/security">
> <sec:capability>update</sec:capability>
> <sec:role-id>18086402793777567391</sec:role-id>
> </sec:permission>
> <sec:permission xmlns:sec="http://marklogic.com/xdmp/security">
> <sec:capability>read</sec:capability>
> <sec:role-id>18086402793777567391</sec:role-id>
> </sec:permission>
> <sec:permission xmlns:sec="http://marklogic.com/xdmp/security">
> <sec:capability>read</sec:capability>
> <sec:role-id>16214968982484730623</sec:role-id>
> </sec:permission>
>
> -- Mike
>
> On 2009-02-23 23:46, Geert Josten wrote:
> > Hi there,
> >
> > I am running MarkLogic Server 4.0-1 on a WinXP laptop. I
> have added a user to the security database in MarkLogic
> Server using the Admin interface and the describe feature
> tells me that this user has default permissions (inherited
> from a custom defined role). But an empty sequence is
> returned, when calling the xdmp:default-permissions() as this
> user. Also, when inserting documents, permissions are not
> automatically assigned because of this, making the document
> inaccessible for the user itself.
> >
> > (Reproduced with cq using xdmp:eval and the user-id option..
> >
> > Is there an obvious reason this goes wrong? Or is it
> something that has been fixed in the latest releases? I
> failed to find release notes on the latest patch versions.
> Are these available somewhere?
> >
> > Kind regards,
> > Geert
> >
> >
> > Drs. G.P.H. Josten
> > Consultant
> >
> >
> > http://www.daidalos.nl/
> > Daidalos BV
> > Source of Innovation
> > Hoekeindsehof 1-4
> > 2665 JZ Bleiswijk
> > Tel.: +31 (0) 10 850 1200
> > Fax: +31 (0) 10 850 1199
> > http://www.daidalos.nl/
> > KvK 27164984
> > De informatie - verzonden in of met dit emailbericht - is
> afkomstig van Daidalos BV en is uitsluitend bestemd voor de
> geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen,
> verzoeken wij u het te verwijderen. Aan dit bericht kunnen
> geen rechten worden ontleend.
> >
> >
> >
> > _______________________________________________
> > General mailing list
> > [email protected]
> > http://xqzone.com/mailman/listinfo/general
>
> _______________________________________________
> General mailing list
> [email protected]
> http://xqzone.com/mailman/listinfo/general
> _______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general