cancel
Showing results for 
Search instead for 
Did you mean: 

WebScript not reliable

mitschi
Champ in-the-making
Champ in-the-making
Hello,

I'm trying to update a Document which is not under versioning. I'm using HttpComponents from my Java Client to Call the REST-API for updating my Document (an image).

I've encountered a relly inconsistent behaviour of the service/api/node/workspace/SpacesStore/… Script, which sometimes works perfectly but sometimes simply ignores some updates partially or completly. (I'm trying to do 4 updates in a row on the same file)

Is this a known bug or behaviour of the Webscript? I've searched over the JIRA Bug entries but i couldn't find any bug related to my problem.

Thanks for help in advance,

Yours,
Mitschi
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
Is there anything in the alfresco.log file?

What version of Alfresco are you using.

You say that you are doing 4 updates in a row.    How and why are you doing that?     Which scripts, which properties?

Is there a pattern such as the last update not working?

And what parameters are you giving the webscript?

mitschi
Champ in-the-making
Champ in-the-making
First of all, thank you for your answer!

Is there anything in the alfresco.log file?
No, i cannot see any specialities.

What version of Alfresco are you using.
Alfresco Community Edition 3.3

You say that you are doing 4 updates in a row. How and why are you doing that? Which scripts, which properties?
Via Java quote. I'm calling  service/api/node/workspace/SpacesStore/ via WebScript API doing a PUT with overwriteFlag beeing "true" and versioningState beeing "none". Changing Properties are the content (it is a picture wich changes) and the summary.

Is there a pattern such as the last update not working?
I can't see any repeating patterns after a long time of testing. But one additional thing i recognized is, that on a faster server machine the effect didn't occour any more, so one further question: Is it possible that the upload of the new Image take the server that long that the next x updates might be lost? (The biggest image is 103KB large. And the server where the "unreliability" occours is my laptop, so it is localhost)

And what parameters are you giving the webscript?
overwriteFlag=true
versioningState=none

So i think (if you can confirm my guess) my localhost Alfresco Server is just too busy/slow to deal with my 4 updates in a row. As all that is asynchronous, is that possible that ongoing updates might be lost?

Thank you again in advance for you answer,

Yours,
Mitschi