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

2017-08-01 08:10:42 GMT * DarkStar1 bids you all a good morning

2017-08-01 08:27:07 GMT <Tichodroma> To build 5.1 JAR modules, I so far use alfresco-sdk-parent:2.20 (https://u.lhorn.de/m5bE). Is this still the version to use for 5.2 JAR modules?

2017-08-01 08:27:09 GMT <alfbot> Title: The Central Repository Search Engine (at search.maven.org)

2017-08-01 08:29:59 GMT <Tichodroma> At least on Maven Central there is no newer version. Wasn't there a 3.x of the SDK? Or is there no parent anymore?

2017-08-01 08:31:26 GMT <Tichodroma> Note that I am not interested in running Alfresco using Maven or such things. I only want to execute unit tests and package the JAR. That's all.

2017-08-01 08:31:53 GMT <Tichodroma> So http://docs.alfresco.com/5.2/concepts/sdk-maven-plugin-configure.html is not what I am looking for.

2017-08-01 08:31:54 GMT <alfbot> Title: Configuring the Alfresco Maven plugin | Alfresco Documentation (at docs.alfresco.com)

2017-08-01 08:36:20 GMT <DarkStar1> Tichodroma: I'm using the SDK 3.0.1 to build jar modules for 5.2. I used https://www.fikatechnologies.com/alfresco-sdk-3-0-walkthrough-part-1/ to get up and running though

2017-08-01 08:36:22 GMT <alfbot> Title: Alfresco SDK 3.0 Walkthrough, Part 1 - FIKA (at www.fikatechnologies.com)

2017-08-01 08:37:11 GMT <Tichodroma> thanks, I will take a look

2017-08-01 08:37:23 GMT <DarkStar1> In fact I'm having to convert an old module to SDK 3.o at the moment before I can debug it.

2017-08-01 08:37:31 GMT <DarkStar1> 3.0*

2017-08-01 08:39:14 GMT <Tichodroma> yes, that's what I am doing right now. It would be nice I the code then compiles against 5.2. Looks like I'll have to change much of the pom.xml stuff :(

2017-08-01 08:39:32 GMT <Tichodroma> a "Getting started" guide is find, a migration guide would be even better

2017-08-01 08:43:10 GMT <fcorti> Hi Tichodroma, the migration guide has been requested from someone and we are thinking to do it.

2017-08-01 08:43:39 GMT <fcorti> In any case... copy & pasting the source from a SDK 2 project to an empty SDK 3 project is faster...

2017-08-01 08:44:13 GMT <fcorti> The http://docs.alfresco.com/5.2/concepts/sdk-intro.html page is the root of more than 40 tutorial and sub-pages

2017-08-01 08:44:14 GMT <alfbot> Title: Alfresco SDK 3.0 | Alfresco Documentation (at docs.alfresco.com)

2017-08-01 08:44:39 GMT <fcorti> let me know if there is something missing (migration apart)... more than happy to receive feedback

2017-08-01 08:46:26 GMT <Tichodroma> the source files are not the problem, the Maven pom.xml is what I am working on right now. In SDK 2.x, a parent pom was used. This is gone for 3.x so I have to collect the stuff defined in the parent so far from an archetype-generated pom.xml

2017-08-01 08:48:11 GMT <Tichodroma> example: the dependency on alfresco-platform-distribution so far had version ${alfresco.version}, this is ${alfresco.platform.version} now.

2017-08-01 08:48:18 GMT <Tichodroma> Stuff like this is annoying to find.

2017-08-01 08:49:06 GMT <fcorti> well, yes, changes are annoying to find

2017-08-01 08:50:14 GMT <Tichodroma> that's what I mean. Probably many existing projects will have to go through this, while only some will start on a green field for 5.2

2017-08-01 09:02:44 GMT <yreg> Morning

2017-08-01 09:02:46 GMT *** yreg is now known as Guest53368

2017-08-01 09:03:56 GMT <DarkStar1> Tichodroma: When I upgrade the pom I have a green 5.2 untouched project and I diff compare the pom.xml files (in IntelliJ mind you) to make life much easier.

2017-08-01 09:04:13 GMT <DarkStar1> Guest53368: o/ hola

2017-08-01 09:18:06 GMT <Tichodroma> DarkStar1: yes, something like this probably is the way to go

2017-08-01 12:18:40 GMT <douglascrp> good morning guys

2017-08-01 14:04:23 GMT <DarkStar1> douglascrp: ping

2017-08-01 15:04:52 GMT <Tichodroma> just discovered that Alfresco 5.2 sets LD_LIBRARY_PATH to common/lib. If a subprocess requires a different library than those in this directory, the subprocess fails.

2017-08-01 15:05:10 GMT <Tichodroma> I wonder if this security improvement was documented somewhere

2017-08-01 15:05:31 GMT <douglascrp> Tichodroma, is it a global set?

2017-08-01 15:05:41 GMT <douglascrp> isn't it just for the current Alfresco's process?

2017-08-01 15:16:14 GMT <fwu> hi all!

2017-08-01 15:16:47 GMT <fwu> ppl, how are you controlling the "." and "," in your property fields?

2017-08-01 15:17:03 GMT <fwu> to display currency

2017-08-01 15:17:41 GMT <resplin> People have been asking for an update on our migration to GitHub. Derek just published an update:

2017-08-01 15:17:47 GMT <resplin> https://community.alfresco.com/people/derek/blog/2017/08/01/update-content-services-svn-to-git-and-clas

2017-08-01 15:17:49 GMT <alfbot> Title: Update: Content Services: SVN-to-Git and CLAs | Alfresco Community (at community.alfresco.com)

2017-08-01 21:20:34 GMT <Ziberius> hello

2017-08-01 21:22:07 GMT <Ziberius> I'm using alfresco 4.0.d community edition and need to create directories or spaces dynamically from java

2017-08-01 21:22:12 GMT <Ziberius> with restful api

2017-08-01 21:22:20 GMT <Ziberius> any ideas how to achieve this?

2017-08-01 21:22:31 GMT <Ziberius> I found this link with a curl exacmple to do this https://community.alfresco.com/thread/209404-create-folder-in-the-repository-using-alfresco-restful-api

2017-08-01 21:22:33 GMT <alfbot> Title: Create Folder in the Repository using Alfresco ... | Alfresco Community (at community.alfresco.com)

2017-08-01 21:23:11 GMT <resplin> Ziberius: I recommend using CMIS

2017-08-01 21:23:27 GMT <Ziberius> but when I try it, and I've tried with different urls,I get an html as response that says the resource is not available

2017-08-01 21:23:59 GMT <Ziberius> resplin: yeah I've heard it's better but the implementation we have is with restful...we are currently uploading and downloading doucments

2017-08-01 21:24:18 GMT <resplin> CMIS is an industry standard RESTful API for content management.

2017-08-01 21:24:26 GMT <resplin> A few things you should know:

2017-08-01 21:24:45 GMT <resplin> * 4.0 is really old. There is a new Alfresco REST API in 5.2 that makes this much easier

2017-08-01 21:25:25 GMT <resplin> * The CMIS endpoints changed a couple of times between 3.3 and 5.0. You need to find the right ones for your version.

2017-08-01 21:25:52 GMT <resplin> If you are using the right CMIS endpoints, then you can just use the CMIS call to create the folders.

2017-08-01 21:26:12 GMT <Ziberius> ok guess I'll look into CMIS...create a stand alone java application to do what needs to be done

2017-08-01 21:26:13 GMT <resplin> There is a Java library (OpenCMIS) that makes this easy.

2017-08-01 21:26:18 GMT <Ziberius> nice

2017-08-01 21:27:06 GMT <Ziberius> Any idea if I can move files from one space to another with this library? I need to reorganize one space with millions of files into subdirectories with year and month

2017-08-01 21:27:11 GMT <resplin> Ziberius: Here is an example https://github.com/jpotts/alfresco-api-java-examples

2017-08-01 21:27:12 GMT <alfbot> Title: GitHub - jpotts/alfresco-api-java-examples: Examples showing how to hit the Alfresco Public API using Java. (at github.com)

2017-08-01 21:27:21 GMT <Ziberius> nice thanx :-D

2017-08-01 21:27:24 GMT <resplin> Yes. That's a common use case.

2017-08-01 21:27:58 GMT <resplin> Spaces in Alfresco Explorer are just directories / folders, with a bit of extra logic to execute rules.

2017-08-01 21:28:44 GMT <resplin> I'm a product manager for Alfresco. Do you mind explaining why you are still on 4.0?

2017-08-01 21:29:00 GMT <resplin> We are trying to better understand what makes it hard for people to upgrade.

2017-08-01 21:31:18 GMT <Ziberius> resplin: pretty much the old if it ain't broke...

2017-08-01 21:32:08 GMT <Ziberius> not sure how complicated an upgrade is...there's a lot of files on the server

2017-08-01 21:33:47 GMT <Ziberius> ultimately the client decides though...but do you think we should recommend an update? is it complicated to migrate all files to a new server?

2017-08-01 22:54:46 GMT <resplin> ~later tell Ziberius The difficulty of an upgrade really depends on what customizations you have made. Upgrading content and metadata isn't generally very hard. 4.0 is known to be vulnerable to a variety of security issues.

2017-08-01 22:54:46 GMT <alfbot> resplin: The operation succeeded.

End of Daily Log

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