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-09-19 06:24:33 GMT <Joyson> Hi, I am trying to create few files / folder and its properties by uploading zip file (custom repository webscript).

2017-09-19 06:24:47 GMT <Joyson> I am able to create the files / folder under the specified container node reference. Everything is as expected but sometimes I get the below exception after the repository webscript gets executed

2017-09-19 06:25:01 GMT <Joyson> https://pastebin.com/PBJSDprH

2017-09-19 06:25:02 GMT <alfbot> Title: 2017-09-19 11:44:06,173 INFO [com.someco.repoamp.patchutils.ImportPatchUtils] [ - Pastebin.com (at pastebin.com)

2017-09-19 06:25:31 GMT <Joyson> Any idea what could have caused this exception ?

2017-09-19 06:54:34 GMT <yreg> Joyson, are you first saving the zip in a node then extract it ?

2017-09-19 06:54:44 GMT <yreg> Morning everyone

2017-09-19 06:57:25 GMT <Joyson> @yreg no, I am extracting the zip file to Alfresco temporary file (webapps/temp folder) and then creating the files / folders

2017-09-19 06:57:38 GMT <Joyson> * temporary folder

2017-09-19 07:07:27 GMT <yreg> Joyson, the error you are seeing seems to be related to the async action being run to generate thumbnails trying to use a non existing node (at least not in its transaction context) and the same seems to be happening in a transaction listener

2017-09-19 07:16:10 GMT <Joyson> thanks @yreg

2017-09-19 07:58:08 GMT *** IanW2 is now known as IanW1

2017-09-19 09:05:09 GMT <chandu> Is there any addon for live chat in alfresco? If any, can you please send documentation link.

2017-09-19 09:09:21 GMT <MTielemans> https://www.appnovation.com/blog/alfresco-live-chat-togetherjs Literally the first hit on google

2017-09-19 09:09:22 GMT <alfbot> Title: Alfresco Live Chat with TogetherJS | Appnovation (at www.appnovation.com)

2017-09-19 09:43:38 GMT <fwu> hi all!

2017-09-19 10:01:26 GMT <yreg> I have been developing on top of alfresco for more than three years and I just came to notice the difference between Policy and Behavior quite recently !

2017-09-19 10:01:54 GMT <yreg> I used to the think they were two different names for the same thing

2017-09-19 10:02:25 GMT <twen> yreg That's what I like in a soft dev : you always something new or understand. Very motivating environement :D

2017-09-19 12:59:28 GMT <chandu> MTielemans: Thank you very much

2017-09-19 13:26:02 GMT <fwu> ppl, I needed to delete the alfresco models from solr folder. Why sometimes these files are not replaced when restarting Alfresco?

2017-09-19 13:26:39 GMT <AFaust> Why => Because you made a change in the model that failed the validator for incrementally safe changes...

2017-09-19 13:27:14 GMT <AFaust> Whenever a model contains a non-incremental change, SOLR will not update it and continue to use the old version of the model

2017-09-19 13:27:58 GMT <fwu> AFaust, what if I delete them. Shouldnt Alfresco recreated them?

2017-09-19 13:28:31 GMT <AFaust> If you delete them while SOLR is stopped, it will recreate them after startup + connection to Repository

2017-09-19 13:28:47 GMT <fwu> Everytime I have model diffs errors in log, if I delete them, they are recreated.

2017-09-19 13:29:02 GMT <xdexter> Hello, there are some way that i share a folder or file to public user? with password if possible?

2017-09-19 13:29:10 GMT <fwu> yes, I expect that, but that is not happening

2017-09-19 13:29:16 GMT <fwu> I restarted 2 times...

2017-09-19 13:29:47 GMT <AFaust> Then are you sure the connection to Repository succeeded?

2017-09-19 13:30:10 GMT <AFaust> xdexter: Not with out-of-the-box functionality. There may be addons out there that add password-based sharing...

2017-09-19 13:30:14 GMT <fwu> let me see. I disnt saw any errors, but I can look again

2017-09-19 13:30:50 GMT <xdexter> AFaust, right, and you know some?

2017-09-19 13:31:15 GMT <AFaust> I just tried to find some via Google, but no luck...

2017-09-19 13:31:17 GMT <AFaust> There also is https://issues.alfresco.com/jira/browse/SHA-1528

2017-09-19 13:31:41 GMT <AFaust> But as always, anything related to Share will have the lowest possible priority in Alfresco product strategy

2017-09-19 13:32:12 GMT <xdexter> AFaust, hm ok, i understand...

2017-09-19 13:32:36 GMT <fwu> AFaust, the first error I get is this; 2017-09-19 13:00:06,532 ERROR [solr.core.SolrCore] [http-bio-8443-exec-7] org.alfresco.repo.search.impl.lucene.LuceneQueryParserException: 08190000 Invalid type: ws:webassetCollection

2017-09-19 13:33:04 GMT <AFaust> So that's not good.

2017-09-19 13:33:14 GMT <fwu> and because I have no models, I beleive this is "normal"

2017-09-19 13:33:42 GMT <AFaust> Looks like you had installed the Web Quick Start module in the past, but potentially removed it without deleting any content that is related to it

2017-09-19 13:33:45 GMT <fwu> in the solr folders I deleted the models, and they were not recreated...

2017-09-19 13:34:01 GMT <fwu> I beleive it is there, let me see

2017-09-19 13:34:51 GMT <fwu> its there. I have the expanded folder and the war

2017-09-19 13:35:06 GMT <fwu> what I dont have is the models inside the models folder

2017-09-19 13:35:44 GMT <AFaust> Are you sure you are looking in the correct folder? The path can be configured with the SOLR4 web app context file

2017-09-19 13:36:05 GMT <fwu> AFaust, I did this before :(

2017-09-19 13:36:15 GMT <fwu> im looking inside the solr folder, on these:

2017-09-19 13:36:38 GMT <fwu> archive-SpacesStore

2017-09-19 13:36:49 GMT <fwu> workspace-SpacesStore

2017-09-19 13:37:02 GMT <fwu> both have a models folder

2017-09-19 13:39:20 GMT <fwu> 4.2.f

2017-09-19 13:39:42 GMT <fwu> if I replace the models I will get diff errors

2017-09-19 13:40:11 GMT <AFaust> Again, have you checked which path is configured in the SOLR4 web app context file?

2017-09-19 13:40:44 GMT <AFaust> Ahh - wait. 4.2.f - you are still using the ancient SOLR 1

2017-09-19 13:41:10 GMT <fwu> yes

2017-09-19 13:41:24 GMT <AFaust> I honestly don't know anymore how it was regarding the models with that old version...

2017-09-19 13:41:51 GMT <fwu> I always delete them, and they were recreated, but sometimes I needed to restart more than once...

2017-09-19 13:42:02 GMT <fwu> but im in the third restart, so it is not "normal"

2017-09-19 13:42:24 GMT <AFaust> Normally I would say "might be a bug in an obsolete version - better upgrade"...

2017-09-19 13:43:54 GMT <fwu> AFaust, I will try restart the server. someone says this solves every computer problem... :)

2017-09-19 14:11:04 GMT <fwu> no, this time not even a restart of the server

2017-09-19 14:13:05 GMT <fwu> so it doesnt find types but also dont recreate them

2017-09-19 14:25:38 GMT <fwu> AFaust, if I replace the deleted models I get this:

2017-09-19 14:25:41 GMT <fwu> Caused by: org.alfresco.service.cmr.dictionary.DictionaryException: 08190037 Failed to create M2 Model

2017-09-19 14:25:44 GMT <fwu> M" model?

2017-09-19 14:25:46 GMT <fwu> M2?

2017-09-19 14:25:52 GMT <AFaust> Yes, M2 model.

2017-09-19 14:25:58 GMT <AFaust> That is a common term in modelling

2017-09-19 14:26:08 GMT <fwu> and the I have this:

2017-09-19 14:26:10 GMT <fwu> Caused by: java.io.IOException: Illegal character code 0xd921 in content text

2017-09-19 14:26:18 GMT <fwu> some invalid characters?

2017-09-19 14:26:25 GMT <fwu> maybe in acustom model...

2017-09-19 14:26:26 GMT <AFaust> see https://books.google.de/books?id=71JqCQAAQBAJ&pg=PA489&lpg=PA489&dq=modelling+m2+model&source=bl&ots=nD1rC3lWgR&sig=MDMfufZ2keqHauyVqoby28YwIjo&hl=de&sa=X&ved=0ahUKEwj9yraeurHWAhWoKJoKHVJkB-YQ6AEIZDAL#v=onepage&q=modelling%20m2%20model&f=false

2017-09-19 14:26:27 GMT <alfbot> Title: UML 2000 - The Unified Modeling Language. Advancing the Standard: Third ... - Google Books (at books.google.de)

2017-09-19 14:27:13 GMT <fwu> ok, let me look at it

2017-09-19 14:27:33 GMT <AFaust> It's not a real definition of M2 model concept - only what I could find the quickest

2017-09-19 14:28:38 GMT <AFaust> Unfortunately, the English wikipedia does not have the same content as the German one, which contains a great graphic to explain it

2017-09-19 14:29:42 GMT <AFaust> But I can also recommend a computer science slide deck from a German university: https://proglang.informatik.uni-freiburg.de/teaching/mda/2006ss/04-meta.pdf

2017-09-19 14:30:09 GMT <AFaust> Starting at slide 9

2017-09-19 14:30:45 GMT <AFaust> But that has only marginally something to do with your issue.

2017-09-19 14:31:00 GMT <AFaust> Looks like you have some encoding issues within your model files...

2017-09-19 14:46:28 GMT <fwu> AFaust, yes, it seems so. Im looking to which files were changed

2017-09-19 14:46:42 GMT <fwu> tank you

2017-09-19 14:46:45 GMT <fwu> thank

2017-09-19 14:51:12 GMT <fwu> AFaust, I solved my problem. It seems I can use charatcers like this in the models: ã ç

2017-09-19 14:51:18 GMT <fwu> but I cant use this: í

2017-09-19 14:51:20 GMT <fwu> arghh

2017-09-19 14:51:35 GMT <fwu> of course without any encoding

2017-09-19 14:51:41 GMT <fwu> in a utf-8 xml file

2017-09-19 14:57:21 GMT <AFaust> a) I see no reason for non-ASCII characters to be used in a model file; b) localisation is the responsiblity of external I18n resource bundles; c) always use entity references in XML for non-ASCII

