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-11-14 08:09:18 GMT <yreg> Morning everyone
2017-11-14 08:13:42 GMT <MorganP> Morning guys
2017-11-14 08:45:30 GMT <Tichodroma> good morning
2017-11-14 09:37:53 GMT <aviriel> Hi!
2017-11-14 09:38:04 GMT <yreg> Hello aviriel !
2017-11-14 09:38:08 GMT <yreg> How it goes ?
2017-11-14 09:40:09 GMT <aviriel> yreg: just found, that the results of call for papers should have been sent 4 days ago :)
2017-11-14 09:40:12 GMT <aviriel> how are you?
2017-11-14 09:43:19 GMT <yreg> Really, What's stopping them from being sent then ?
2017-11-14 09:43:38 GMT <aviriel> yreg: so I come here to ask :)
2017-11-14 09:44:09 GMT <yreg> I am fine, just struggling with a never ending project (a change request in a change request in a change request .....)
2017-11-14 09:44:26 GMT <yreg> End users just can not make up their mind hehe
2017-11-14 09:48:55 GMT <aviriel> yreg: I know that! I'm in this situation for a year already. Let's kill them all?
2017-11-14 09:49:28 GMT <yreg> aviriel, in Terminator mode hehe :D
2017-11-14 09:49:59 GMT <AFaust> Ehmm - please don't kill me and Angel (and the Alfresco guys)
2017-11-14 09:50:15 GMT <aviriel> AFaust: of course, you are not a customer )
2017-11-14 09:50:48 GMT <AFaust> Ah - you wanted to kill customers, not the people in charge of the call for paper review. I just skipped a few words...
2017-11-14 09:58:58 GMT <raksha> Hey All,
2017-11-14 09:59:14 GMT <raksha> I am searching for a way to convert pdf to word in alfresco
2017-11-14 10:00:05 GMT <raksha> so far I have come along this question in forum
2017-11-14 10:00:16 GMT <raksha> https://community.alfresco.com/thread/195580-pdf-to-doc-converter
2017-11-14 10:00:18 GMT <alfbot> Title: PDF to DOC Converter | Alfresco Community (at community.alfresco.com)
2017-11-14 10:00:54 GMT <AFaust> raksha: That is a good answer there...
2017-11-14 10:01:32 GMT <AFaust> You definitely need a custom transformer.
2017-11-14 10:01:52 GMT <tushar> hi all
2017-11-14 10:02:11 GMT <tushar> i was looking into logs and yesterday someone needed a email action
2017-11-14 10:02:15 GMT <AFaust> If you have a ready-made external application for PDF-to-DOC, you could simply call that application from the Java code of the transformer or use the existing command line component for it
2017-11-14 10:03:05 GMT <tushar> well i have made an add on to work with alfresco 5.2
2017-11-14 10:03:07 GMT <tushar> https://github.com/tusharkhanka/Email-beta-1.0
2017-11-14 10:03:08 GMT <alfbot> Title: GitHub - tusharkhanka/Email-beta-1.0 (at github.com)
2017-11-14 10:06:52 GMT <raksha> AFaust - Unfortunately I don't have any external application and if you can point to me some example using PDFBox and Apache POI that I can use to develop the trnasformer that will be great
2017-11-14 10:08:04 GMT <AFaust> There is no example - this is custom development...
2017-11-14 10:08:32 GMT <AFaust> There is of course the documentation for each of these Java libraries, and I bet they can be found quite easily on their homepage...
2017-11-14 10:10:45 GMT <raksha> I am not exactly looking for an example. I was more of looking for the library use in alfresco so that I can a take a cue from there and start my own developement
2017-11-14 10:17:31 GMT <AFaust> https://github.com/Alfresco/alfresco-repository/search?utf8=%E2%9C%93&q=PdfBoxContentTransformer&type=
2017-11-14 10:17:32 GMT <alfbot> Title: Search · PdfBoxContentTransformer · GitHub (at github.com)
2017-11-14 10:18:11 GMT <AFaust> As you can see - there is not much in the Alfresco context
2017-11-14 10:18:25 GMT <AFaust> Because it is all done behind the scenes...
2017-11-14 10:18:55 GMT <AFaust> So you have no choice but to use the project documentation to get a start...
2017-11-14 10:22:08 GMT <tushar> can anyone help me with https://github.com/douglascrp/versions-difference-alfresco-plug-in
2017-11-14 10:22:09 GMT <alfbot> Title: GitHub - douglascrp/versions-difference-alfresco-plug-in: Automatically exported from code.google.com/p/versions-difference-alfresco-plug-in (at github.com)
2017-11-14 10:22:39 GMT <tushar> i have made it work but the UI is compromised and reloads the pages
2017-11-14 10:22:56 GMT <tushar> but logic works
2017-11-14 10:23:25 GMT <raksha> Thanks for the information AFaust
2017-11-14 10:27:00 GMT <alfbot> hiten: Sent 6 days, 22 hours, and 59 minutes ago: <AFaust> Yes, of course the targetPackageRoot is important to define which Alfresco web scripts are affected. I.e. for faceted search you'd want to affect the faceted search page web script
2017-11-14 10:27:52 GMT <hiten> Hi All
2017-11-14 10:28:32 GMT <hiten> I have question regarding search term highlighting
2017-11-14 10:29:26 GMT <hiten> One of our customer is searching for documents and it is not getting highlighted properly
2017-11-14 10:30:28 GMT <hiten> in the search results
2017-11-14 10:31:08 GMT <hiten> for e.g. if there are four results in the search for term abc then only two results show highlighted terms
2017-11-14 10:31:39 GMT <hiten> other do not
2017-11-14 10:35:29 GMT <hiten> anyone please help me in understanding how this works
2017-11-14 10:36:46 GMT <fwu> hi all
2017-11-14 10:37:40 GMT <fwu> ppl, Im configuring apache over alfresco. Internally it is working. But externally using an external name I can get to the apache root, but if I palce share in the link, I dont reach share. Any ideas on this?
2017-11-14 10:38:07 GMT <fwu> I chnaged alfreesco config so that the host points to the external name and httpd.conf accordingly to this:
2017-11-14 10:39:58 GMT <fwu> http://docs.alfresco.com/5.2/tasks/configure-ssl-prod.html
2017-11-14 10:40:00 GMT <alfbot> Title: Configuring SSL for a production environment | Alfresco Documentation (at docs.alfresco.com)
2017-11-14 10:50:44 GMT <DarkStar1> Hello everyone
2017-11-14 11:12:41 GMT <rusin> is it possible to write meta-data of multiple documents into a single presenation template as a table with multiple rows
2017-11-14 14:20:31 GMT <twen> hello
2017-11-14 14:49:17 GMT * AFaust is taking a few steps back in preparation of running up the wall again....
2017-11-14 14:49:45 GMT <AFaust> Does anyone here know how the AspectJ related stuff regarding the smart folder extensions (i.e. VirtualFileFolderServiceExtension) is supposed to be initialised?
2017-11-14 14:50:48 GMT <AFaust> I am currently trying to find out why smart folders don't work for a customer on 5.2.1 + current RM, where - for some reason - the extension is not being loaded
2017-11-14 14:51:40 GMT <AFaust> Of course, based on experience, I immediately suspect that the RM module is messing around and breaking things, but since I can't find a decent entry point for debug + analysis, I can't sent Alfresco a flaming support ticket...
2017-11-14 14:54:13 GMT <MTielemans> You tried smartfolder-context.xml?
2017-11-14 14:58:50 GMT <AFaust> Of course - first file I looked into. But that only defines the extension bundles, not how they are eventually wired together, which is based on AspectJ runtime weaving
2017-11-14 14:59:34 GMT <AFaust> Also debugged those bundles and confirmed they are being initialised. Problem is, they are never picked up to actually apply the extension
2017-11-14 15:00:49 GMT <AFaust> I am currently even debugging my local (working 5.2) instance and trying to discern something from the Java stack when one of the AspectJ advices is triggered, but unfortunately - as a result of bytecode weaving - I don't see anything
2017-11-14 15:01:34 GMT <AFaust> And I don't know where the weaving is supposed to be triggered, so that I could check there
2017-11-14 15:02:18 GMT <AFaust> Starting to get desperate and doing a global *.xml/*.java search for term "aspect"
2017-11-14 15:03:06 GMT <MTielemans> Oof.. That ís desperate.
2017-11-14 15:03:35 GMT <MTielemans> Sorry, I follow the question, but really wouldn´t know how to solve.
2017-11-14 15:05:15 GMT <yreg> AFaust, https://github.com/Alfresco/community-edition-old/blob/2c1eff9953d3105e738f7b06ba9ba8a079ca4c24/projects/repository/source/java/org/alfresco/repo/node/db/DbNodeServiceImpl.java#L203
2017-11-14 15:05:16 GMT <alfbot> Title: community-edition-old/DbNodeServiceImpl.java at 2c1eff9953d3105e738f7b06ba9ba8a079ca4c24 · Alfresco/community-edition-old · GitHub (at github.com)
2017-11-14 15:05:53 GMT <yreg> AFaust, this might be interesting as well : https://github.com/Alfresco/community-edition-old/blob/2c1eff9953d3105e738f7b06ba9ba8a079ca4c24/projects/repository/source/java/org/alfresco/traitextender/RouteExtensions.java#L59
2017-11-14 15:05:54 GMT <alfbot> Title: community-edition-old/RouteExtensions.java at 2c1eff9953d3105e738f7b06ba9ba8a079ca4c24 · Alfresco/community-edition-old · GitHub (at github.com)
2017-11-14 15:07:12 GMT <AFaust> yreg: Already found that and debugging that...
2017-11-14 15:07:30 GMT <AFaust> But that is not the "entry point", i.e. not what is triggering the bytecode weaving
2017-11-14 15:08:03 GMT <AFaust> That RouteExtensions is what is missing in the customer environment, and I am need to find out why it is not initialised...
2017-11-14 15:15:23 GMT <AFaust> Grml - breakpoints inside of AspectJ evaluating annotation aren't being triggered...
2017-11-14 15:18:43 GMT <yreg> AFaust, check this : https://github.com/Alfresco/community-edition-old/blob/master/projects/repository/source/java/org/alfresco/traitextender/SpringBeanExtension.java
2017-11-14 15:18:44 GMT <alfbot> Title: community-edition-old/SpringBeanExtension.java at master · Alfresco/community-edition-old · GitHub (at github.com)
2017-11-14 15:19:12 GMT <AFaust> Already did, not relevant as it is registered properly but never picked up
2017-11-14 15:24:32 GMT <yreg> AFaust, I sggest you put log level to DEBUG on org.alfresco.traitextender then restart and check if there is something fishy in the logs
2017-11-14 15:31:26 GMT <AFaust> Would it surprise you if I said that absolutely nothing is logged?
2017-11-14 15:32:29 GMT <AFaust> Except at the end, where it states as INFO that "bundle org.alfresco.virtual.folders" is "enabled"
2017-11-14 15:32:55 GMT <AFaust> Which only means it has been registered, nothing more
2017-11-14 15:33:30 GMT <AFaust> Since the RouteExtension advise has not been initialised, it will sit idle, collecting dust in the registry...
2017-11-14 15:39:45 GMT <yreg> It does surprise me, since you confirmed that it got registered alrtight and I would expect this to be logged before registration : https://github.com/Alfresco/community-edition-old/blob/2c1eff9953d3105e738f7b06ba9ba8a079ca4c24/projects/repository/source/java/org/alfresco/traitextender/SpringExtensionBundle.java#L130
2017-11-14 15:39:46 GMT <alfbot> Title: community-edition-old/SpringExtensionBundle.java at 2c1eff9953d3105e738f7b06ba9ba8a079ca4c24 · Alfresco/community-edition-old · GitHub (at github.com)
2017-11-14 15:40:27 GMT <AFaust> That log message appears, but you may have your order confused.
2017-11-14 15:40:59 GMT <AFaust> 1) The extension bundle XY is spring-enabled. Starting...
2017-11-14 15:41:14 GMT <AFaust> 2) Registering extension bundle XY
2017-11-14 15:41:21 GMT <AFaust> 3) Starting extension bundle XY
2017-11-14 15:41:43 GMT <AFaust> See afterPropertiesSet for the first message
2017-11-14 15:44:12 GMT <AFaust> But again - those messages only affect the registration of the extension bundle. They do not tell me anything about the base wiring of the @Extend pointcuts (https://github.com/Alfresco/alfresco-repository/blob/d8f828324419f101d6e1f7a19020864d801b3b64/src/main/java/org/alfresco/repo/model/filefolder/FileFolderServiceImpl.java#L447)
2017-11-14 15:44:13 GMT <alfbot> Title: alfresco-repository/FileFolderServiceImpl.java at d8f828324419f101d6e1f7a19020864d801b3b64 · Alfresco/alfresco-repository · GitHub (at github.com)
2017-11-14 15:45:53 GMT <yreg> AFaust, filefolder service is class is replaced in RM with a different implementation if I am not wrong
2017-11-14 15:46:38 GMT <yreg> https://github.com/Alfresco/records-management/blob/bd039a293e4871fab291e55b1701f67b34a2d916/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/extended-repository-context.xml#L14
2017-11-14 15:46:39 GMT <alfbot> Title: records-management/extended-repository-context.xml at bd039a293e4871fab291e55b1701f67b34a2d916 · Alfresco/records-management · GitHub (at github.com)
2017-11-14 15:46:43 GMT <AFaust> I know.... that is why I want to debug and understand this in a clean 5.2 without RM, so I know where I have to look for conflicts...
2017-11-14 15:47:39 GMT <AFaust> And since RM extends the original bean and replaces the implementation class before instantiation, it should still be processed properly according to the annotiations on the base class
2017-11-14 15:49:54 GMT <yreg> AFaust, not if they would it be if they override an extendable method without putting the annotation back ?
2017-11-14 15:50:15 GMT <yreg> (not sure if that's the case, as I haven't checked)
2017-11-14 15:50:36 GMT <AFaust> Sure, but I don't have a problem with a single method - I have a problem with the entire extension mechanism not being initialised
2017-11-14 15:51:22 GMT <AFaust> In all the services that should be enhanced by the smart folders feature...
2017-11-14 15:52:33 GMT <yreg> Ok, I give up... let us know when you find the root of the issue
2017-11-14 15:53:47 GMT <AFaust> You will likely hear when that happens over there in Belgium. Whenever you hear a deafingly loud groan, that might potentially be me...
2017-11-14 15:54:12 GMT <yreg> LOL
2017-11-14 15:55:02 GMT <AFaust> resplin: Please arrange a security detail for any Alfresco Engineers involved in pushing annotation-based config and load-time weaving in Alfresco products during DevCon...
2017-11-14 15:58:39 GMT <yreg> hehe
2017-11-14 15:58:44 GMT <resplin> I thought that AFaust was in charge of security.
2017-11-14 15:58:50 GMT <resplin> I will bring the popcorn.
2017-11-14 15:59:22 GMT <yreg> TBH I do not have anything against that exteension mecanism, but having multiple extension mecanisms possibly overriding one an other is bad
2017-11-14 15:59:50 GMT <yreg> definitely when both were created by the same editor, who happens to be the editor of the base software itself <grin>
2017-11-14 16:00:30 GMT <yreg> s/editor/Software Editor/
2017-11-14 16:01:48 GMT <yreg> but seriously, I thought someone at Alfresco had some reservations when they saw your way of extending beans (the same way used by RM)
2017-11-14 16:04:29 GMT <AFaust> yreg: My way of extending beans is only meant for final environment patches. I do not extend any services in my functional modules - all customisations are done (as far as possible) using AOP interceptors on proxies, leaving the service 100% unchanged
2017-11-14 16:05:08 GMT <AFaust> And I believe you might be referring to pmonks, who honestly had reservations against anyone doing anything inside the Alfresco Spring context...
2017-11-14 16:07:41 GMT * AFaust is not having any more fun cloning the alfresco-repository GitHub project at ~120 KiB/s...
2017-11-14 16:15:08 GMT <AFaust> Of course the AspectJ stuff is woven in at build time when Alfresco builds the JAR.
2017-11-14 16:15:36 GMT <AFaust> Of course the sources.jar is lying to everyone, because the code is actually different
2017-11-14 16:16:41 GMT <AFaust> Of course the customer has had to patch the alfresco-repository.jar because Alfresco refuses to fix issues / implement improvements that have been submitted as patches years ago.
2017-11-14 16:16:56 GMT <AFaust> Of course that means the patched JAR does not container the AspectJ stuff...
2017-11-14 16:17:55 GMT <AFaust> Ok, now on to fix the patch build of the customer...
2017-11-14 16:23:25 GMT <AFaust> yreg: I hope you heard that groan...
2017-11-14 16:23:49 GMT <AFaust> otherwise I am going shopping for a cochlear implant...
2017-11-14 16:30:07 GMT <yreg> AFaust, what issue did require you to patch alfresco-repository ?
2017-11-14 16:30:54 GMT <AFaust> I only joined that project at start of the year, but it has been going on since 2012/2013
2017-11-14 16:32:09 GMT <yreg> So, Alfresco is not to be blamed this time <grin>
2017-11-14 16:32:43 GMT <AFaust> I would say about 60:40 relation between patches, bugfixes, enhancements that could only be done as source-level patches, and dirty, dirty hacks that I despise and don't stop to bring up everytime someone else on the team is claiming that "it doesn't matter - the important thing is that we implement that customer requirement in this spring"
2017-11-14 16:33:50 GMT <AFaust> Well - their published source code attachment for that project is lying about the actual state of the code. Looking at the decompiler, line numbers are all a bit wonky and could potentially cause debugging to be a pain in the arse...
2017-11-14 16:34:26 GMT <AFaust> If they were a bit more consistent / transparent, it would have been obvious that something is wrong on the patching side-of-things.
2017-11-14 16:34:42 GMT <AFaust> But yes, overall, no blame for the immediate cause.
2017-11-14 16:34:54 GMT <yreg> I would expect debuggers to be smarter than that (if the IDE is equipped with right plugins of course)
2017-11-14 16:35:15 GMT <AFaust> Debuggers can only be as smart as the debug information included in the JAR files..
2017-11-14 16:39:00 GMT <AFaust> LoL - adding the compile-time weaving breaks the Jenkins build due to GC overhead...
2017-11-14 16:41:05 GMT <AFaust> I guess it is time to go home then...
2017-11-14 18:33:45 GMT <douglascrp> does anyone know about any open issue to have all the share queries using fts instead of lucene?
2017-11-14 18:34:09 GMT <douglascrp> some pages, like the document library still uses lucene, as you can see in the files touched by the following project https://github.com/dgcloud/patch-alf-21955-repo
2017-11-14 18:34:10 GMT <alfbot> Title: GitHub - dgcloud/patch-alf-21955-repo: patch-alf-21955-repo Platform Module (at github.com)
2017-11-14 18:34:18 GMT <douglascrp> I am trying to find an open issue for that, but I could not find one
2017-11-14 18:59:00 GMT <douglascrp> AFaust, welcome back :D
2017-11-14 18:59:14 GMT <douglascrp> do you know about any open issue about replacing the lucene search use inside share?
2017-11-14 18:59:34 GMT <douglascrp> I know it is not recommended to use it, but share itself is basically all based on lucene instead of fts
2017-11-14 19:10:28 GMT <AFaust> douglascrp: Only legacy parts of Share are based on Lucene
2017-11-14 19:10:46 GMT <AFaust> Most should use fts or canned queries
2017-11-14 19:11:00 GMT <douglascrp> documentlibrary for example
2017-11-14 19:11:27 GMT <douglascrp> this is lucene, right?
2017-11-14 19:11:28 GMT <douglascrp> +PATH:"/app:company_home/st:sites/cm:recursos-humanos/cm:documentLibrary//*" +((+ASPECT:"workingcopy" -@cm\:workingCopyOwner:"admin") OR (-@cm\:lockOwner:"admin" +@cm\:lockType:"WRITE_LOCK") OR (-@cm\:lockOwner:"admin" +@cm\:lockType:"READ_ONLY_LOCK"))
2017-11-14 19:11:40 GMT <AFaust> Yeah, the filters.lib.js
2017-11-14 19:11:44 GMT <douglascrp> the @cm\: syntax
2017-11-14 19:12:03 GMT <douglascrp> basic filters are not working for me
2017-11-14 19:12:16 GMT <douglascrp> if I replace the queries with the fts version, everything works as expected
2017-11-14 19:12:26 GMT <douglascrp> so, right now, I am trying to addapt this part
2017-11-14 19:12:34 GMT <douglascrp> *adapt
2017-11-14 19:12:51 GMT <AFaust> Apart from the damn PATH section, those queries could easily be TMQ ones
2017-11-14 19:13:14 GMT <douglascrp> right
2017-11-14 19:13:51 GMT <AFaust> Instead of PATH with /* I would prefer a PARENT selector. That would use TMQ. Only a PATH with //* will always have to rely on SOLR
2017-11-14 19:15:14 GMT <AFaust> ID unfortunately is not supported as TMQ due to lack of rewrite logic for that
2017-11-14 19:15:32 GMT <douglascrp> lots of changes to make that work
The other logs are at http://esplins.org/hash_alfresco