Have you verified that the permissions you're using are correct for the
roles that your non-admin user is in?  Have you verified that you don't have
a pre-existing document in the database that was created when you tried it
as admin?  Such a document may be invisible to your non-admin user,
but attempting to create or replace it will fail.

   What is the actual exception being thrown?  What are the permissions
you're creating the document with?

---
Ron Hitchens {[email protected]}  +44 7879 358212

On Nov 11, 2013, at 9:08 AM, manoj viswanadha <[email protected]> 
wrote:

> Hi Ron,
> 
> Thanks for your reply. first i am loading the schemas into our content 
> database using non-admin user. After that i was trying to modify that file 
> with in the database and using xdmp:eval i am trying to load it into 
> xdmp:eval. for doing these step by step process we have ant scripts 
> configured and we are doing using command prompt.
> 
> 
> when i try using admin user everything is working when i try using non-admin 
> user its not working as expected. i gave read,insert,update and execute 
> premissions for my schema files("/example.xsd")
> 
> Thanks,
> Manoj
> 
> 
> 
> 
> On Mon, Nov 11, 2013 at 12:45 PM, Ron Hitchens <[email protected]> wrote:
> 
>    Are you trying to replace an existing document in the schemas database?
> If the existing one was created by admin, probably with no explicit 
> permissions,
> then your non-admin user will not be able to over-write it.
> 
>    If your non-admin user created the schema document, did you create it
> with the appropriate read and write permissions?
> 
>    Try xdmp:document-get-permissions ("/myschema.xsd")
> 
> ---
> Ron Hitchens {[email protected]}  +44 7879 358212
> 
> On Nov 11, 2013, at 6:15 AM, manoj viswanadha <[email protected]> 
> wrote:
> 
>> Hi all,
>> 
>> I am trying to load schemas into schemas database. For this we have triggers 
>> configured and in xquery module we are using xdmp:eval to load into schemas 
>> database. 
>> 
>> When i use admin user everything is working fine but when i use non-admin 
>> user i am getting error "Permission denied". I gave all the required 
>> execute-privileges required to required.
>> 
>> Is there any security item i am missing on schemas database.can any one help 
>> me how to sort out this issue.
>> 
>> Thanks in advance,
>> Manoj viswanadha
>> cognizant technology solutions.
>> 
>> _______________________________________________
>> General mailing list
>> [email protected]
>> http://developer.marklogic.com/mailman/listinfo/general
> 
> 
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general
> 
> 
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to