2017-09-19 14:58:19 GMT <MTielemans> Can we use amp dependencies like javascript-console in module jar projects?

2017-09-19 14:59:25 GMT <MTielemans> Heh. Found it. Thanks.

2017-09-19 14:59:34 GMT <MTielemans> I swear, I'd already been trying for some time.

2017-09-19 14:59:54 GMT <fwu> AFaust, yes you are right indeed. this was used for action labels I think.

2017-09-19 15:00:42 GMT <AFaust> MTielemans: Just be aware that there is no guarantee regarding the runtime order of Spring initialisation for modules that have dependencies on other modules...

2017-09-19 15:01:03 GMT <MTielemans> AFaust, thanks, just debugging. Will try adding a scope to the dependency later.

2017-09-19 15:01:33 GMT <AFaust> So be careful about assuming the other module has initialised correctly, e.g. already bootstrapped its model, before you do something that relies on it, e.g. registering a behaviour on a type/aspect/association

2017-09-19 15:21:09 GMT <fwu> AFaust, yes. In this case deleting them, no model would be recreated and the error message wouldnt help! I only got the character error replacing the models.

2017-09-19 17:03:34 GMT <yreg> AFaust, MTielemans isn't there a quick & hacky workaround for that ?

2017-09-19 17:03:42 GMT <yreg> something like depends-on or something ?

