Daily Log for #alfresco IRC Channel

Alfresco discussion and collaboration. Stick around a few hours after asking a question.

Official support for Enterprise subscribers: support.alfresco.com.

Joining the Channel:

Join in the conversation by getting an IRC client and connecting to #alfresco at Freenode. Our you can use the IRC web chat.

More information about the channel is in the wiki.

Getting Help

More help is available in this list of resources.

Daily Log for #alfresco

2019-07-16 05:22:13 GMT <alfresco-discord> <kanat> Hello

2019-07-16 05:22:14 GMT <alfresco-discord> <kanat> Caused by: org.alfresco.service.cmr.repository.InvalidNodeRefException: Node does not exist: workspace://SpacesStore/c78467f1-c5e8-4217-9b59-f2f6c4076f78 (status:Status[id=11544changeTxnId=c0629afa-65f1-487f-978e-ded21b808cd1, dbTxnId=9902, deleted=true])

2019-07-16 05:23:00 GMT <alfresco-discord> <kanat> what does this mistake mean?

2019-07-16 05:24:08 GMT <alfresco-discord> <kanat> I did reindex Solr4, but did not help

2019-07-16 05:24:28 GMT <alfresco-discord> <kanat> My log

2019-07-16 05:24:28 GMT <alfresco-discord> <kanat> https://cdn.discordapp.com/attachments/451644531323174914/600558346872815636/Log.txt

2019-07-16 05:25:24 GMT <alfresco-discord> <kanat> Kto vstrechal takuyu oshibku? Chto delat'? 38/5000 Who met such a mistake? What to do?

2019-07-16 07:43:20 GMT <alfresco-discord> <dgradecak> deleted=true, means the node is somehow deleted. In your code you have custom webscripts so I guess the error is there

2019-07-16 07:43:30 GMT <alfresco-discord> <dgradecak> bpm_osnovanie = [Node no longer exists: workspace://SpacesStore/c78467f1-c5e8-4217-9b59-f2f6c4076f78]

2019-07-16 07:44:55 GMT <alfresco-discord> <dgradecak> all you need to do is read what oyu have posted carefully, I am sure you can find the mistake easily in your code. Either your code can continue if the node does not exist and than you wrap the rest of your lines with a node.exists() (not sure in JS though)

2019-07-16 07:46:36 GMT <alfresco-discord> <dgradecak> or the node was deleted and that it should never have been deleted and btw, I do not think solr has to do anything with this if you are not doing a search to get that node (what probably you should not)

2019-07-16 08:19:21 GMT <alfresco-discord> <kanat> thanks, I will find mistake in my code

2019-07-16 13:11:43 GMT <AFaust> Anyone here know if there is a (quick) option to enable HTTP session cookies for CMIS via the Alfresco Public API?

2019-07-16 13:13:16 GMT <AFaust> I believe we (my customer) may have issues with "publish to Alfresco" tasks in APS due to load balancing between our Repository instances and delays in cluster consistency / transaction commits, that regularly mess with our processes (e.g. working copy allegedly not existing immediately after the call to create one to the other server)

2019-07-16 13:14:27 GMT <AFaust> And I was considering to patch APS to have the CMIS client manage cookies, but then noticed Public CMIS API does not set any session cookies at all...

2019-07-16 13:15:08 GMT <angelborroy> I thing only HTTP Basic Auth is supported ootb

2019-07-16 13:15:29 GMT <AFaust> Goal would be to have session-stickyness in our load balancing for the scope of a single "publish to Alfresco" service task...

2019-07-16 13:15:54 GMT <angelborroy> Have you tried “org.apache.chemistry.opencmis.binding.cookies”?

2019-07-16 13:16:23 GMT <AFaust> Well, that is what I want to use, but does not help much if there are no cookies to be managed...

2019-07-16 13:17:07 GMT <AFaust> In short. Yes, already used in my patch, the cookie manager of the HTTP client is instantiated as a result, but list of cookies is always empty

2019-07-16 13:23:30 GMT <AFaust> Actually already had a colleague wonder why we just don't drop the default APS "publish to Alfresco" approach of using CMIS and write our own web script on the Repository tier as an endpoint. That would be way more stable and - an extremely nice advantage - transactionally safe with one call for the entire service task...

2019-07-16 13:24:26 GMT <AFaust> And before any "Public ReST API" advocate at Alfresco responds: No, Public ReST API also does not cut it for this use case, because you can't do bulk operations in a single transaction...

2019-07-16 13:30:30 GMT <alfresco-discord> <dgradecak> too demanding AFaust 😉

2019-07-16 13:30:49 GMT <alfresco-discord> <dgradecak> I remember doing something with cookies and cmis a while ago ... will see if I can find that

2019-07-16 13:34:53 GMT <AFaust> Since the AlfrescoCmisService already has some AOP advices wrapped around it, I am considering adding a custom "cmisSessions" advice, which simply creates a dummy HTTP session (not used to maintain any auth state, only for load balancing)

2019-07-16 14:26:35 GMT <alfresco-discord> <IanW> This may be complete nonsense but what about tracking-mode COOKIE in session-config in web.xml?

2019-07-16 14:46:19 GMT <AFaust> Not sure how that applies here...

2019-07-16 14:47:47 GMT <AFaust> Any cookie configuration in web.xml would be global for the whole app anyway, and I only want CMIS to be affected. Though I could use a servlet filter mapped to CMIS URLs instead of modifying / patching Alfresco source to ensure a session is initialised...

2019-07-16 14:48:42 GMT <AFaust> On the other hand, the customer has already had to patch the class I need to touch in order to backport some fixes from a service pack, so what harm does one more line do?

2019-07-16 14:54:48 GMT <alfresco-discord> <edw24> Is it normal behavior to receive { entry: {} } on successful upload of a node using multipart/form-data and the filedata parameter?? When creating nodes through the API (JSON), I receive a node entry on success but when I use the multipart/form-data method, it returns an empty entry but the node is in the repository

2019-07-16 14:58:22 GMT <alfresco-discord> <edw24> I'm using Alfresco 5.2.1 by the way.

2019-07-16 14:58:39 GMT <alfresco-discord> <edw24> enterprise

2019-07-16 15:04:09 GMT <AFaust> Great... now that I implemented the patch I find out there is a property somewhere else I did not think to look...

End of Daily Log

The other logs are at http://esplins.org/hash_alfresco