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-06-06 05:59:32 GMT <twen> hello

2017-06-06 09:00:31 GMT <mtsiak> hi all. in a custom ftl form control for a workflow, how could i get a node's property?

2017-06-06 09:00:57 GMT <mtsiak> <#assign nodeRef = form.data["assoc_packageItems"] >

2017-06-06 09:00:57 GMT <mtsiak> <#list nodeRef?split(",") as n>

2017-06-06 09:00:57 GMT <mtsiak> ${n}<br/>

2017-06-06 09:00:57 GMT <mtsiak> </#list>

2017-06-06 09:02:11 GMT <mtsiak> how can i get a property of a custom aspect of ${n} ?

2017-06-06 09:17:45 GMT <angelborroy> mtsiak are you looking for this? http://docs.alfresco.com/4.2/references/API-JS-findNode.html

2017-06-06 09:17:46 GMT <alfbot> Title: findNode | Alfresco Documentation (at docs.alfresco.com)

2017-06-06 09:59:56 GMT <yreg> Goood morning folks !

2017-06-06 10:00:08 GMT *** yreg is now known as Guest68465

2017-06-06 10:00:17 GMT <Guest68465> I have an issue related to actions

2017-06-06 10:00:47 GMT <Guest68465> I have a deployed action having a few parameters

2017-06-06 10:01:06 GMT <Guest68465> but when I tried to access its form using share it is failing

2017-06-06 10:01:39 GMT <Guest68465> I tracked it down to a null pointer exception on the repo side, when repo is trying to emulate a model for the form for share

2017-06-06 10:02:27 GMT <Guest68465> the NPE is happening after a call to get the action parameters which returned null

2017-06-06 10:03:18 GMT <Guest68465> I debugged that action and found out that action params are only available for a single locale (en-us) so any browser set to a different locale is doomed to fail !

2017-06-06 10:03:56 GMT <Guest68465> I wanted to know if there is any thing I can do to register my action providing same set of fields for all locales

2017-06-06 10:04:19 GMT <Guest68465> and yes AFaust the action is made with dynamic-extensions

2017-06-06 10:04:53 GMT <AFaust> hehe

2017-06-06 10:09:24 GMT <AFaust> An action (actually any parameterized item) has a configured list of locales for which the i18n-ed elements will be pre-generated during initialisation

