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-05-16 07:02:36 GMT <yreg> Good morning
2017-05-16 07:02:48 GMT <yreg> ___Dave, I have a question for you
2017-05-16 07:02:58 GMT <___Dave> yreg: ok
2017-05-16 07:03:05 GMT <yreg> do you know if Aikau tries to forge user agent at any level ?
2017-05-16 07:03:29 GMT <___Dave> yreg: I don't think so
2017-05-16 07:03:30 GMT <yreg> I had an issue yesterday during a "Go live test"
2017-05-16 07:03:51 GMT <___Dave> actually, hold on a sec... let me just check something
2017-05-16 07:04:33 GMT <yreg> this client has custom sso implementation on the reverse proxy level... and it does treat Mozilla firefox differently
2017-05-16 07:05:10 GMT <___Dave> no... I don't think Aikau does anything with user agent (I know that I've done stuff to look at the user agent info)
2017-05-16 07:05:19 GMT <___Dave> however, it is possibly something in Surf maybe?
2017-05-16 07:06:09 GMT <yreg> so the issue I am having is when Chrome tries to fetch /share/service/1.0.67-1/defaults.js as xhr request, it adds a user agent to the header, resulting in the reverse proxy not to authenticate the request, and redirect to alfresco login page
2017-05-16 07:06:09 GMT <___Dave> but I'm not aware of anything that we do with user agent information at all
2017-05-16 07:06:39 GMT <yreg> ok, thanks
2017-05-16 07:07:06 GMT <yreg> Will track this further, and will let you know if it was confirmed to be an issue with Aikau/Dojo
2017-05-16 07:07:51 GMT <___Dave> ok
2017-05-16 07:08:16 GMT <yreg> FYI: this is an upgrade project, and we never had this with 4.2
2017-05-16 07:08:46 GMT <yreg> and the problem seems to only show on full aikau pages
2017-05-16 07:09:40 GMT <___Dave> well, I don't think defaults.js would have been present on 4.2
2017-05-16 07:09:50 GMT <___Dave> that was a relatively recent addition I believe
2017-05-16 07:09:54 GMT <___Dave> but it's just a webscript
2017-05-16 07:11:03 GMT <___Dave> defaults.js is returned by the defaults.get WebScript that is part of Aikau, and it actually requires no authentication
2017-05-16 07:11:17 GMT <___Dave> so it's strange that it would be resulting in a redirect
2017-05-16 07:11:25 GMT <___Dave> what happens if it is accessed directly?
2017-05-16 07:11:29 GMT <___Dave> on the browser URL?
2017-05-16 07:12:05 GMT <___Dave> i.e. /share/service/1_0_101_5/defaults.js (NOTE: the version number may change on your system)
2017-05-16 07:13:38 GMT <___Dave> the purpose of it is to allow Aikau to support multiple versions of the same WebScript
2017-05-16 07:18:20 GMT <Loftux> yreg: ___Dave: Seems like that the /share/service/<version> path was not excluded (ie allow anonymous) from your autentication proxy, similar to what you would do to /share/res/ ? If so not very obvious that this should be the case.
2017-05-16 07:31:07 GMT <yreg> in a rest client, when I start adding header from the faulty XHR, it starts to redirect to login page as soon as I add User-Agent
2017-05-16 07:35:40 GMT <bmejias> ~later tell angelborroy ping me when you are around
2017-05-16 07:35:40 GMT <alfbot> bmejias: The operation succeeded.
2017-05-16 07:40:45 GMT <___Dave> yreg: which authentication proxy is that?
2017-05-16 07:52:16 GMT <yreg> ___Dave, TAM
2017-05-16 08:11:52 GMT <mbui> I'm trying to send a file in a POST call like this: https://gyazo.com/2b81aa4ab97c033b9019806b5dfd8efc
2017-05-16 08:11:53 GMT <alfbot> Title: Gyazo - 2b81aa4ab97c033b9019806b5dfd8efc.png (at gyazo.com)
2017-05-16 08:11:59 GMT <mbui> Obviously that doesn't work, anyone got any other ideas on how to approach this?
2017-05-16 08:40:28 GMT <magp> the FormData constructor takes a form element, you should not be passing it a file
2017-05-16 08:42:27 GMT <magp> mbui: try instantiating an empty FormData and using append to add the file
2017-05-16 08:42:47 GMT <magp> mbui: https://developer.mozilla.org/en-US/docs/Web/API/FormData/FormData
2017-05-16 08:42:48 GMT <alfbot> Title: FormData() - Web APIs | MDN (at developer.mozilla.org)
2017-05-16 08:50:23 GMT <mbui> magp: Thank you sir, i'll try that.
2017-05-16 10:04:31 GMT <yreg> I learn a new thing with alfresco every day
2017-05-16 10:05:07 GMT <yreg> I just learnt that there could be risidual Aspects an Types which can litterally f*** up your system
2017-05-16 10:08:11 GMT <oussama> is there a way to make the edit online feature work on documents that are not under a site?
2017-05-16 10:13:21 GMT <yreg> oussama, Yes there is
2017-05-16 10:13:52 GMT <yreg> but are you finally abandoning the single site policy ?
2017-05-16 10:13:59 GMT <AFaust> yreg: There can be residual "anything" that messes up a system...
2017-05-16 10:14:32 GMT <AFaust> oussama: In latest AOS + 5.1/5.2 I believe that should already work
2017-05-16 10:14:48 GMT <oussama> yreg> that's a long story but yes we're going to give up on the single site policy just not soon
2017-05-16 10:14:53 GMT <AFaust> (unless there are still some bugs in that - at least the action/feature is supposed to be there)
2017-05-16 10:16:12 GMT <oussama> <AFaust> it is actually spp + 4.2.c :/
2017-05-16 10:16:54 GMT <yreg> AFaust, just tested it yesterday, and it works flawlessly
2017-05-16 10:17:26 GMT <yreg> with SSO kerberos as well (with an extra login per word session of course)
2017-05-16 10:17:41 GMT <yreg> oussama, good luck with that :D
2017-05-16 10:18:20 GMT <oussama> well i made it work actually but only for documents under a site, thank you <yreg>
2017-05-16 10:19:58 GMT <yreg> don't be too happy about it working, try a more recent office version and see if it still works
2017-05-16 10:21:26 GMT <AFaust> oussama: I once implemented a hack for Alfresco 5.0 + SPP to allow edit online outside of sites. Well, technically speaking the hack created an "invisible" site that would allow access to content outside of regular sites...
2017-05-16 10:26:59 GMT <oussama> <AFaust> wouldn't that require a patch to create the "invisible site"?
2017-05-16 10:29:22 GMT <AFaust> Not a patch, but some custom action logic
2017-05-16 10:33:56 GMT <oussama> <yreg> it works only on recent version (office 13/16)
2017-05-16 10:34:08 GMT <oussama> *versions
2017-05-16 10:34:39 GMT <cesarcapi> oussama, although maybe this is an AOS-related question, Libreoffice addon can edit online outside of Sites
2017-05-16 10:35:03 GMT <oussama> <cesarcapi> i will try that some time thank you
2017-05-16 10:49:52 GMT <yreg> AFaust, do you have an idea which risidual thing would cause this ? https://pastebin.com/rxQGTDgV
2017-05-16 10:49:53 GMT <alfbot> Title: 2017-05-16 12:45:01,640 INFO [app.servlet.DownloadContentServlet] [http-bio-8 - Pastebin.com (at pastebin.com)
2017-05-16 10:50:15 GMT <yreg> already cleared risidual types, props and aspects and cleared corresponding caches
2017-05-16 10:50:32 GMT <yreg> thinking this can be an assoc QName
2017-05-16 10:50:50 GMT <yreg> because I couldn't fin any risidual assoc type QName
2017-05-16 10:51:00 GMT <yreg> buty couldn't locate those on DB level
2017-05-16 10:52:51 GMT <AFaust> yreg: Hehe - the Opsera model is no longer deployed and because of that the Namespace is not mapped to a prefix in the in-memory structure.
2017-05-16 10:53:56 GMT <AFaust> Any child association can have any combination of namespace + local name, and if the model is no longer deployed that provides the namespace then it cannot be resolved to a prefix when trying to do a toPrefixString on a Path
2017-05-16 10:53:57 GMT <yreg> AFaust, I already now that
2017-05-16 10:54:22 GMT <AFaust> Funny thing is, the namespace may still be contained in the alf_namespace table but the NamespaceService does not look there for namespace/prefix resolution
2017-05-16 10:54:24 GMT <yreg> I meant the part about opsera model
2017-05-16 10:54:49 GMT <yreg> AFaust, yes, it only relies on parsed XMLs
2017-05-16 10:55:02 GMT <AFaust> You need to do changes on the DB layer in alf_child_assoc
2017-05-16 10:55:21 GMT <yreg> AFaust, That's what I am trying to do
2017-05-16 10:55:29 GMT <yreg> but couldn't find how
2017-05-16 10:55:50 GMT <yreg> by looking on type_qname_id, none of them has opsera namespace
2017-05-16 10:56:01 GMT <AFaust> Forget type_qname_id
2017-05-16 10:56:07 GMT <AFaust> You need to check qname_ns_id
2017-05-16 10:57:04 GMT <AFaust> If type_qname_id would reference an Opsera association from a model, you would have a different error (unknown association type or similar)
2017-05-16 10:57:06 GMT <yreg> there is no such column on that table
2017-05-16 10:57:24 GMT <AFaust> Of course there is - I am looking directly at the alf_child_assoc table in my PostgreSQL right now
2017-05-16 11:08:51 GMT <yreg> aha, was looking in alf_node_assoc
2017-05-16 11:09:21 GMT <yreg> thanks
2017-05-16 11:28:12 GMT <fwu> hello all!
2017-05-16 11:32:31 GMT <fwu> ppl, I add a new filter to the all.get.config.xml file. My goal is to add the filter to the mytasks page. However, changing this file change all the screens with filters.
2017-05-16 11:32:58 GMT <fwu> cant I chnage only the mytasks page?
2017-05-16 11:34:19 GMT <fwu> Where this file is set for the workflows Ive started page?
2017-05-16 11:48:59 GMT <fwu> hmm... I only added the new filter to this file: task-list.get.config.xml
2017-05-16 11:49:12 GMT <fwu> however, I get this filter in the workflow list...
2017-05-16 11:51:31 GMT <fwu> any ideas on this?
2017-05-16 12:24:05 GMT <alfbot> angelborroy: Sent 4 hours and 48 minutes ago: <bmejias> ping me when you are around
2017-05-16 12:28:37 GMT <alfbot> resplin: Sent 1 week, 6 days, 5 hours, and 26 minutes ago: <digcat> hope all good your end and you manage to get your churros! just a quick one re https://issues.alfresco.com/jira/browse/RM-5113 do i need to add more to this ?
2017-05-16 12:28:38 GMT <alfbot> resplin: Sent 1 week, 3 days, 20 hours, and 23 minutes ago: <digcat> just wondering if that note got to you re that jira ticket and pushing nightly amps into nexus :)
2017-05-16 12:32:08 GMT <resplin> ~later tell digcat Sorry for my slow response. I took a break from IRC while I was on the road. It looks like the team has been discussing RM-5113, but haven't decided how to handle it.
2017-05-16 12:32:08 GMT <alfbot> resplin: The operation succeeded.
2017-05-16 13:16:37 GMT <angelborroy> bhagyas resplin trying to patch this without success: https://issues.alfresco.com/jira/browse/ALF-21850
2017-05-16 13:16:44 GMT <angelborroy> any clue for me?
2017-05-16 13:18:27 GMT <angelborroy> is safe to change facetable web script /api/facet?
2017-05-16 13:21:11 GMT <angelborroy> bhagyas resplin ok I see the patch
2017-05-16 13:21:23 GMT <angelborroy> reading https://issues.alfresco.com/jira/browse/ACE-5782 is clear for me
2017-05-16 13:21:25 GMT <angelborroy> thanks
2017-05-16 13:23:39 GMT <bhagyas> okay :)
2017-05-16 13:31:14 GMT * AFaust is getting annoyed by try-catch(exception)-log+continue pattern in com.activiti.* code. The user does not get any apparent error displayed and the result of the operation will be partially inconsistent...
2017-05-16 13:32:14 GMT <bhagyas> :D
2017-05-16 13:33:29 GMT <AFaust> ...and we are talking about various NullPointerException being ignored that way.
2017-05-16 13:34:47 GMT <yreg> AFaust, sounds serious & dangerous
2017-05-16 13:36:11 GMT <AFaust> So far, nothing immediately bad has happened. I am just finding those errors strewn across the log files and wondering why nobody on the team at the customer wondered if this is "normal" before (they have Activiti for ~1 year now)
2017-05-16 13:44:32 GMT <angelborroy> it should be only 1 catch for the whole app
2017-05-16 13:44:43 GMT <angelborroy> and even this catch should log and throw
2017-05-16 13:44:45 GMT <angelborroy> nothing more
2017-05-16 13:44:46 GMT <mbui> TIL: So apparently you need to add CSRF token as a query parameter and not header when content-type starts with 'multipart/'
2017-05-16 14:19:47 GMT <fwu> ppl, this: /share/proxy/alfresco/api/workflow-instances?skipCount=0&maxItems=50&definitionName=myflow$myflowname
2017-05-16 14:20:30 GMT <fwu> is not filtering the tasks. Strange because the definitionName is having some impact as no results are returned, however it doest work as expected
2017-05-16 14:21:09 GMT <fwu> definitionMane is not supported as a parameter to the workflow-instances webscript?
2017-05-16 14:22:11 GMT <fwu> accordingly to this: http://docs.alfresco.com/4.1/references/RESTful-WorkflowWorkflow-instancesGet.html
2017-05-16 14:22:12 GMT <alfbot> Title: Get Workflow Instance Collection | Alfresco Documentation (at docs.alfresco.com)
2017-05-16 14:22:20 GMT <fwu> it should works
2017-05-16 14:22:33 GMT <fwu> by definition name and definition id
2017-05-16 14:25:00 GMT <IanW1> Anybody know if it's possible to reference a smart folder by xpath .../smf:mysmartfolder - I think not
2017-05-16 14:30:04 GMT <yreg> IanW1, Why not ?
2017-05-16 14:30:40 GMT <yreg> If I remember right, we had an export action a while back in one of our customers instances
2017-05-16 14:31:05 GMT <yreg> which did provide, among other things, the XPath to documents
2017-05-16 14:31:27 GMT <yreg> and the action was avalable on few smartfolder
2017-05-16 14:31:31 GMT <yreg> s
2017-05-16 14:35:14 GMT *** mmccarthy1 is now known as mmccarthy
2017-05-16 14:35:34 GMT <IanW1> I tried it, and it didn't work (5.1) - trying to set an association to a document in a smart folder - having the startLocation to the smf doesn't work
2017-05-16 14:56:11 GMT <AFaust> qq: Has anyone by any chance developed add-ins to Office 365 web apps (and maybe integrated those with Alfresco)? One thing I am currently looking at is concept of providing features similar to Alfresco Email Manager (EE addon) to users of the Outlook web app, since the EE addon only works with the Outlook fat client.
2017-05-16 16:28:55 GMT <resplin> AFaust: We have received that request, but haven't put it on the backlog for any team. I would love to be able to point people to your add-on to meet that need.
2017-05-16 16:31:27 GMT <AFaust> I have also put out feelers to Microstrat who have an Office 365 integration for editing, though I don't like how it has to go through OneDrive...
2017-05-16 16:33:07 GMT <AFaust> From what I gather so far from Microsoft documentation for Outlook web app is that it might be hard to get an email item "as-is" moved over to Alfresco since there is no API to get RFC822 conformant stream - or any full stream for that manner (in fat client Outlook days you could at least use MSG)
2017-05-16 16:33:16 GMT <AFaust> manner => matter
2017-05-16 17:19:57 GMT <fwu> ppl, I need to implement a fix in a file inside alfresco-repository-4.2.f.jar. Do I need to chnage it inside the jar, or I may overwrite the file deploying it in Alfresco?
2017-05-16 17:22:40 GMT <AFaust> fwu: Never change a file inside one of the JARs. You will not be able to untangle it afterwards or simply forget to.
2017-05-16 17:22:48 GMT <AFaust> What file is it that you think you need to fix?
2017-05-16 17:24:13 GMT <fwu> WorkflowInstanceGet
2017-05-16 17:24:31 GMT <fwu> https://issues.alfresco.com/jira/browse/ACE-4493
2017-05-16 17:28:00 GMT <fwu> AFaust, what will be the best approach to this?
2017-05-16 17:28:57 GMT <AFaust> Write and register a custom web script under a different bean name + URL, and use that web script instead of the default for your use case.
2017-05-16 17:29:42 GMT <AFaust> Or update to 5.2 to get that fix without the hassle of backporting it.
2017-05-16 17:30:20 GMT <fwu> ok, thank you AFaust!
2017-05-16 17:30:33 GMT <AFaust> Technically you could just put the modified .class file on the /alfresco/WEB-INF/classes path and it will override the .class file from the JAR
2017-05-16 17:30:58 GMT <fwu> Thats may be nice
2017-05-16 17:32:38 GMT <fwu> thank you AFaust!
2017-05-16 17:41:43 GMT <fwu> AFaust, where can I see the source code of these files?
2017-05-16 17:44:04 GMT <AFaust> In SVN
2017-05-16 17:44:29 GMT <AFaust> The Alfresco Public Mirror SVN is the main place to look for source (until Alfresco has completed move to Git)
2017-05-16 17:45:31 GMT <AFaust> resplin: You can be glad that the Activiti product does not have an Open Source equivalent, or I could be spamming JIRA with issues for a couple of days.
2017-05-16 17:47:19 GMT <AFaust> Seldom have I seen a piece of software where devs have been that openly averse to proper error handling and transactionally complete user actions (e.g. no partial success results)
2017-05-16 17:48:21 GMT <AFaust> While the Activiti core engine has always been quite clean, the Enterprise bits that have been tacked on to make it a viable product are just nasty in some places...
2017-05-16 17:51:12 GMT <resplin> AFaust: Once JIRA is set up to require agreement to the CLA, all Activiti pull requests will need to go through the ALF project (or something similar). At that point, I'll probably be seeing your many improvements.
2017-05-16 18:05:49 GMT <fwu> arghh... SVN doesnt have the 4.2.f version?
2017-05-16 22:00:17 GMT <eswbitto> I was wondering if anyone could tell me if this slide is outdated or if it still applies to the alfresco architecture
2017-05-16 22:00:20 GMT <eswbitto> https://www.slideshare.net/emperor333/alfresco-architecture
2017-05-16 22:00:22 GMT <alfbot> Title: Alfresco Architecture (at www.slideshare.net)
2017-05-16 22:03:09 GMT <resplin> eswbitto: Which slide in that deck?
2017-05-16 22:04:01 GMT <eswbitto> resplin 7
2017-05-16 22:15:28 GMT <resplin> It is out dated.
2017-05-16 22:19:28 GMT <eswbitto> resplin where would I get an outline of the architecture that alfresco uses. The reason I'm asking is I'm creating a development project (openproject.org) that outlines all aspects of development so I can have a tangible plan.
2017-05-16 22:23:16 GMT <resplin> eswbitto: http://docs.alfresco.com/5.2/concepts/dev-arch-overview.html
2017-05-16 22:23:17 GMT <alfbot> Title: Alfresco Content Services architecture | Alfresco Documentation (at docs.alfresco.com)
2017-05-16 22:23:44 GMT <eswbitto> resplin I know I've seen that. I guess I should ask a different way.
2017-05-16 22:24:17 GMT <eswbitto> I'm wanting to get an overview of all elements of alfresco. Programming languages needed, frameworks....etc.
2017-05-16 22:24:49 GMT <eswbitto> I'm wanting to put together a project of where I"m at compared to what I need to still strive for.
2017-05-16 22:24:59 GMT <eswbitto> *need
The other logs are at http://esplins.org/hash_alfresco