Geert,
Thank you for your response. I just contacted [email protected] with
this issue.
Btw.. when you said intervening through CQ, did you mean running something
like below on the security DB on CQ?
import module "http://marklogic.com/xdmp/security"; at
"/MarkLogic/security.xqy"

let $collection := /sec:collection[sec:collection-id =
xs:unsignedLong(normalize-space("17635603970608174244"))]

return
sec:unprotect-collection(string($collection/sec:uri))

I tried that, and it gives me the same error. Or, were you looking at
exploring the Security DB thru CQ and delete the exact record for the
collection? Meanwhile, i will wait for support for a response.

thanks
Jag.

On Fri, Mar 11, 2011 at 7:45 AM, Geert Josten <[email protected]>wrote:

> Hi Jagannath,
>
>
>
> You could intervene in the Security database using for instance CQ, but I
> would be very careful with that. I recommend contacting
> [email protected], and ask them to guide you through. They can also
> file this as a bug..
>
>
>
> Kind regards,
>
> Geert
>
>
>
> *Van:* [email protected] [mailto:
> [email protected]] *Namens *Jagannath Saha
> *Verzonden:* vrijdag 11 maart 2011 0:39
> *Aan:* General Mark Logic Developer Discussion
> *Onderwerp:* [MarkLogic Dev General] Can't delete security collection(s)
> with same URI
>
>
>
> Hi,
>
> Our CPF code in a "race-condition" created two collections with same URI.
> Now, we are not able to access security/collections from Admin console. It's
> giving the following error.
>
> 500: Internal Server Error
> XDMP-AS: (err:XPTY0004) get-collection($uri) -- Invalid coercion: (fn:doc("
> http://marklogic.com/xdmp/collections/1530537999769757152";)/sec:collection,
> fn:doc("http://marklogic.com/xdmp/collections/17635603970608174244";)/sec:collection)
> as element(sec:collection)
> In /MarkLogic/security.xqy on line 4189
>
> IDs of the two collections are 1530537999769757152, 17635603970608174244
>
> We are trying to delete the collection by the collection IDs using the
> Admin console URL */drop-collection.xqy?section=security&collection=ID* but
> it's not of any help. It's displaying the same "Invalid coercion:" error
> again.
>
> Please let us know, is there any workaround for this issue.
>
> Thanks
>
> Jagannath.
>
> _______________________________________________
> 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