2017-06-06 10:12:47 GMT <AFaust> If you set that parameter (don't know how you would via Dynamic Extensions) then Alfresco should have more than the default en-US. The default parent bean that all actions normally reuse (again, probably not Dynamic Extensions) already includes all the major languages Alfresco ships with...

2017-06-06 10:12:53 GMT <bhuvana_> hi all

2017-06-06 10:13:38 GMT <bhuvana_> i am unable to get select people in alfresco worklow script

2017-06-06 10:14:11 GMT <bhuvana_> execution.getVariable("bpm_selectpeople").toString()

2017-06-06 10:14:36 GMT <bhuvana_> if i print this in log geting

2017-06-06 10:15:04 GMT <AFaust> bhuvana_: There is no property / association named "bpm_selectpeople" in the default bpmModel.xml

2017-06-06 10:15:24 GMT <bhuvana_> : Cannot call property length in object [Node Type: {http://www.alfresco.org/model/content/1.0}person, Node Aspects: [{http://www.alfresco.org/model/content/1.0}ownable, {http://www.alfresco.org/model/system/1.0}cascadeUpdate, {http://www.alfresco.org/model/system/1.0}referenceable, {http://www.alfresco.org/model/system/1.0}localized], Node Type: {http://www.alfresco.org/model/content/1.0}person, Node Aspects: [{http://www.alfres

2017-06-06 10:15:36 GMT <bhuvana_> hi Afaust

2017-06-06 10:16:09 GMT <bhuvana_> in custom workflow i crated that property

2017-06-06 10:16:45 GMT <AFaust> Ok - it is confusing when you re-use the common bpm_ prefix because that is supposed to point to a very specific (default) model.

2017-06-06 10:17:19 GMT <AFaust> Normally you create your own workflow / task model with your own namespace / prefix.

2017-06-06 10:17:41 GMT <AFaust> Ok, so your error states that you have a value and just cannot call length on it.

2017-06-06 10:18:23 GMT <AFaust> I assume you have defined the variable as a single-valued one, which means it is not an array and does not have the "length" property. The value in itself is already the single, selected person

2017-06-06 10:20:38 GMT <bhuvana_> i selected multiple persons

2017-06-06 10:21:00 GMT <bhuvana_> i am getting like object array ithink

2017-06-06 10:21:28 GMT <bhuvana_> i am unable to sent mailto those

2017-06-06 10:21:51 GMT <bhuvana_> var mail = actions.create("mail"); mail.parameters.to_many = [execution.getVariable("tmi_selectpeople").toString()]; mail.parameters.subject = "Alfresco: " + person.properties.firstName + " " + person.properties.lastName + " has sent you an item"; mail.parameters.from = "28.bhuvan@gmail.com"; mail.parameters.text = "The email template failed to load. Please contact the Alfresco administrator.";

2017-06-06 10:22:04 GMT <bhuvana_> this is the script code i am using

2017-06-06 10:25:49 GMT <tushar> hey

2017-06-06 10:25:54 GMT <AFaust> Ahh - yes, you have multiple values selected. The problem is that you don't have a JS array at hand - you have a Java List which does not have a length attribute, it has a size() operation.

2017-06-06 10:26:09 GMT <AFaust> Java Lists are notoriously annoying to handle in server-side Rhino scripts.

2017-06-06 10:26:15 GMT <AFaust> (same with Java Map)

2017-06-06 10:26:32 GMT <tushar> i am not able to send emails from my java files

2017-06-06 10:26:37 GMT <tushar> java code*

2017-06-06 10:26:48 GMT <tushar> localhost can sen

2017-06-06 10:26:50 GMT <tushar> send*

2017-06-06 10:26:58 GMT <tushar> using fake smtp

2017-06-06 10:27:03 GMT <AFaust> Also, the objects in the list are complex objects so you shouldn't just do a toString() on them. Instead fetch the email addresses from them to pass them to the mail action

2017-06-06 10:27:10 GMT <tushar> but no other relay is being carried out

2017-06-06 10:27:34 GMT <bhuvana_> ok thank you tushar

2017-06-06 10:28:21 GMT <AFaust> bhuvana_: Actually, thusar came here with a problem of their own and has not provided that information with regards to your issue...

2017-06-06 10:29:32 GMT <bhuvana_> ok

2017-06-06 10:29:46 GMT <tushar> yeah

2017-06-06 10:29:53 GMT <bhuvana_> i think mail.parameters.to_many = [execution.getVariable("tmi_selectpeople").toString()];

2017-06-06 10:30:10 GMT <bhuvana_> if use like this it will solve my problem

2017-06-06 10:30:49 GMT <AFaust> bhuvana_: No, you need to provide proper email addresses / user names as parameters to the mail action. Not do a toString on some arbitrary complex objects. What you have are ScriptNode instances and their toString() output is meaningless to the mail action

2017-06-06 10:31:32 GMT <AFaust> From a single ScriptNode that represents a person you can do a node.properties.userName to get the user name or a node.properties.email to get the email address

2017-06-06 10:32:22 GMT <AFaust> thushar_: You may need to provide a bit more detail about how you have set up your system and how you are trying to send emails from your Java code. Otherwise the description of your issue is too little to go on...

2017-06-06 10:39:45 GMT <tushar> i implimented an action given in the alfresco documnetation for attching documnets to mail

2017-06-06 10:40:08 GMT <tushar> http://docs.alfresco.com/5.0/tasks/dev-extensions-share-tutorials-add-action-doclib.html

2017-06-06 10:40:09 GMT <alfbot> Title: Adding new actions to the Document Library | Alfresco Documentation (at docs.alfresco.com)

2017-06-06 10:40:12 GMT <tushar> from here

2017-06-06 10:41:08 GMT <tushar> there on i have intigrated it with the alfresco 5.2 and now it is not relaying emails

2017-06-06 10:41:20 GMT <tushar> from any other website

2017-06-06 10:42:08 GMT <tushar> i am running this on local and the ports defined in the java file overidies th alfresco-global.properties

2017-06-06 10:43:38 GMT <AFaust> tushar: That is to be expected with Fake SMTP because it is not a real SMTP server...

2017-06-06 10:44:00 GMT <AFaust> Fake SMTP is just for development purposes and testing it out locally

2017-06-06 10:44:32 GMT <AFaust> Did you configure a real SMTP server via your alfresco-global.properties?

2017-06-06 10:45:20 GMT <tushar> yeah i did

2017-06-06 10:45:26 GMT <tushar> but it is not taking that

2017-06-06 10:46:23 GMT <AFaust> Then there must be some kind of configuration error. In that case it usually is helpful if you can provide your alfresco-global.properties (minus any password data) via a paste system like fpaste.org

2017-06-06 10:46:27 GMT <tushar> the java code takes only two properties mail.host

2017-06-06 10:47:31 GMT <AFaust> and maybe provide your Java code via paste too...

2017-06-06 10:47:45 GMT <AFaust> or link to any public repository...

2017-06-06 10:48:08 GMT <tushar> or you can send me your email id

2017-06-06 10:49:31 GMT <AFaust> That would be the very last option that I prefer not to use... This channel is focussed on community collaboration which implies some openess, e.g. in discussion / results being out in the open instead in some private email conversation.

2017-06-06 10:50:52 GMT <tushar> https://paste.fedoraproject.org/paste/XlpaJuOlOQyvwp5qBKB6xV5M1UNdIGYhyRLivL9gydE=

2017-06-06 10:50:53 GMT <alfbot> Title: Untitled - Modern Paste (at paste.fedoraproject.org)

2017-06-06 10:50:56 GMT <tushar> here

2017-06-06 10:53:41 GMT <AFaust> So you are trying to send mails via the SendGrid service. Are you sure that your user / account is configured properly on their platform?

2017-06-06 10:53:54 GMT <tushar> yes they are

2017-06-06 10:54:43 GMT <AFaust> Ok - and does email sending work using the default Alfresco action (without your custom Java code)?

2017-06-06 10:55:05 GMT <tushar> no

2017-06-06 10:55:46 GMT <AFaust> Have you tried to send any emails via a regular SMTP client with these connection details?

2017-06-06 10:57:28 GMT <tushar> yes sir

2017-06-06 10:57:42 GMT <tushar> it does that perfectly for my fellow mates

2017-06-06 11:00:54 GMT <AFaust> Have you done some SMTP debugging? (-Dmail.debug=true via JAVA_OPTS)

2017-06-06 11:04:54 GMT <tushar> no sir

2017-06-06 12:26:56 GMT <Guest68465> fcorti, is there a reason why alfresco is deleting artifacts from its nexus public releases repo ?

2017-06-06 12:27:51 GMT <fcorti> Hi Guest68465, who are you? :-)

2017-06-06 12:27:52 GMT <fcorti> Can you please share an example?... so I can ask. ;-)

2017-06-06 12:28:18 GMT <Guest68465> yreg

2017-06-06 12:29:01 GMT <Guest68465> fcorti: here it is : https://mvnrepository.com/artifact/org.eclipse.gemini/org.eclipse.gemini.blueprint.extender/1.0.2.RELEASE

2017-06-06 12:29:02 GMT <alfbot> Title: Maven Repository: org.eclipse.gemini » org.eclipse.gemini.blueprint.extender » 1.0.2.RELEASE (at mvnrepository.com)

2017-06-06 12:29:43 GMT <fcorti> hi (hidden) yreg....

2017-06-06 12:29:57 GMT <fcorti> let me check...

2017-06-06 12:32:07 GMT <Guest68465> According to this : https://mvnrepository.com/artifact/org.eclipse.gemini/org.eclipse.gemini.blueprint.extender/1.0.2.RELEASE/usages

2017-06-06 12:32:08 GMT <alfbot> Title: Maven Repository: org.eclipse.gemini » org.eclipse.gemini.blueprint.extender » 1.0.2.RELEASE (Usages) (at mvnrepository.com)

2017-06-06 12:32:35 GMT <Guest68465> We are not the only ones affected, it seems like atlassian & karaf also depend on this

2017-06-06 13:18:23 GMT <mtsiak> I have added an aspect on a node. in a custom ftl form control (for a workflow), how can i print a property of this aspect? the document is in package items of the workflow. If i am correct, i can use only share's JS.

2017-06-06 13:19:29 GMT <mtsiak> I can get the noderefs of the documents via: form.data["assoc_packageItems"]

2017-06-06 13:19:40 GMT <mtsiak> but how do i get the property.

2017-06-06 13:23:25 GMT <mtsiak> I was thinking to add a property p on the current step of the workflow (in the type of this custom workflow model), and previously to add a script task that sets this extra property p, using repository JS.

2017-06-06 13:25:41 GMT <mtsiak> But I guess there is an ajax call that i could make in this custom ftl.

2017-06-06 13:26:38 GMT <mtsiak> This custom ftl is for the outcomeProperty (activitiOutcomeTask), that print the Accept/ Reject buttons.

2017-06-06 13:28:05 GMT <mtsiak> the idea is to warn the user before Accept, that the property is not set. '

2017-06-06 14:47:51 GMT <fcorti> About your question yreg (aka Guest68465): https://issues.alfresco.com/jira/browse/BDE-1142

2017-06-06 14:47:53 GMT <alfbot> Title: Log in - Alfresco JIRA (at issues.alfresco.com)

2017-06-06 14:47:55 GMT <fcorti> Let's monitor this

2017-06-06 14:48:07 GMT <fcorti> Samuel is going through it

2017-06-06 15:05:18 GMT <AxelFaust> fcorti: Invisible ticket

2017-06-06 15:05:33 GMT <AxelFaust> even as a logged in user...

2017-06-06 15:10:22 GMT <fwu> hi all!

2017-06-06 15:10:53 GMT <douglascrp> fcorti, same here, logged in

2017-06-06 15:10:54 GMT <douglascrp> The issue you're trying to view can't be displayed.

2017-06-06 15:10:54 GMT <douglascrp> It may have been deleted or you don't have permission to view it right now.

2017-06-06 15:12:18 GMT <fwu> ppl, a very dumb question, but how can I change the logo in the header of Alfresco. I changed in the theme folder, restart Alfresco; clean the browser cache and deleted catalina cache.

2017-06-06 15:12:30 GMT <fwu> Nevertheless the logo doesnt change :P

2017-06-06 15:12:58 GMT <douglascrp> fwu, odd. that should work

2017-06-06 15:13:47 GMT <fwu> I can change it in the admin page, but then the logo gets too small. I remember that once I change it in the filesystem.

2017-06-06 15:14:12 GMT <douglascrp> fwu, there are some css restrictions in the file size

2017-06-06 15:14:23 GMT <douglascrp> you have to send it respecting that size, or it will resize is

2017-06-06 15:14:26 GMT <douglascrp> *it

2017-06-06 15:14:36 GMT <douglascrp> so, ajust the image's size before

2017-06-06 15:14:44 GMT <douglascrp> 48 px if I'm not wrong

2017-06-06 15:14:58 GMT <fwu> but if I copy the one I have now and then add it using the admin page, the same logo looks very bad!

2017-06-06 15:15:21 GMT <fwu> so, using the admin page there is a resize indeed

2017-06-06 15:15:33 GMT <fwu> but if I not use it, there is no resize

2017-06-06 15:17:41 GMT <fwu> very strange

2017-06-06 15:22:44 GMT <fcorti> douglascrp strange I created it and setup as public...

2017-06-06 15:24:07 GMT <fcorti> AxelFaust checking...

2017-06-06 15:50:00 GMT <fcorti> douglascrp, AxelFaust I moved the ticket to ALF: https://issues.alfresco.com/jira/browse/ALF-21906

2017-06-06 15:50:05 GMT <fcorti> TEll me if you can see it

2017-06-06 15:50:25 GMT <AxelFaust> yep

2017-06-06 15:50:33 GMT <fcorti> good

2017-06-06 16:21:14 GMT <douglascrp> ~later tell fcorti now it is working

2017-06-06 16:21:14 GMT <alfbot> douglascrp: The operation succeeded.

End of Daily Log

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