Alfresco discussion and collaboration. Stick around a few hours after asking a question.
Official support for Enterprise subscribers: support.alfresco.com.
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.
More help is available in this list of resources.
2019-03-04 08:54:07 GMT *** jelly-home is now known as jelly
2019-03-04 09:49:36 GMT <mtsiak2> hi all
2019-03-04 09:50:46 GMT <mtsiak2> can i acess the trashcan folder from cmissync windows client?
2019-03-04 09:53:57 GMT <angelborroy> Hi Maria
2019-03-04 09:54:00 GMT <angelborroy> I don’t think so
2019-03-04 09:54:16 GMT <angelborroy> It’s located on a differenct content store
2019-03-04 09:54:50 GMT <mtsiak2> can i copy an document in the archive store (deleted ) to a site?
2019-03-04 09:55:30 GMT <angelborroy> Why not using REST API for that?
2019-03-04 09:55:38 GMT <angelborroy> Are you using 5.2+?
2019-03-04 09:56:26 GMT <alfresco-discord> <Alfresco User> I need to unit test my Java controller based webscript. This one takes request parameters. How do I supply these in unit tests? And it is a noderef. Is it possible to mock this noderef?
2019-03-04 09:56:28 GMT <mtsiak2> cause the folder is very large and we get timeout error on restore
2019-03-04 09:57:09 GMT <angelborroy> but if you choose only to restore one file, then no timeout is produced, right?
2019-03-04 09:57:23 GMT <mtsiak2> so one thought is to restore some subfolders, or specific (children) files
2019-03-04 09:57:37 GMT <angelborroy> Alfresco 5.2+??
2019-03-04 09:57:52 GMT <mtsiak2> 5.2+ yes
2019-03-04 09:58:00 GMT <angelborroy> Ok, let me see the new REST API
2019-03-04 09:58:54 GMT <angelborroy> Yep, you have a method to restore file by file
2019-03-04 09:58:55 GMT <angelborroy> https://api-explorer.alfresco.com/api-explorer/#!/trashcan/restoreDeletedNode
2019-03-04 09:58:57 GMT <alfbot> Title:Alfresco Content Services REST API Explorer (at api-explorer.alfresco.com)
2019-03-04 10:00:13 GMT <angelborroy> @Alfresco User take a look at https://github.com/Alfresco/alfresco-remote-api/tree/master/src/test/java/org/alfresco/repo/web/scripts
2019-03-04 10:00:14 GMT <alfbot> Title:alfresco-remote-api/src/test/java/org/alfresco/repo/web/scripts at master · Alfresco/alfresco-remote-api · GitHub (at github.com)
2019-03-04 10:00:42 GMT <mtsiak2> what if the parent is deleted?
2019-03-04 10:01:01 GMT <angelborroy> Alfresco will restore everything
2019-03-04 10:01:07 GMT <angelborroy> including parent folders
2019-03-04 10:17:56 GMT <alfresco-discord> <Alfresco User> @angel.borroy Thank you Will definitely look into it.
2019-03-04 10:24:28 GMT <alfresco-discord> <Alfresco User> @angel.borroy bootstrap code has a HelloWorldwebScriptControllerTest class. I was planning to junit test my webscripts in a similar manner. If I use this approach, how do I get the request parameters?
2019-03-04 10:27:15 GMT <angelborroy> Just use Junit params
2019-03-04 10:27:15 GMT <angelborroy> https://github.com/Alfresco/alfresco-remote-api/blob/master/src/test/java/org/alfresco/repo/web/scripts/node/NodeWebScripTest.java
2019-03-04 10:27:17 GMT <alfbot> Title:alfresco-remote-api/NodeWebScripTest.java at master · Alfresco/alfresco-remote-api · GitHub (at github.com)
2019-03-04 10:39:09 GMT <AFaust> angelborroy: I believe the ReST API only allows you to restore top-level elements file-by-file. If you have a deleted folder, it is (to my knowledge) not possible, to just restore a single file from within that folder.
2019-03-04 10:39:44 GMT <angelborroy> Thanks for the feedback, AFaust
2019-03-04 10:40:11 GMT <angelborroy> I remember that you can restore one single file from Share Trashcan UI
2019-03-04 10:40:18 GMT <AFaust> At least that is one aspect that I originally wanted to improve with my "Better Trash Management" hack-a-thon project, though due to other ideas, I have not worked on that during the DevCon hack-a-thon (and did not have time to do so between my various customer projects)
2019-03-04 10:40:21 GMT <angelborroy> So I imagined that REST API will be the same
2019-03-04 10:40:49 GMT <angelborroy> So the operation does not work also from Share UI?
2019-03-04 10:40:52 GMT <AFaust> Yes, but that Share UI also only allows you to restore a top level file, i.e. a file that has been deleted individually before
2019-03-04 10:41:01 GMT <angelborroy> ah, ok
2019-03-04 10:41:05 GMT <angelborroy> Yes, you are right
2019-03-04 10:41:50 GMT <AFaust> The limitation is actually really ingrained into the NodeArchiveService API...
2019-03-04 10:42:13 GMT <AFaust> or specifically on how it is exposed
2019-03-04 10:43:07 GMT <AFaust> There is actually a "restore node X to parent node Y" which could theoretically be used, and that was also used in the old Explorer client for restoring a top-level node a different location than the original.
2019-03-04 10:44:06 GMT <AFaust> Currently, no Java code in the core of Alfresco exposes that operation, meaning it is also no exposed via ReST API
2019-03-04 11:00:48 GMT <angelborroy> @mtsiak2 Note AFaust comments
2019-03-04 11:01:01 GMT <angelborroy> My previous observations were not accurate
2019-03-04 11:27:45 GMT <mtsiak2> ok. thank you all.
2019-03-04 13:19:50 GMT <mtsiak2> what we did to avoid restoring our snapshot: we created a temp dir and then deleted it. we copied the first 500 files from the large deleted folder to the newly deleted folder, and restored the later.
2019-03-04 13:20:17 GMT <mtsiak2> and repeat it for the rest 500, and so on. ..
2019-03-04 13:20:58 GMT <mtsiak2> thank you again for the support.
2019-03-04 13:23:55 GMT <mtsiak2> coping a document from the archive://SpacesStore to workspace://SpacesStore cannot be done.
2019-03-04 13:57:38 GMT <angelborroy> mtsiak2 congrats and nice idea!
2019-03-04 15:21:01 GMT <alfresco-discord> <Alfresco User> @angel.borroy all classes extend BaseWebScriptTest and I cannot find its jar. Alfresco-remote-api.jar or alfresco-remote-api-tests.jar doesn't have it either. How do I resolve this issue?
The other logs are at http://esplins.org/hash_alfresco