From: Dmitriy S. <sha...@gm...> - 2011-04-30 02:17:11
|
Can you make sure that 'myuser' in DBA group and check user at script by print out current user. On Fri, Apr 29, 2011 at 7:57 PM, Andrzej Jan Taramina <an...@ch...>wrote: > I use an ant task to run an xquery as follows: > > <exist:xquery queryfile="${temp.dir}/importData.xql" > outputproperty="importResults" > uri="${exist.url}/xmlrpc/db" user="myuser" password="${password}"> > </exist:xquery> > > but it the fails with the following: > > BUILD FAILED > /home/andrzej/build.xml:1747: XMLDB exception caught while executing query: > Permission denied, > calling user 'myuser' must be a DBA to call this function. [at line 75, > column 23, source: String] > > The line in the xquery that is failing is: > > let $list := file:directory-list( $dir, "*.xml" ) > > which requires DBA permissions as expected. > > The problem is that the ant task was initiated using user "myuser" which is > part of the dba > group...and thus should be a DBA, right? > > This used to work fine....but is now broken with the new security stuff. > > Any idea why myuser isn't being seen as having dba permissions when > executing an xquery using the > ant task? > -- Dmitriy Shabanov |