Hi all,
                I have a batch script that updates datastreams using the REST 
API and every once in a while I get an exception in the logs that the object is 
locked and is being modified by another thread. When that happens, the update 
datastream method fails and on the client side (CURL), I don't get any error 
messages that the updateDatastream call failed due to the object being locked.

Is there a way I can check if the file is locked or not before attempting to 
update the datastream?

I am issuing the following CURL command:

curl --user xxxxx:xxxxx --upload-file dublin_new.xml 
http://xxx.xxx.xxx:8080/fedora/objects/default:66/datastreams/DC


I was reading about a parameter you can pass in the URL above lastModifiedDate 
but I am not sure how I could use that to check if an object has been locked.


I would really appreciate any feedback.



Thanks.

Diwakar Timilsina
Systems Analyst, UITS
University of Arkansas, Fayetteville
Email: [email protected]<mailto:[email protected]>
Phone: 479.575.6160

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to