2017-09-19 17:04:57 GMT <MTielemans> I think if you would make your bootstrap bean depend on another amp's bootstrap bean, and that amp wasn't yet loaded, you'd just get an error. Don't really know though.

2017-09-19 17:05:14 GMT <yreg> I am refering to a special attribute in the bean XML definition that would depend on a bean from an other module

2017-09-19 17:08:59 GMT <MTielemans> Afaik there are no extensions to the basic Spring XML structure.

2017-09-19 17:09:23 GMT <AFaust> yreg: Sure, you can use depends-on, and it is dirty as you mention. That way you have to make another addon, that should be mostly a black box to you because it could change internally, into an open book to know which bean to depend on...

2017-09-19 17:10:34 GMT <yreg> AFaust, well I was more likely referring to customer integration projects than addon projects

2017-09-19 17:10:46 GMT <AFaust> On my list of "things to do when you are bored" is a task to find out if I can influence the order in which Spring context files are loaded dynamically, e.g. have module-context.xml be ordered based on module.properties declared module dependencies...

2017-09-19 17:11:43 GMT <yreg> AFaust, that would be a cool time-killer

2017-09-19 17:16:33 GMT <MTielemans> http://dev.alfresco.com/resource/AlfrescoOne/5.0/PublicAPI/org/alfresco/web/evaluator/BaseEvaluator.html#getProperty(org.json.simple.JSONObject, java.lang.String) Well that doesn't seem entirely right.

