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-01-21 06:25:48 GMT <alfresco-discord> <Anurag> Hello everyone, How can we restrict workflow attachment mimetypes? only pdf attachment it should support.

2019-01-21 07:55:41 GMT <alfresco-discord> <mbui> Is it for APS or embedded activiti? @Anurag

2019-01-21 07:59:07 GMT <missamma> I am trying ti install Alfresco SDK. I am following steps mentioned in the 5.X Develpers

2019-01-21 08:01:54 GMT <missamma> I am trying to install Alfresco SDK. I am following steps mentioned in the 5.X Develper's guide. Will there be a difference when I select different versions of alfresco-allinone-archetype? The doc says 2.2.0; but I see that there are latest versions too. Will I be missing anything if I choose 3.0.1 version?

2019-01-21 08:03:51 GMT <alfresco-discord> <yreg> nope, only difference is that you will be packaging as jars by default then

2019-01-21 08:04:07 GMT <alfresco-discord> <yreg> and you will need to manually switch to amp if your usecase requires that

2019-01-21 09:11:14 GMT <alfresco-discord> <Flo0975> Hello, I just installed alfresco by following this tutorial : https://community.alfresco.com/community/ecm/blog/2018/07/12/deploying-alfresco-content-services-community-edition-201806-ga I come on this : What should I do to be on alfresco community?

2019-01-21 09:11:14 GMT <alfresco-discord> <Flo0975> https://cdn.discordapp.com/attachments/451644531323174914/536835146289119237/alfresco.PNG

2019-01-21 09:11:15 GMT <alfbot> Title:Deploying Alfresco Content Services Community E... | Alfresco Community (at community.alfresco.com)

2019-01-21 09:11:42 GMT <alfresco-discord> <Flo0975> Sorry for my English, I'm french

2019-01-21 09:16:38 GMT <alfresco-discord> <yreg> @Flo0975 what were you expecting ?

2019-01-21 09:18:20 GMT <alfresco-discord> <Flo0975> I would like to go to the alfresco community, what is the difference between the share and alfreco community? @yreg

2019-01-21 09:29:27 GMT <alfresco-discord> <yreg> share is the out of the box client APP providing a UI for browsing, searching, uploading, administring ....

2019-01-21 10:13:56 GMT <alfresco-discord> <Anurag> @mbui This is an embedded activity

2019-01-21 10:26:56 GMT <alfresco-discord> <Flo0975> I succeeded, thank you. I now have to export users (which are on an old version of alfresco) and I have to import it on alfresco version 6. I found how to import a csv file, but I do not know how to export users and groups (I do not need files)

2019-01-21 10:29:46 GMT <alfresco-discord> <mbui> @Anurag Not sure if this is the best solution, but you could probably configure your task form used to used a modified version of the OOTB attachment control template.

2019-01-21 10:31:09 GMT <alfresco-discord> <mbui> Another solution could be writing policies or creating a mimetype check in the endlistener of the task.

2019-01-21 10:31:58 GMT <alfresco-discord> <Flo0975> @mbui Hi, can you help me? 😃

2019-01-21 10:33:15 GMT <alfresco-discord> <mbui> @Flo0975 I'm not sure if exporting users is available OOTB, I know that we created a custom webscript which exports all users in the system to excel for a customer.

2019-01-21 10:34:59 GMT <alfresco-discord> <mbui> What's the purpose of exporting the users? You can simply upgrade your current version of Alfresco to version 6 and you wouldn't have to export/import the users. You'd also keep all the content intact by doing this.

2019-01-21 10:38:08 GMT <alfresco-discord> <Flo0975> I had to install alfresco version 6 from scratch, it's a new server and they want more the same files. They prefer to make a new installation, except that it takes old users .. That's why I want to export old users! Is it possible to give me this script? @mbui

2019-01-21 10:48:15 GMT <alfresco-discord> <mbui> Not sure this script fulfill your needs, it's used to count total users, including disabled users. Still, I think the correct way is to migrate the contentstore/database to this new severs and perform an upgrade if you want to keep all the data intact.

2019-01-21 11:34:39 GMT <alfresco-discord> <MorganP> There is nothing out of the box to export users

2019-01-21 11:35:08 GMT <alfresco-discord> <MorganP> but you can use the REST API to list users and then with a pretty simple script you could parse that to generate a csv

2019-01-21 11:36:40 GMT <alfresco-discord> <MorganP> You could also check the DB directly

