I developed a web service with 4 transactions: 1 - create space in Alfresco; 2 - upload document to alfresco; 3 - get document properties and content; 4 - erase a document.
All the transactions work well. But I noticed a odd behavior. If I upload a document to Alfresco (with transaction 2) and, after that I try to get the document properties and content (transaction 3) or erase the document (transaction 4) it will not work! But if I wait almost a minute and try again, works fine. Is this a normal behavior? Seems to me that I need to do an update to alfresco repository. Any of you have / had the same problem) how can I solve this?
I know that if I change one of the properties of a document in the web console - say, author - i have to wait around 30 seconds for it to be included in any searches. It seems that Alfresco takes a while to re-index after a change, so I would assume you'd have the same issue with adding a new document.
H Tara_B, and thanks for your rely. Yes, that exactly the problem I have. When I add a document he only become available after around 30 seconds. That was freaking me out, but now I can see that this is not something I'm doing wrong. If someone know if there is a way to solve this, please let me know.