Alfresco discussion and collaboration. Stick around a few hours after asking a question.
Official support for Enterprise subscribers: support.alfresco.com.
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.
More help is available in this list of resources.
2017-03-01 08:22:34 GMT <_daniele_> ><AxelFaust> _daniele_: Behaviours bound on EVERY_EVENT are always called before rules. Hi Axel, goodmorning all. Thank you for your help. There is officiality or evidence with respect to what you say? I'm able to reproduce cases where the order versionpolicybehavior, rule does not take place. It is a bug or the order is not guaranteed?
2017-03-01 09:05:37 GMT <yreg> _daniele_, I assume if the behavior and the rule are triggering on different events, then the order of occurrence of these events would be a factor here
2017-03-01 09:06:08 GMT <yreg> in other words, make sure that your behaviour and your rule are triggering for the exact same event
2017-03-01 09:08:17 GMT <_daniele_> Hi yreg. thank you. I don't think it the same event. I can suppose the rule is bindend on the onUpdateNode event, my behavior is bounded on the afterCreateVersion of the version policy.
2017-03-01 09:13:16 GMT <_daniele_> the goal I would like to reach is to restrict the events on an update rule. My folder rule must be triggered only when a new version is created on a node. The idea was to mark the node with aspects on the afterCreateVersion policy behavior. but the rule must be triggered after.
2017-03-01 09:21:33 GMT <_daniele_> just to introduce myself, this is my linkedin profile: https://www.linkedin.com/in/daniele-richetti-0b6a69131/ Nice to meet you, alfresco expert!
2017-03-01 09:27:30 GMT <pjlucidi> Hi, does anyone know something about how to install the Connexas license in Alfresco?
2017-03-01 09:32:41 GMT <AFaust> ~flushLog
2017-03-01 09:32:41 GMT <alfbot> AFaust: Woooosh, your log has been flushed...
2017-03-01 09:33:58 GMT <AFaust> _daniele_: I was already underway to the train station this morning, so did not see your question before looking in the logs just now
2017-03-01 09:34:46 GMT <AFaust> There is no "officiality" to my information regarding behaviour / rules ordering - I am not an employee of Alfresco so cannot make any "official" documentation / statement.
2017-03-01 09:35:18 GMT <AFaust> But everything I have said is based on the Alfresco source code, which you are free to look at and understand yourself for evidence...
2017-03-01 09:37:16 GMT <AFaust> And yreg is right that the rules and version policy behaviour react on different events. Rules react only to change events and versioning in itself is not a change event. BUT, versioning will cause the version label to be updated on the node, which is a change event and as a result in turn triggers rules.
2017-03-01 09:37:45 GMT <AFaust> These are essentially multiple / different events that are triggered in a causality chain
2017-03-01 09:39:24 GMT <AFaust> There is no way (in default Alfresco) to restrict a rule from only firing on a specific event. The three types of triggers (new item created or moved into folder; item updated; item deleted or moved out of folder) are each a group of low-level behaviour triggers.
2017-03-01 09:40:06 GMT <AFaust> Having fine-grained control is what a policy is all about while rules are for coarse-grained, simple use by end-users
2017-03-01 09:40:58 GMT <AFaust> Technically speaking you could probably create a custom rule trigger yourself for a new, special rule event. But that is something I believe no one has done so far and I have not even investigated what it would take to do...
2017-03-01 09:42:12 GMT <_daniele_> thank you Axel, and don't worry for the response. I know you are not an employee of Alfresco :)
2017-03-01 09:44:03 GMT <_daniele_> my idea was easier. I just want to restrict the rule using the restrictinc criteria "has aspect". the aspect is apply by the behavior which must run before.
2017-03-01 09:44:04 GMT <IanW1> _daniele_: You might want to look at using a behaviour instead of a rule
2017-03-01 09:45:12 GMT <AFaust> _daniele_: Yes, the conditions would be only way to restrict if the rule is actually executed (it has already been triggered at that point). The main limitation is that you can only check for the current state, not a state change...
2017-03-01 09:45:22 GMT <_daniele_> yes IanW1. i want to bring the feature to the end user. the idea was to combine behavior and rule
2017-03-01 09:47:21 GMT <_daniele_> I have already implemented, but doing the tests I have noticied that in some conditions rule can be triggered before aftercreateversion behavior.
2017-03-01 09:49:07 GMT <_daniele_> so I can try to work in the onUpdateNode event, but I have to test the version label before and after
2017-03-01 09:56:31 GMT <_daniele_> if I can't check the state change there is a way to intercept the creation of the new version in the NodeServicePolicies ?
2017-03-01 09:57:26 GMT <angelborroy> _daniele_ check http://ecmarchitect.com/alfresco-developer-series-tutorials/behaviors/tutorial/tutorial.html
2017-03-01 09:57:27 GMT <alfbot> Title: Implementing Custom Behaviors in Alfresco | ECM Architect | Alfresco Developer Tutorials (at ecmarchitect.com)
2017-03-01 09:57:37 GMT <angelborroy> _daniele_ you’ll find everything you need there
2017-03-01 10:02:26 GMT <_daniele_> Thank you. : )) I will return to read the Jeff Potts guide to see if it gives me something useful entry point. Thank you all for the ideas.
2017-03-01 10:22:03 GMT <DarkStar1> Morning all
2017-03-01 10:22:47 GMT <bhagyas> DarkStar1: Good morning :)
2017-03-01 10:42:12 GMT <fwu> hello all!
2017-03-01 10:42:46 GMT <fwu> angelborroy, im trying aos in 5.2. Can you point me to a tutorial to work with word?
2017-03-01 10:43:00 GMT <angelborroy> “tutorial”???
2017-03-01 10:44:56 GMT <fwu> something where I can read how to config it
2017-03-01 10:45:20 GMT <fwu> Does AOS works with word 2013?
2017-03-01 10:45:36 GMT <fwu> I realize I only have 2013 in this machine...
2017-03-01 10:45:45 GMT <angelborroy> http://docs.alfresco.com/aos/concepts/aos-intro.html
2017-03-01 10:45:46 GMT <alfbot> Title: Alfresco Office Services 1.1.5 | Alfresco Documentation (at docs.alfresco.com)
2017-03-01 10:46:02 GMT <angelborroy> It looks like it works
2017-03-01 10:46:02 GMT <fwu> nice, let me read that. thank you! :)
2017-03-01 10:46:03 GMT <angelborroy> http://docs.alfresco.com/aos/concepts/aos-prereqs.html
2017-03-01 10:46:04 GMT <alfbot> Title: Prerequisites for using Alfresco Office Services | Alfresco Documentation (at docs.alfresco.com)
2017-03-01 10:47:56 GMT <fwu> what is a "boxed version" of office?
2017-03-01 10:49:44 GMT <angelborroy> good point
2017-03-01 10:49:47 GMT <angelborroy> I don’t know
2017-03-01 10:50:23 GMT <fwu> ok, nevermind.
2017-03-01 10:50:30 GMT <fwu> it also says: "tant: You must activate SSL when using Alfresco Office Services 1.1.3."
2017-03-01 10:50:54 GMT <fwu> im using 1.1.5 if im not worng, so I believe this isnt for me
2017-03-01 10:51:29 GMT <angelborroy> yes, it is for you
2017-03-01 10:51:35 GMT <angelborroy> it should say 1.1.3 or later
2017-03-01 10:52:21 GMT <fwu> but then I need to enable ssl?
2017-03-01 10:52:29 GMT <angelborroy> right
2017-03-01 10:52:40 GMT <fwu> argh
2017-03-01 10:52:52 GMT <fwu> but doesnt ssl create problems with sso?
2017-03-01 10:53:00 GMT <angelborroy> no, afaik
2017-03-01 10:55:16 GMT <yreg> fwu, AFAIK even with SSO you still need to login again everytime you edit a file online with MS Office
2017-03-01 10:56:20 GMT <yreg> and even with SSL enabled, you can use alfresco without SSL and rewrite AOS url to the SSL variant
2017-03-01 10:56:44 GMT <angelborroy> yreg I’m using AOS, SSL and no credentials required for Edit in Microsoft Office
2017-03-01 10:57:06 GMT <angelborroy> Alfresco 201702
2017-03-01 10:58:35 GMT <angelborroy> yreg It was working also for Alfresco 201605
2017-03-01 10:59:02 GMT <angelborroy> I’m using an internal certificate, so every client has to trust on that issuer
2017-03-01 10:59:09 GMT <angelborroy> No more configuration is required
2017-03-01 10:59:44 GMT <yreg> angelborroy, interesting, which version of AOS are you using
2017-03-01 10:59:59 GMT <yreg> I am using the defaults from 22.214.171.124
2017-03-01 11:00:43 GMT <yreg> and have a certificate issued by a trusted CA (on the reverse proxy side)
2017-03-01 11:01:22 GMT <yreg> and users still need to authenticate whenever MS Office program is called by the edit online action !
2017-03-01 11:01:36 GMT <yreg> We are using Kerberos SSO
2017-03-01 11:01:38 GMT <angelborroy> It works from AOS 1.1.3
2017-03-01 11:02:38 GMT <angelborroy> yreg but I think we have a patch for that SSO “dictatorial” authentication problem
2017-03-01 11:03:04 GMT <yreg> Aha ! is that something you can share ?
2017-03-01 11:03:31 GMT <yreg> or provide some hints around ?
2017-03-01 11:03:46 GMT <angelborroy> I’m searching…
2017-03-01 11:04:12 GMT <angelborroy> This one: https://issues.alfresco.com/jira/browse/ALF-21757
2017-03-01 11:04:51 GMT <angelborroy> From this point Alfresco engineers decided that if you are using SPNEGO for Share, then you MUST use that auth for every other protocol
2017-03-01 11:04:55 GMT <fwu> that was the problem i was pointing!
2017-03-01 11:04:56 GMT <fwu> nice
2017-03-01 11:05:23 GMT <angelborroy> in the end I just left and let him to win that battle
2017-03-01 11:08:06 GMT <fwu> so you just chnaged this: <url-pattern>/api/*</url-pattern>
2017-03-01 11:09:20 GMT <angelborroy> No, I don’t think so
2017-03-01 11:11:03 GMT <angelborroy> fwu yes
2017-03-01 11:11:20 GMT <angelborroy> I’ve comment filter-mapping for /api/* and /cmistaom/*
2017-03-01 11:11:24 GMT <angelborroy> at web.xml
2017-03-01 11:11:54 GMT <angelborroy> I’m going to upload this patch to GitHub
2017-03-01 11:12:11 GMT <angelborroy> as Alfresco is still considering that this is a “Won’t fix"
2017-03-01 11:14:36 GMT <fwu> without ssl, when clicking for inline editing the word file, word opens but without the document. Is this expected?
2017-03-01 11:14:53 GMT <angelborroy> yes
2017-03-01 11:15:28 GMT <angelborroy> maybe playing with your HREG entries to set Office auth as basic, will work
2017-03-01 11:16:22 GMT <fwu> ok. in that case I will not need to use ssl to trest it, right?
2017-03-01 11:16:26 GMT <fwu> test
2017-03-01 11:16:55 GMT <angelborroy> yes, try
2017-03-01 11:17:07 GMT <angelborroy> but I don’t know if it works
2017-03-01 11:21:01 GMT <fwu> angelborroy, but if one configures SSL due to word integration, that means all comunication with alfresco will be based on ssl?
2017-03-01 11:21:15 GMT <fwu> or only the word connection will be ssl?
2017-03-01 11:21:37 GMT <angelborroy> depends on your config
2017-03-01 11:21:43 GMT <angelborroy> by using Apache or Tomcat?
2017-03-01 11:21:51 GMT <angelborroy> or NGINX?
2017-03-01 11:22:04 GMT <angelborroy> https://github.com/keensoft/alf-21757-repo
2017-03-01 11:22:05 GMT <alfbot> Title: GitHub - keensoft/alf-21757-repo: Patch to ALF-21757 and ALF-21521 (at github.com)
2017-03-01 11:23:15 GMT <fwu> tomcat
2017-03-01 11:23:56 GMT <angelborroy> then I think is better to use SSL for all three webapps
2017-03-01 11:27:25 GMT <fwu> so the dafault Alfresco install configures an ssl connection betwwen solr and the repository, right?
2017-03-01 11:27:33 GMT <angelborroy> right
2017-03-01 11:27:36 GMT <fwu> That is why we need to set ssl to comunicate with word
2017-03-01 11:28:45 GMT <fwu> as far as I understood, this was a consequence of the first
2017-03-01 11:29:32 GMT <fwu> so, i could turn-off SSL and deactivate authentication between Alfresco repository and the Solr server...
2017-03-01 11:29:43 GMT <fwu> i will not do it, but im only trying to understand
2017-03-01 11:30:14 GMT <angelborroy> I don’t follow you
2017-03-01 11:30:52 GMT <angelborroy> but maybe should be easier to include NGINX or Apache in front of Tomcat
2017-03-01 11:33:40 GMT <fwu> angelborroy, im just trying to understand why I need to enable ssl for word communication with alfresco. afaik it seems it is due to the ssl connection between solr and alfresco.
2017-03-01 11:37:00 GMT <angelborroy> fwu just because SPP requires an SSL to trust on the connection
2017-03-01 11:37:08 GMT <angelborroy> fwu it’s not related with any other reason
2017-03-01 11:38:09 GMT <fwu> ok, i will try configuring ssl for a non production environment
2017-03-01 11:38:39 GMT <fwu> without a proxy in this case
2017-03-01 11:39:33 GMT <angelborroy> without a proxy?
2017-03-01 11:39:45 GMT <angelborroy> fwu it should be hard, as by default SSL is enable with "client-auth"
2017-03-01 11:39:58 GMT <angelborroy> and “client-auth” requires an electronic certificate
2017-03-01 11:39:59 GMT <qwebirc95623> Morning folks! I'm struggling with the Activiti REST API. All I wanna know is the current state of a task. But I'm blind... i don't see the information. Was expecting to get it with "https://localhost:8443/activiti-app/api/enterprise/tasks/2512" ?? Any idea?
2017-03-01 11:41:28 GMT <fwu> im looking into this: http://docs.alfresco.com/5.1/tasks/configure-ssl-test.html
2017-03-01 11:41:30 GMT <alfbot> Title: Configuring SSL for a test environment | Alfresco Documentation (at docs.alfresco.com)
2017-03-01 11:49:35 GMT <fwu> in a windows machine with a default alfresco installation, what I set here?
2017-03-01 11:49:39 GMT <fwu> keystoreFile="/path/to/ssl.keystore"
2017-03-01 11:49:47 GMT <fwu> and the the user and the password?
2017-03-01 11:49:57 GMT <fwu> is a default user and pwd for the keystore?
2017-03-01 12:07:42 GMT <mbui> Hi, anyone know if lucene supports case insensitive search queries?
2017-03-01 12:31:08 GMT <AFaust> mbui: by default, text queries are always case insensitive in Lucene and SOLR
2017-03-01 12:36:50 GMT <yreg> angelborroy, if you are talking about this: https://issues.alfresco.com/jira/secure/attachment/77030/mntdiff.txt
2017-03-01 12:36:52 GMT <alfbot> Title: <@region id="head-title" scope="global" chromeless="true"/><@region id="head-title" scope="global" chromeless="true"/> (at issues.alfresco.com)
2017-03-01 12:37:06 GMT <yreg> it is already present on this client system from before the upgrade
2017-03-01 12:37:14 GMT <yreg> (and still there)
2017-03-01 12:39:22 GMT <fwu> hmmm... while trying to edit word inline the url that is beig opened is https://localhost but without the port
2017-03-01 12:39:28 GMT <fwu> but I set the port
2017-03-01 12:39:34 GMT <fwu> so what may I be missing?
2017-03-01 12:41:24 GMT <angelborroy> yreg I don’t know what is that you linked me
2017-03-01 12:41:44 GMT <AFaust> qq: Did anyone ever do a customisation where a Share form would be "refreshed" (technically reloaded) at runtime via the onFormRefresh() event handler in form.js?
2017-03-01 12:41:53 GMT <angelborroy> yreg looks a share patch
2017-03-01 12:42:00 GMT <angelborroy> yreg I was referring a repo one
2017-03-01 12:43:08 GMT <yreg> angelborroy, found it in one of the linked issues
2017-03-01 12:43:15 GMT <yreg> let me check other linked issues
2017-03-01 12:43:34 GMT <yreg> AFaust, I have seen a fork of alfresco with that feature
2017-03-01 12:44:15 GMT <yreg> actually I think the BeCPG module for modeling types and aspects online in alfresco did have this as well
2017-03-01 12:44:52 GMT <AFaust> Someone at my current customer created a task with that requirement (alongside the infamous "auto-save" feature where the form would be submitted automatically)
2017-03-01 12:45:33 GMT <AFaust> i.e. form submits itself, gets reloaded and replaced within the page
2017-03-01 12:46:02 GMT <AFaust> I find the task / requirement all very dubious
2017-03-01 12:46:19 GMT <yreg> AFaust, I was wrong the first time, I thought you asked something different
2017-03-01 12:46:23 GMT <AFaust> the auto-save can change so much that might affect the form (presence of fields / aspects etc.)
2017-03-01 12:46:50 GMT <AFaust> My first question was just about the "refresh the form" part
2017-03-01 12:46:58 GMT <AFaust> without the other stuff
2017-03-01 12:47:08 GMT <yreg> but I have done something similar once, for a special form config, a datagrid
2017-03-01 12:47:32 GMT <yreg> that autosubmits every change to a temporary file in alfresco
2017-03-01 12:48:22 GMT <yreg> ** a special form-control
2017-03-01 12:48:48 GMT <yreg> so not the whole form is saved, only a serialized version of the datagrid content
2017-03-01 12:48:50 GMT <AFaust> Yeah - auto-submit to a temporary file would be fine, but on explicit question to verify / check this assumption / suggestion I was told "no, it should do the regular save, so the data does not get lost"
2017-03-01 12:49:29 GMT <yreg> AFaust, I suppose they meant the save for a regular task-form
2017-03-01 12:51:00 GMT <AFaust> in my case it is about the regular edit-metadata form
2017-03-01 12:51:17 GMT <AFaust> but yes, save the regular form as a whole
2017-03-01 13:21:50 GMT <DarkStar1> So I have this piece of webscript: https://paste.fedoraproject.org/paste/jJZzz1NSuSld-Y-ybuH~IV5M1UNdIGYhyRLivL9gydE=
2017-03-01 13:21:51 GMT <alfbot> Title: Untitled - Modern Paste (at paste.fedoraproject.org)
2017-03-01 13:23:14 GMT <DarkStar1> wherein the problem being that after the content of a document has been updated, the metadata regarding the modifier of the document is wrong and ends up being a random user from the pool of logged in users
2017-03-01 13:23:16 GMT <alex88bb> Hi guys. I have one question: I am using DND upload for updating my document. However, besides overwriting the content, I want to overwrite the name with the name of uploading file. Is there any way I can achieve this?
2017-03-01 13:23:19 GMT <alex88bb> Thanks
2017-03-01 13:24:24 GMT <DarkStar1> alex88bb: Have you tried: https://community.alfresco.com/thread/171099-upload-file-with-custom-metadata
2017-03-01 13:24:25 GMT <DarkStar1> ??
2017-03-01 13:24:26 GMT <alfbot> Title: Upload file with custom metadata | Alfresco Community (at community.alfresco.com)
2017-03-01 13:25:57 GMT <alex88bb> @DarkStar1 @alfbot: I haven't tried, but I will take a look. Thanks guys! I will let you know if I achieved what I wanted
2017-03-01 13:26:04 GMT <DarkStar1> alex88bb: Or you can look at the code for this addon: https://addons.alfresco.com/addons/edit-meta-data-during-upload
2017-03-01 13:26:06 GMT <alfbot> Title: Edit Meta-Data during upload | Alfresco Add-ons - Alfresco Customizations (at addons.alfresco.com)
2017-03-01 13:26:57 GMT <DarkStar1> Hhmm link to source is broken. Let me find it for you
2017-03-01 13:27:33 GMT <DarkStar1> alex88bb: scrap the last two I found something more up to date: https://angelborroy.wordpress.com/2013/08/14/alfresco-%C2%B7-edit-meta-data-during-upload-really/
2017-03-01 13:27:34 GMT <alfbot> Title: ALFRESCO · Edit Meta-Data during upload (really) | Programming and So (at angelborroy.wordpress.com)
2017-03-01 13:28:05 GMT <DarkStar1> you can thank angelborroy for that if he's online later
2017-03-01 13:28:09 GMT <DarkStar1> :)
2017-03-01 13:28:33 GMT <alex88bb> @DarkStar1: Sure :) Thank you so much! I will take a look! :)
2017-03-01 13:28:55 GMT <DarkStar1> yw
2017-03-01 13:46:32 GMT <alex88bb> @DarkStar1: This is actually not going to work. I am updating the file. Not uploading new. DNDUpload calls api/upload REST and when the file is updated that REST call returns filename and nodeRef of updated file.
2017-03-01 13:47:12 GMT <alex88bb> @DarkStar1: I was wondering if I could "catch" somehow the name of file in onFileUploadComplete function
2017-03-01 13:47:14 GMT <angelborroy> alex88bb you should use a behaviour
2017-03-01 13:47:29 GMT <alex88bb> @DarkStar1: and then call api/metadata POST call
2017-03-01 13:47:43 GMT <angelborroy> alex88bb https://github.com/keensoft/alfresco-summit-2014/tree/master/10-enhancements/08-rename-on-change-ext
2017-03-01 13:47:44 GMT <alfbot> Title: alfresco-summit-2014/10-enhancements/08-rename-on-change-ext at master · keensoft/alfresco-summit-2014 · GitHub (at github.com)
2017-03-01 13:48:18 GMT <angelborroy> this changes the name when Mimetype changes
2017-03-01 13:50:45 GMT <alex88bb> @angelborroy: Yes, I was thinking about this behavior but I need to "catch" the name of the file which was uploaded
2017-03-01 13:51:00 GMT <alex88bb> @angelborroy: That is the tricky part
2017-03-01 13:51:35 GMT <alex88bb> @angelborroy: I will take a look at this first, and then I will make further comments :)
2017-03-01 13:51:45 GMT <angelborroy> https://github.com/softwareloop/uploader-plus
2017-03-01 13:51:46 GMT <alfbot> Title: GitHub - softwareloop/uploader-plus: An Alfresco uploader that prompts for metadata (at github.com)
2017-03-01 13:52:11 GMT <angelborroy> https://github.com/softwareloop/uploader-plus/blob/master/surf/src/main/amp/web/components/uploader-plus/js/dnd-upload-plus.js
2017-03-01 13:52:12 GMT <alfbot> Title: uploader-plus/dnd-upload-plus.js at master · softwareloop/uploader-plus · GitHub (at github.com)
2017-03-01 13:52:30 GMT <angelborroy> This project is extending default Alfresco DND component
2017-03-01 13:53:39 GMT <angelborroy> I guess original filename is available at https://github.com/softwareloop/uploader-plus/blob/master/surf/src/main/amp/web/components/uploader-plus/js/dnd-upload-plus.js#L158
2017-03-01 13:53:40 GMT <alfbot> Title: uploader-plus/dnd-upload-plus.js at master · softwareloop/uploader-plus · GitHub (at github.com)
2017-03-01 13:54:11 GMT <yreg> AFaust, I believe it is easily achievable: all you need to do is to submit form content to the save endpoint on any field change
2017-03-01 13:54:25 GMT <angelborroy> alex88bb so you are trying to change node name if uploaded file has a different name, right?
2017-03-01 13:55:06 GMT <yreg> fcorti, QQ: does AAAR extract all workflows on each and every workflow extraction, or does it do a differential extraction ?
2017-03-01 13:55:09 GMT <alex88bb> @angelborroy: Yes, exactly.
2017-03-01 13:55:24 GMT <yreg> I am getting the feeling that workflow extraction is taking too much time
2017-03-01 13:55:57 GMT <angelborroy> alex88bb I guess the right point to implement this feature is repo webscript
2017-03-01 13:56:32 GMT <alex88bb> @angelborroy: yes, but I cannot use it from DNDUpload
2017-03-01 13:56:44 GMT <alex88bb> @angelborroy: it uses api/upload
2017-03-01 13:56:49 GMT <angelborroy> right
2017-03-01 13:56:59 GMT <angelborroy> I was thinking on overriding “api/upload"
2017-03-01 13:57:19 GMT <angelborroy> original uploading name is sent to “api/upload” web script, right?
2017-03-01 13:57:35 GMT <alex88bb> @angelborroy: I think so. I will check it quickly
2017-03-01 13:58:16 GMT <alex88bb> @angelborroy: POST /alfresco/s/api/upload
2017-03-01 13:58:16 GMT <angelborroy> alex88bb org/alfresco/repository/upload/upload.post.js
2017-03-01 13:58:39 GMT <fcorti> yreg: AAAR extracts the completed workflows since the last extraction and the open workflows. For the open workflows it extracts all the tasks and items (and this is a potential bottleneck).
2017-03-01 13:58:55 GMT <alex88bb> @angelborroy: And how do I override the Alfresco default webscript?
2017-03-01 13:59:07 GMT <angelborroy> you can only overwrite it
2017-03-01 13:59:13 GMT <angelborroy> webscripts cannot be overriden
2017-03-01 13:59:25 GMT <AFaust> yreg: Not so fast... You have to consider various side effects, e.g. once you submit a form with an association field, you'd need to update the "_added" and "_removed" fields so the state is consistent...
2017-03-01 14:00:00 GMT <angelborroy> alex88bb this is a sample for ovewritting Alfresco repo webscript
2017-03-01 14:00:00 GMT <angelborroy> https://github.com/keensoft/alfresco-summit-2014/tree/master/10-enhancements/02-custom-site-props/custom-site-props-repo
2017-03-01 14:00:01 GMT <alfbot> Title: alfresco-summit-2014/10-enhancements/02-custom-site-props/custom-site-props-repo at master · keensoft/alfresco-summit-2014 · GitHub (at github.com)
2017-03-01 14:00:11 GMT <angelborroy> https://github.com/keensoft/alfresco-summit-2014/blob/master/10-enhancements/02-custom-site-props/custom-site-props-repo/src/main/amp/config/alfresco/extension/templates/webscripts/org/alfresco/repository/site/site.put.json.js
2017-03-01 14:00:12 GMT <alfbot> Title: alfresco-summit-2014/site.put.json.js at master · keensoft/alfresco-summit-2014 · GitHub (at github.com)
2017-03-01 14:00:52 GMT <angelborroy> Just copy the file you are overwriting (upload.post.js in your case) using the same alfresco folder path
2017-03-01 14:01:47 GMT <yreg> AFaust, good catch! same for multivalued props
2017-03-01 14:01:57 GMT <AFaust> yreg: Also, what do you do with any data that may be derived via behaviours? You should probably show that in the form so the user does not accidentally override it or think "oh, there is nothing set there anyway"...
2017-03-01 14:02:33 GMT <angelborroy> alex88bb this is the point where Alfresco is making tricks with filename: https://github.com/Alfresco/community-edition-old/blob/master/projects/remote-api/config/alfresco/templates/webscripts/org/alfresco/repository/upload/upload.post.js#L267
2017-03-01 14:02:34 GMT <alfbot> Title: community-edition-old/upload.post.js at master · Alfresco/community-edition-old · GitHub (at github.com)
2017-03-01 14:02:56 GMT <yreg> AFaust, I do not foow any more
2017-03-01 14:05:10 GMT <AFaust> "foow" => "follow"?
2017-03-01 14:06:01 GMT <AFaust> Consider this: You submit the form to the save endpoint as your "auto-save" feature, and any number of policies / rules can run that do something with the data and set some other properties on the node.
2017-03-01 14:06:46 GMT <AFaust> E.g. property A was not set when the user started to edit, but due to auto-save it is now set in the background. The user should now that A is set - perhaps they do not want it to be set - so that they can properly react to it.
2017-03-01 14:06:59 GMT <AFaust> "user should now" => "user should know"
2017-03-01 14:07:50 GMT <AFaust> And if new properties/aspects are added via policies / rules, you'd have to show additional fields in the UI - or remvoe them if they are no longer relevant
2017-03-01 14:08:19 GMT <AFaust> Quite an annoying pain...
2017-03-01 14:09:17 GMT <yreg> AFaust, Sorry, thought you were referring to task-forms inside workflows
2017-03-01 14:10:00 GMT <alex88bb> @angelborroy: Thanks a lot! I will take a look! And will update you what I did. But you have to admit that this is tricky :)
2017-03-01 14:10:21 GMT <AFaust> yreg: You missed my reminder that this was about "edit-metadata"
2017-03-01 14:11:19 GMT <angelborroy> alex88bb is a nice feature, let me know if it works
2017-03-01 14:11:33 GMT <angelborroy> alex88bb maybe you want to share your addon with the Community ;-)
2017-03-01 14:12:03 GMT <AFaust> I think I am going to go with a "working copy"-like approach. "auto-save" submits to the regular save endpoint but stores into a secondary node, so that at least all the node-level validation is run and "auto-save" fails early for issues. Based on some timeout, that "auto-save" state is copied to the original node when the form has not been actively saved or cancelled
2017-03-01 14:16:05 GMT <alex88bb> @angelborroy: Sure :)
2017-03-01 14:34:59 GMT <alex88bb> @angelborroy: Actually, I found the better solution than overriding/overwriting the upload.post.js
2017-03-01 14:35:43 GMT <alex88bb> @angelborroy: DNDUpload offers a property: uploadURL so it points to the custom webscript
2017-03-01 14:36:02 GMT <alex88bb> @angelborroy: if it is null, then it uses default api/upload
2017-03-01 14:39:08 GMT <angelborroy> so you are going to copy repo web script and include your changes there?
2017-03-01 14:40:14 GMT <angelborroy> alex88bb if you overwrite repo webscript every uploading (including external apps) will include your naming conventions
2017-03-01 14:40:40 GMT <angelborroy> alex88bb if you just tweak DnD naming conventions will be only applied to users dragging documents by using share web app
2017-03-01 14:41:01 GMT <angelborroy> alex88bb uploading documents by using the button “Upload” will not follow your conventions
2017-03-01 14:41:31 GMT <angelborroy> alex88bb is this right for you?
2017-03-01 14:41:57 GMT <alex88bb> @angelborroy: I am using DND Update only at one place. And that would do the job for me :)
2017-03-01 14:42:13 GMT <alex88bb> @angelborroy: I don't need it every time
2017-03-01 14:42:20 GMT <bhagyas> fcorti_: What are the top 5 reasons someone should use ADF?
2017-03-01 14:42:45 GMT <angelborroy> alex88bb I cannot follow you
2017-03-01 14:43:09 GMT <angelborroy> alex88bb But you have to note that there are three different components to upload files to Alfresco from Share web app
2017-03-01 14:43:36 GMT <angelborroy> https://github.com/softwareloop/uploader-plus/tree/master/surf/src/main/amp/web/components/uploader-plus/js
2017-03-01 14:43:37 GMT <alfbot> Title: uploader-plus/surf/src/main/amp/web/components/uploader-plus/js at master · softwareloop/uploader-plus · GitHub (at github.com)
2017-03-01 14:43:46 GMT <angelborroy> dnd + flash + html
2017-03-01 14:44:20 GMT <bhagyas> angelborroy: cmis ;p
2017-03-01 14:44:29 GMT <bhagyas> + webdav, etc etc
2017-03-01 14:44:32 GMT <angelborroy> bhagyas you are late
2017-03-01 14:44:37 GMT <bhagyas> ouch
2017-03-01 14:44:38 GMT <bhagyas> :D
2017-03-01 14:44:41 GMT <angelborroy> bhagyas that was discussed before :D
2017-03-01 14:44:46 GMT <bhagyas> :D
2017-03-01 14:45:07 GMT <alex88bb> @angelborroy: I am aware of that :) I just need to use DND and this is the part of configuration. So no overriding anything.
2017-03-01 14:45:18 GMT <angelborroy> then, go ahead!
2017-03-01 14:45:54 GMT <fwu> I set ssl for a test environment. I now login in Alfresco using https. I can open the word for inline editing, but when saving I get an error saying something as failed... any clue about this?
2017-03-01 14:46:22 GMT <fwu> error saving to the server
2017-03-01 14:46:31 GMT <fwu> is there any logs about this somewhere?
2017-03-01 14:46:43 GMT <fwu> sharepoint connection
2017-03-01 14:46:51 GMT <bhagyas> fwu: What is 'something'
2017-03-01 14:47:03 GMT <bhagyas> sounds like an AOS issue
2017-03-01 14:47:07 GMT <fwu> yes
2017-03-01 14:47:08 GMT <fwu> sorry
2017-03-01 14:47:17 GMT <bhagyas> do you have a stacktrace/error message?
2017-03-01 14:47:27 GMT <fwu> aos in 5.2 with word 2013
2017-03-01 14:47:41 GMT <fwu> no. this is the error I get in word
2017-03-01 14:48:23 GMT <angelborroy> fwu have you added your CA from SSL certificate as a trusted entity?
2017-03-01 14:48:31 GMT <fwu> it is saying that the changes were saved but not uploaded to the server. maybe due to a temporary failure...lol
2017-03-01 14:48:34 GMT <angelborroy> At least in Mac OS, it is required
2017-03-01 14:48:58 GMT <fwu> angelborroy, im using the test config
2017-03-01 14:49:11 GMT *** david is now known as Guest79413
2017-03-01 14:49:13 GMT <angelborroy> I don’t know what is the “test” config
2017-03-01 14:49:16 GMT <fwu> im pointing to the default ssl.keystore
2017-03-01 14:49:39 GMT <angelborroy> so you need to add the certificate in your Windows machine as trusted CA
2017-03-01 14:49:47 GMT <fwu> first ssl was not working because i was using a wrong password, but now I can enter alfresco using ssl
2017-03-01 14:50:01 GMT <yreg> AFaust, AFaust that way there will be still some sync problems between the working copy and the actual node
2017-03-01 14:50:14 GMT <fwu> angelborroy: http://docs.alfresco.com/5.1/tasks/configure-ssl-test.html
2017-03-01 14:50:16 GMT <alfbot> Title: Configuring SSL for a test environment | Alfresco Documentation (at docs.alfresco.com)
2017-03-01 14:50:42 GMT <fcorti_> bhagyas I'm pretty sure you can help me... I'm going to tell the first
2017-03-01 14:50:49 GMT <fcorti_> It's open source
2017-03-01 14:50:55 GMT <fcorti_> Now it's your turn
2017-03-01 14:50:58 GMT <fwu> I get a message abut the certificate not being valid but i choose continue. I can open and edit word, but not save it
2017-03-01 14:51:24 GMT <bhagyas> fcorti_: I think its a waste of time and a distraction from Alfresco's real issues in scaling - your turn
2017-03-01 14:52:14 GMT <angelborroy> fwu https://technet.microsoft.com/en-us/library/cc754841(v=ws.11).aspx
2017-03-01 14:52:20 GMT <fcorti_> Not fair: it is not a reason to use. Please try again.
2017-03-01 14:52:27 GMT <bhagyas> haha
2017-03-01 14:52:28 GMT <bhagyas> :D
2017-03-01 14:52:42 GMT <bhagyas> Angular is interesting, but again I've moved to React :/
2017-03-01 14:53:21 GMT <angelborroy> bhaygas you can use these ones http://www.crawfordtech.com/blog/5-reasons-you-should-implement-an-adf-and-why-it-has-taken-until-now-to-be-able-to-afford-it
2017-03-01 14:53:23 GMT <alfbot> Title: 5 reasons you should implement an ADF, and why it has taken until now to be able to afford it. | Blog (at www.crawfordtech.com)
2017-03-01 14:53:34 GMT <angelborroy> bhagyas are for “other” ADF, but they can fit the same
2017-03-01 14:53:40 GMT <bhagyas> angelborroy: xD
2017-03-01 14:54:44 GMT <fcorti_> Interesting read... :-)
2017-03-01 14:56:38 GMT <bhagyas> fcorti_: Is there any news on new stuff coming to Alfresco backend?
2017-03-01 14:56:54 GMT <bhagyas> All we see is news for the Aikau/Angular or something related to user facing stuff
2017-03-01 14:57:13 GMT <AFaust> yreg: Not really - the working copy is primarily used for early constraint checking and potentially validation via policies. It will also store the raw request of the last "auto-save". The state of the working copy will be reset before each "auto-save", and only the raw request will be used for applying the state to the original when a keep-open timeout has expired
2017-03-01 14:57:42 GMT <fwu> angelborroy, im pointing to the default ssl.keystore, so I beleive there is a default certificate there. How can I add the CA from there?
2017-03-01 14:57:42 GMT <bhagyas> fcorti_: What is your view of GraphQL specifically?
2017-03-01 14:58:14 GMT <fcorti_> bhagyas, sorry in a call, will be back soon
2017-03-01 14:58:32 GMT <bhagyas> fcorti_: okay :)
2017-03-01 14:58:40 GMT <angelborroy> fwu you can extract the CA from the browser or open the file ssl.truststore
2017-03-01 15:07:20 GMT <fwu> angelborroy, i did that. save it to a file and then add it to the root authorities folder using mmc
2017-03-01 15:07:32 GMT <fwu> but I still get the same certificate warning
2017-03-01 15:21:57 GMT <Loftux> exit
2017-03-01 15:22:33 GMT <Loftux> to early for that..
2017-03-01 15:23:52 GMT <AFaust> ps aux | grep Loftux
2017-03-01 15:24:51 GMT <iblanco> Good afternoon everyone
2017-03-01 15:25:24 GMT <iblanco> I'm a bit desperate with Aikau. Hope someone can enligthen me.
2017-03-01 15:25:50 GMT <yreg> iblanco, shoot
2017-03-01 15:26:14 GMT <iblanco> I have an Alfresco 5.0.d where I have installed a module that load Aika 126.96.36.199 . It used to work well but since yesterday it doesn't.
2017-03-01 15:26:25 GMT <iblanco> If I have both Aikau's loaded in the module deployment
2017-03-01 15:26:36 GMT <iblanco> then the header "loses" its styling
2017-03-01 15:26:58 GMT <iblanco> for instance it has white background instead of black
2017-03-01 15:27:12 GMT <iblanco> I also get LESS compiling errors
2017-03-01 15:27:32 GMT <iblanco> it seems to me that regular Share's code is not working properly with 101.3
2017-03-01 15:28:26 GMT <iblanco> I think that if I have various versions of Aikau the most recent one is the one that is used, but
2017-03-01 15:28:28 GMT <mrks_js> iblanco: i also had a similar issue. then i removed the old aikau jar and that helped
2017-03-01 15:28:44 GMT <mrks_js> iblanco: removed from WEB-INF/lib
2017-03-01 15:29:29 GMT <iblanco> mrks_js will give it a try
2017-03-01 15:29:49 GMT <fwu> angelborroy, do you use mac? Why a mac user must run a kind of a registry database update for non ssl connections? does mac use a kind of a registry like windows?lol
2017-03-01 15:36:17 GMT <angelborroy> fwu sorry I don’t follow you
2017-03-01 15:36:32 GMT <angelborroy> fwu In mac CA trust is managed by keychain
2017-03-01 15:37:14 GMT <fwu> im talking about this: "If you are using Microsoft Office for Mac 2011 without SSL, run this command on the client machine"
2017-03-01 15:37:15 GMT <angelborroy> I think that this componente is called Certificate Manager or so in Windows
2017-03-01 15:37:37 GMT <fwu> on this page: http://docs.alfresco.com/aos1.1/tasks/aos-config-nonSSL.html
2017-03-01 15:37:39 GMT <alfbot> Title: Setting up Alfresco Office Services using a non-SSL connection | Alfresco Documentation (at docs.alfresco.com)
2017-03-01 15:37:42 GMT <angelborroy> fwu this is the equivalent as “change this registry entry" in Windows
2017-03-01 15:38:02 GMT <fwu> so, there is a kind of a registry in mac also?
2017-03-01 15:38:10 GMT <fwu> i never used mac
2017-03-01 15:38:10 GMT <angelborroy> right
2017-03-01 15:38:12 GMT <fwu> lol
2017-03-01 15:38:21 GMT <fwu> thats new to me hehehe
2017-03-01 15:38:22 GMT <angelborroy> but it’s only for Microsft apps
2017-03-01 15:38:28 GMT <fwu> looooooooooool
2017-03-01 15:38:29 GMT <fwu> worst
2017-03-01 15:38:30 GMT <angelborroy> it’s not related with Mac
2017-03-01 15:38:44 GMT <fwu> microsoft puts a registry in mac lolol
2017-03-01 15:39:02 GMT <fwu> ok, i was just wondering :)
2017-03-01 15:39:04 GMT <angelborroy> it’s the price to use a text editor :D
2017-03-01 15:39:10 GMT <fwu> hehehe
2017-03-01 15:43:55 GMT <iblanco> mrks_js: god (or whoever you prefer) bless you....
2017-03-01 15:44:26 GMT <iblanco> it worked, I was trying by disabling the module but it didn't work. Removing the jar as you suggested did the trick.
2017-03-01 15:44:47 GMT <iblanco> This seems to be some kind of picky bug in the management of versions in Aikau
2017-03-01 15:46:00 GMT <mrks_js> iblanco: cool :-)
2017-03-01 15:59:29 GMT <fwu> brb
2017-03-01 16:00:59 GMT <AFaust> iblanco, mrks_js: There can be ordering issues with the Aikau extensions (basically any extensions) depending on the persistent deployment state and/or temporary startup issues
2017-03-01 16:01:49 GMT <iblanco> Yes, i thought about that, but if I go to module deployment and reorde the modules they should respect the assigned order, isn't it?
2017-03-01 16:01:55 GMT <iblanco> At least until next reboot
2017-03-01 16:02:02 GMT <AFaust> iblanco, mrks_js: The expected order of "latest Aikau is always used" is unfortunately not guaranteed - you can even wreck your system manually by installing an older Aikau version after you have installed a newer one (separate startups required)
2017-03-01 16:02:47 GMT <AFaust> The only thing that is guaranteed is the auto-deploy order, meaning if multiple versions of Aikau are installed at the same time with no persistent deployment order for both, the latest will win.
2017-03-01 16:03:32 GMT <angelborroy> in one hour BeeCon 2017 warm up session will start at Etopia
2017-03-01 16:03:58 GMT <angelborroy> It’s a session for newbies introducing Alfresco SDK and behaviours (in Spanish)
2017-03-01 16:03:59 GMT <AFaust> iblanco: If you manually reorder, they should respect that until the next manual reorder - but there are also error cases where that manual ordering is not persistent correctly and will only work until the reboot (happens more often than would be appropriate for a "stable" system)
2017-03-01 16:04:07 GMT <iblanco> AFaust: I don't get it. So if I install 1.0.60 today and 1.0.80 tomorrow I don't have any guarantee that 1.0.80 will be used?
2017-03-01 16:04:28 GMT <angelborroy> If I can get an stable network, I’ll broadcast live the session
2017-03-01 16:04:45 GMT <AFaust> In that case you have guarantee that 1.0.80 SHOULD be used because modules installed later will always be ordered after all previously installed modules
2017-03-01 16:05:36 GMT <mrks_js> AFaust: thanks for the insight!
2017-03-01 16:06:41 GMT <iblanco> ok, so if after that i install another module with version 1.0.35 then I end up using 1.0.35
2017-03-01 16:07:25 GMT <iblanco> that's really good to know, although it doesn't seem to be my case because it was working properly until a couple of days ago
2017-03-01 16:25:21 GMT <AFaust> iblanco: As I said, another cause can be issues with the persistent deployment order. I usually have those one or two times a month when I am intensively developing within the UI
2017-03-01 16:25:57 GMT <AFaust> Even though the persistent order is correct, something during the load corrupts the order and Share then saves it back to the Repository, overriding the previously correct order
2017-03-01 16:42:14 GMT <iblanco> AFaust: And can the order be faust in a file or somewhere in the repo in order to check it manually?
2017-03-01 16:42:52 GMT <iblanco> Sorry, i menat "be found"
2017-03-01 16:45:53 GMT <AFaust> It is actually distributed across multiple files
2017-03-01 16:46:34 GMT <AFaust> You need to look into the /app:company_home/st:sites/cm:surf-config/cm:modle-deployments/ path (if I remember correctly - currently don't have a system running for copy&pasting the XPath)
2017-03-01 16:47:06 GMT <AFaust> There you'll find a XML document node for each deployed module. The XML will contain an <order> element with the index
2017-03-01 16:47:26 GMT <AFaust> Unfortunately that means you have to look at each XML and make a mental list of the module order yourself
2017-03-01 17:09:32 GMT <yreg> QQ: Does modified date and modifier change with new associations ?
2017-03-01 17:19:09 GMT <iblanco> AFaust:Thanks for the information
2017-03-01 17:31:56 GMT <fwu> hello all!
2017-03-01 17:57:01 GMT * iblanco Saying goodbye to everyone
The other logs are at http://esplins.org/hash_alfresco