2019-01-21 11:37:05 GMT <alfresco-discord> <MorganP> or if these users are coming from an external directory, then you just have to put the same configuration (LDAP for example)

2019-01-21 11:46:08 GMT <alfresco-discord> <yreg> There is actually a python project somewhere on github called share-import-export or something alike

2019-01-21 11:46:34 GMT <alfresco-discord> <yreg> which uses share REST apis to import/export among other things users and groups

2019-01-21 11:51:16 GMT <alfresco-discord> <mbui> How is the password migrated when using the APIs to extract user data?

2019-01-21 11:55:59 GMT <alfresco-discord> <yreg> they are not, even though it is technically possible to take the hash and migrate it, that project uses a hardcoded password for all migrated users

2019-01-21 11:56:18 GMT <alfresco-discord> <yreg> as it is a pure client app with no addons installed on the server side

2019-01-21 11:57:07 GMT <alfresco-discord> <yreg> @mbui for more details : https://github.com/wabson/share-import-export#what-can-be-importedexported

2019-01-21 11:57:08 GMT <alfbot> Title:GitHub - wabson/share-import-export: A collection of Python scripts which can be used to import and export sites and users from Alfresco Share. (at github.com)

2019-01-21 11:57:37 GMT <alfresco-discord> <MorganP> Then 2 line of shell scripts and the password is sent to end-users with a nice user guide in attachment

2019-01-21 11:57:44 GMT <alfresco-discord> <MorganP> that's how I usually do as well

2019-01-21 12:02:02 GMT <alfresco-discord> <MorganP> but with a random password

2019-01-21 12:12:44 GMT <alfresco-discord> <Flo0975> How to get the list of users with the REST API. Possible to have an example of the CSV file that will be retrieved imported (it is to create the script)? @yreg @mbui

2019-01-21 12:13:11 GMT <alfresco-discord> <yreg> @Flo0975 check the link I sent earlier

2019-01-21 12:14:18 GMT <alfresco-discord> <Flo0975> ok thank's 😃

2019-01-21 12:24:19 GMT <alfresco-discord> <Flo0975> By following the link, I do not understand! Is it possible to explain in detail each step please? @yreg

2019-01-21 12:24:47 GMT <alfresco-discord> <yreg> I fin the project to be clear enough, you need to have python installed

2019-01-21 12:25:06 GMT <alfresco-discord> <yreg> and that project makes it possible to easily import/export users across alfresco versions

2019-01-21 12:25:22 GMT <alfresco-discord> <yreg> only downside there is that it doesn't migrate the password

2019-01-21 12:25:45 GMT <alfresco-discord> <yreg> you could browse through the code to find away the endpoints being called behind the scene

2019-01-21 12:26:16 GMT <alfresco-discord> <Flo0975> The script also allows to export groups?

2019-01-21 12:26:54 GMT <alfresco-discord> <yreg> https://github.com/wabson/share-import-export/blob/master/shareclient/alfresco.py#L1095

2019-01-21 12:26:56 GMT <alfbot> Title:share-import-export/alfresco.py at master · wabson/share-import-export · GitHub (at github.com)

2019-01-21 12:27:02 GMT <alfresco-discord> <yreg> that's the endpoint for users

2019-01-21 12:27:34 GMT <alfresco-discord> <yreg> and this is the one for grouops

2019-01-21 12:27:41 GMT <alfresco-discord> <yreg> https://github.com/wabson/share-import-export/blob/master/shareclient/alfresco.py#L1201

2019-01-21 12:27:42 GMT <alfbot> Title:share-import-export/alfresco.py at master · wabson/share-import-export · GitHub (at github.com)

2019-01-21 12:28:12 GMT <alfresco-discord> <yreg> if you read the README, you would have discovered it does, with certain limitations

2019-01-21 12:28:52 GMT <alfresco-discord> <Flo0975> ok thank's 😃 ❤

2019-01-21 15:42:14 GMT <Tichodroma> If a metadata extractor like extracter.PDFBox fails to extract because its maxConcurrentExtractionsCount is reached, will the extraction be retried later? I have the impression that it just fails and that is it.

2019-01-21 15:59:04 GMT <hi-ko> I'm confused: could it really be that content.metadataExtracter.pdf.maxConcurrentExtractionsCount=5 ends up in no metadata for the ~6th document in a multifile upload?

2019-01-21 16:01:01 GMT <hi-ko> no retry - just no metadata. Very strange ...

End of Daily Log

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