2017-09-19 17:16:34 GMT <alfbot> Title: BaseEvaluator (Alfresco 5.0.3 Public API) (at dev.alfresco.com)

2017-09-19 17:17:02 GMT <MTielemans> I doubt getProperty returns an array of aspects on the given node

2017-09-19 17:17:54 GMT <AFaust> MTielemans: Please don't get started on checking JavaDoc (and other comments) for correctness.

2017-09-19 17:18:17 GMT <MTielemans> Haha, it's an endless prayer I know

2017-09-19 17:18:39 GMT <AFaust> I just worked on a client-side JS file where the user site role picker initialisation code had a comment stating "File Select Menu Button"

2017-09-19 17:19:03 GMT <MTielemans> Haha! Gold.

2017-09-19 17:19:09 GMT <MTielemans> I guess it happens

2017-09-19 21:17:14 GMT <fwu> hi all!

2017-09-19 21:18:28 GMT <fwu> ppl, Im trying to deploy a custom theme using a jar file with sdk 3. Im putting the theme folder inside Meta-Inf/resources/themes, but it is not working...

2017-09-19 21:18:50 GMT <fwu> should I place it in other location?

2017-09-19 21:20:50 GMT <MTielemans> Did you also provide a theme definition xml?

2017-09-19 21:21:06 GMT <MTielemans> See http://docs.alfresco.com/5.1/tasks/dev-extensions-share-tutorials-add-theme.html

2017-09-19 21:21:07 GMT <alfbot> Title: Adding a custom Share Theme | Alfresco Documentation (at docs.alfresco.com)

2017-09-19 21:21:28 GMT <fwu> MTielemans, I dont think I provided that!

2017-09-19 21:21:50 GMT <fwu> in 4.2.f I used an amp and the folder was copied to the right place

2017-09-19 21:22:10 GMT <fwu> let me look at that tutorial. thank you!

2017-09-19 21:25:41 GMT <MTielemans> np

2017-09-19 21:34:32 GMT <fwu> MTielemans, it worked! thank you!

2017-09-19 21:35:52 GMT <MTielemans> Glad to hear it!

End of Daily Log

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