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-22 11:53:58 GMT <hi-ko> Hi guys, does anybody know if/how/where to configure the solr dir where alfresco writes the cached metadata to (by default $SOLR_HOME/contentstore/_DEFAULT_/db)

2019-07-22 11:54:40 GMT <hi-ko> I want to scrictly separate config from data

2019-07-22 11:56:48 GMT <angelborroy> It should be this property

2019-07-22 11:56:48 GMT <angelborroy> https://github.com/Alfresco/SearchServices/blob/master/search-services/alfresco-search/src/main/resources/solr/instance/templates/rerank/conf/solrcore.properties#L10

2019-07-22 11:56:50 GMT <alfbot> Title:SearchServices/solrcore.properties at master · Alfresco/SearchServices · GitHub (at github.com)

2019-07-22 11:57:00 GMT <angelborroy> But I don’t know if it applies to your version

2019-07-22 11:58:01 GMT <hi-ko> search services 1.2 +

2019-07-22 11:58:28 GMT <angelborroy> It should work

2019-07-22 12:00:19 GMT <alfresco-discord> <Thijs> has anybody used Alfresco's server side javascript debugger in a docker container?

2019-07-22 12:02:41 GMT <hi-ko> strange: I have data.dir.root=/var/lib/solr/data/ but the db files are written to /var/lib/solr/contentstore/_DEFAULT_/db (not in subdir data) I will compare with the old config used in 5.2/solr4 to find out ... - thanks!

2019-07-22 12:29:20 GMT <hi-ko> angelborroy: in 5.2 it is similar: data.dir.root=/opt/alfresco/alf_data/solr/index but db files are written to /opt/alfresco/alf_data/solr/content. It seems that it is more or less hardcoded to $(data.dir.root)/../content(store) very strange.

2019-07-22 13:26:48 GMT <AFaust> Thijs: As with any headless server environment, the JavaScript debugger will not work in Docker.

2019-07-22 13:26:54 GMT <AFaust> Nothing to be done there.

2019-07-22 13:27:40 GMT <AFaust> It will also not work on WIndows if Alfresco is run as a service, as there is typically no way to connect to the screen in which the debugger windows would be opened.

2019-07-22 13:28:53 GMT <AFaust> hi-ko: In SOLR 4 it used to be configurable via the solr.xml context file in tomcat/conf/Catalina/localhost/

2019-07-22 13:29:28 GMT <alfresco-discord> <Thijs> with Docker there are some tricks to make X11 work, but we gave up on that since it takes too much time

2019-07-22 13:29:40 GMT <alfresco-discord> <Thijs> thanks for the answer anyway

2019-07-22 13:29:47 GMT <AFaust> I still have an old SOLR 4 setup with <Environment name="solr/content/dir" type="java.lang.String" value="C:/alf-instances/Alfresco 52/solrContent" override="true"/> in the solr4.xml

2019-07-22 13:30:19 GMT <AFaust> data.dir.root in solrcore.properties is ONLY for the index data, not the cache...

2019-07-22 13:32:13 GMT <AFaust> In my local SOLR 6 setup I have set the (undocumented) SOLR_SOLR_CONTENT_DIR env variable in solr.in.sh / solr.in.cmd for configuring the cache

