eXist-db / tamboti

Tamboti Metadata Framework: framework for cataloguing bibliographical material and other resource types such as web sites, images and videos.
1 stars 8 forks source link

[modules/search/security] - security:can-write-collection() #140

Open zwobit opened 10 years ago

zwobit commented 10 years ago

Running

security:can-write-collection()

leads to endless query which uses up 100 percent of cpu and finally to OutOfMemory Exception. This is reproducible on "ws2" and my local machine.

claudius108 commented 10 years ago

Hi,

Thanks for reporting this.

You got this while doing what action(s)?

Claudius

zwobit commented 10 years ago

Mmmh okay, i played around with it some more, this seems to trigger the condition:

xquery version "3.0";
import module namespace security="http://exist-db.org/mods/security" at "/apps/tamboti/modules/search/security.xqm";

<data>
    <test test="{security:can-write-collection('/db/resources/commons/Priya_Paul_Collection/')}"/>
</data>

while this seems to work

xquery version "3.0";
import module namespace security="http://exist-db.org/mods/security" at "/apps/tamboti/modules/search/security.xqm";

<test test="{security:can-write-collection('/db/resources/commons/Priya_Paul_Collection/')}"/>

Seems this is not a tamboti bug.

jensopetersen commented 10 years ago

No problems with either query here. Can't see why wrapping something up in should make any difference ….

Jens

On 14 Mar 2014 at 12:42:02, Tobi Krebs (notifications@github.com) wrote:

Mmmh okay, i played around with it some more, this seems to trigger the condition:

xquery version "3.0"; import module namespace security="http://exist-db.org/mods/security" at "/apps/tamboti/modules/search/security.xqm";

while this seems to work

xquery version "3.0"; import module namespace security="http://exist-db.org/mods/security" at "/apps/tamboti/modules/search/security.xqm";

Seems this is not a tamboti bug.

— Reply to this email directly or view it on GitHub.