2019-07-22 13:33:10 GMT <AFaust> (to be fair, it was probably undocumented when I started with SOLR 6 back when they first released it - haven't checked back later to see if they completed the documentation)

2019-07-22 13:33:19 GMT <hi-ko> omg - thanks AFaust - will give SOLR_SOLR_CONTENT_DIR a try ...

2019-07-22 13:35:21 GMT <hi-ko> AFaust: so I can add SOLR_SOLR_MODEL_DIR - found here: https://issues.alfresco.com/jira/browse/MNT-18715 ;-)

2019-07-22 13:36:37 GMT <hi-ko> so yes: it is documented: https://docs.alfresco.com/5.2/concepts/external-properties-solr6.html

2019-07-22 13:36:39 GMT <alfbot> Title:Solr 6 externalized configuration | Alfresco Documentation (at docs.alfresco.com)

2019-07-22 13:36:40 GMT <AFaust> Hmm. that used to work in 1.0.0, but apparently they broke it somewhere

2019-07-22 13:37:13 GMT <AFaust> At least there appears to be a workaround

2019-07-22 13:38:05 GMT <AFaust> As best as I can remember, this method (https://github.com/Alfresco/SearchServices/blob/master/search-services/alfresco-search/src/main/java/org/alfresco/solr/config/ConfigUtil.java#L51) was key for looking up all those variables / configs...

2019-07-22 13:38:06 GMT <alfbot> Title:SearchServices/ConfigUtil.java at master · Alfresco/SearchServices · GitHub (at github.com)

2019-07-22 13:38:50 GMT <AFaust> Unfortunately the history is messed up due to package renaming...

2019-07-22 13:40:17 GMT <angelborroy> https://github.com/Alfresco/SearchServices/blob/ca66ed0af7691ec564e00692d03050af76818a1d/search-services/alfresco-search/src/main/java/org/alfresco/solr/content/SolrContentStore.java#L62

2019-07-22 13:40:18 GMT <alfbot> Title:SearchServices/SolrContentStore.java at ca66ed0af7691ec564e00692d03050af76818a1d · Alfresco/SearchServices · GitHub (at github.com)

2019-07-22 13:40:21 GMT <AFaust> Strange that the fix version for MNT-18715 was never adapted to point to a specific release. Makes me wonder if the fix was ever released.

2019-07-22 13:40:52 GMT <AFaust> angelborroy: Yeah, an a few lines further down, it calls the method I linked

2019-07-22 13:41:07 GMT <angelborroy> Sorry, I missed that

2019-07-22 13:44:18 GMT <hi-ko> strange line anyway: solrHomeFile.getParent()+"/"+CONTENT_STORE - CONTENT_STORE is hard coded and getParent() steps out of SOLR_HOME ...

2019-07-22 14:09:53 GMT <alfresco-discord> <plus-> When auto-creating users in Alfresco with SSO, can you specify different properties (firstname, lastname, email)? I had a quick look and it seems only the username is possible (PersonServiceImpl#createMissingPersonAsSystem)

2019-07-22 14:10:14 GMT <alfresco-discord> <plus-> Am I wrong, is the only option to rely on user sync later on?

2019-07-22 14:13:11 GMT <alfresco-discord> <plus-> I'm thinking specifically about creating/syncing users from Oauth2

2019-07-22 14:17:20 GMT <alfresco-discord> <asg> Hey there! I'm trying to migrate our customizations from alfresco 5.2 (sdk 3) to 6.1 (sdk4). Everything looks quite good now, except our Integration tests. It looks like the proxy webscript for the ITs (testing/test.xml) is not available. I tried to generate a plain sdk 4.0 project and run the ITs. I had exactly the same issue: Script url /testing/test.xml does not map to a Web Script. Anybody has the

2019-07-22 14:17:20 GMT <alfresco-discord> same issues or any advice?

2019-07-22 14:28:32 GMT <AFaust> plus: If you create users in Alfresco with SSO, Alfresco will try an ad-hoc sync with any configured / enabled user directories (LDAP / AD) to fetch the relevant properites.

2019-07-22 14:28:43 GMT <AFaust> You don't have to wait until the next sync in that case.

2019-07-22 14:32:36 GMT <alfresco-discord> <plus-> right but the user is always created with a simple username first, never with additional properties, and there is no way around it

2019-07-22 14:32:48 GMT <alfresco-discord> <plus-> (just to confirm)

2019-07-22 14:44:16 GMT <AFaust> There is a way around this: synchronization.syncWhenMissingPeopleLogIn=true + a working LDAP/AD configuration

2019-07-22 14:44:42 GMT <AFaust> But if the user does not exist in the remote user directory, then yes, there is no way around this.

2019-07-22 14:45:11 GMT <AFaust> And synchronization.syncWhenMissingPeopleLogIn=true is actually the default configuration...

2019-07-22 14:45:35 GMT <hi-ko> which should be false by default

2019-07-22 14:46:05 GMT <hi-ko> if you have more than a dozen users

2019-07-22 14:47:21 GMT <alfresco-discord> <plus-> cheers

2019-07-22 14:51:32 GMT <hi-ko> AFaust, angelborroy: I tried env SOLR_SOLR_CONTENT_DIR, SOLR_SOLR_MODEL_DIR but both seem to be ignored in ass 1.3.0.1 same for (solr.)solr.content.dir property

2019-07-22 14:53:30 GMT <angelborroy> hi-ko I’ll check this later

2019-07-22 14:53:35 GMT <angelborroy> Are you trying with Docker or local installation?

2019-07-22 14:53:45 GMT <AFaust> Well, it does a differential sync AFAIK, so it should not be problematic even if set to true.

2019-07-22 14:53:51 GMT <hi-ko> plus-: you should always set synchronization.autoCreatePeopleOnLogin=false

2019-07-22 14:53:51 GMT <hi-ko> since this method ignores the sync config

2019-07-22 14:56:35 GMT <hi-ko> <angelborroy> local install

2019-07-22 14:57:33 GMT <hi-ko> <angelborroy> but the shouln't be any difference setting the env variables, right?

2019-07-22 14:57:52 GMT <hi-ko> s/the/there/

2019-07-22 15:00:39 GMT <alfresco-discord> <plus-> We're moving away from maintaining people in LDAP, so we were hoping we could somehow create people with additional info when authenticating with SSO

2019-07-22 15:01:00 GMT <alfresco-discord> <plus-> but from what I understand now it's not possible to do without a people directory to sync with

2019-07-22 15:08:45 GMT <hi-ko> angelborroy, Afaust: I got a work around as stated in MNT-18715: you can't set the properties in the solrcores but as start parameters e.g.

2019-07-22 15:08:47 GMT <hi-ko> SOLR_OPTS="$SOLR_OPTS -Dsolr.solr.content.dir=/opt/alfresco/alf_data/solr/contentstore"

2019-07-22 15:08:47 GMT <hi-ko> SOLR_OPTS="$SOLR_OPTS -Dsolr.solr.model.dir=/opt/alfresco/alf_data/solr/alfrescoModels"

End of Daily Log

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