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-08-18 06:33:57 GMT <chandu> Hello All

2017-08-18 06:45:34 GMT <chandu> Is there any documentation for getting sites details into alfresco custom menu?

2017-08-18 06:45:56 GMT <chandu> can you please share the documentation, if it is there.

2017-08-18 08:07:42 GMT <DarkStar1> Good morning all.

2017-08-18 08:09:03 GMT <DarkStar1> Has anyone made a translation pack for the Aikau-fied version using SDK 3.0.0/1? I was wondering about where to include the Aikau directories in the project structure because nothing I've done so far sticks

2017-08-18 08:11:37 GMT <mrks_js> you mean i18n messages?

2017-08-18 08:11:44 GMT <DarkStar1> yup

2017-08-18 08:11:52 GMT <mrks_js> not yet!

2017-08-18 08:12:14 GMT <DarkStar1> Ok I'll try another approach

2017-08-18 08:13:18 GMT <mrks_js> have you tried like martin did, here: https://docs.google.com/document/d/1p5QR1Q8pVvMT9fh_aID5nraD5NP6ZrU1ztcgE_zHR-4/pub

2017-08-18 08:13:19 GMT <alfbot> Title: Alfresco SDK 3.0 Beta - User Guide (at docs.google.com)

2017-08-18 08:50:31 GMT *** angelborroy_ is now known as angelborroy

2017-08-18 09:07:29 GMT <yreg_> ~ seen Loftux

2017-08-18 09:07:29 GMT <alfbot> yreg_: Loftux was last seen in #alfresco 1 day, 0 hours, 45 minutes, and 46 seconds ago: <Loftux> fcorti: I'll be patient, thanks for your reply

2017-08-18 09:31:43 GMT <DarkStar1> mrks_js: I just saw your last reply. That link doesn't contain anything that helps. :) I'll try out something else now though

2017-08-18 09:31:46 GMT <DarkStar1> Thanks

2017-08-18 09:33:03 GMT *** Mike_ is now known as Guest78982

2017-08-18 09:33:24 GMT <mrks_js> document is huge but there are 2 examples if i18n files. i thought it might be of help :P

2017-08-18 09:34:15 GMT <Guest78982> hello does somebody know how to fix the "Error getting plugins from server" in pentaho marketplace ? i have been searching for a while and all the fixes doesn't work

2017-08-18 09:37:41 GMT <fcorti> Hi Guest78982, which Pentaho version are you using?

2017-08-18 09:38:06 GMT <fcorti> it is often related to sourceforge... it's a real mess

2017-08-18 09:38:52 GMT <fcorti> you can download the zip file manually from sourceforge (if you are installing AAAR) and unzip it in the system folder

2017-08-18 09:39:27 GMT <fcorti> If you are using Alflytics (Pentaho 7.1) you can download it from the github repository, under releases

2017-08-18 09:39:31 GMT <fcorti> and do the same

2017-08-18 09:51:28 GMT <mike1458> hello again did anyone answer about the pentaho marketplace problem ?

2017-08-18 10:10:04 GMT <MorganP> Yes, check the logs here http://chat.alfresco.com/log_hash-alfresco_2017-08-18.html

2017-08-18 10:10:05 GMT <alfbot> Title: Logs for #alfresco IRC channel (at chat.alfresco.com)

2017-08-18 10:22:27 GMT <chandu> Hi all,

2017-08-18 10:22:41 GMT <chandu> i have developed custom menu page in alfresco

2017-08-18 10:23:01 GMT <chandu> Is there any documentation for getting all sites details into alfresco custom menu?

2017-08-18 10:59:34 GMT <MorganP> chandu: what you do mean by sites details?

2017-08-18 11:00:05 GMT <MorganP> And by custom menu? Are you talking about the menu bar at the top?

2017-08-18 11:00:56 GMT <chandu> Yes

2017-08-18 11:02:21 GMT <chandu> I need to get details of sites which are in repository into custom menu bar.

2017-08-18 11:09:07 GMT <jebla> Hi, could anybody be so kind and point me in the direction where the rules regarding the need for solr reindex when changing custom models are documented?

2017-08-18 11:36:38 GMT <chandu> MorganP: Can you please provide documentation if any.

2017-08-18 11:37:28 GMT <chandu> to get sites details like site name, site created date etc

2017-08-18 12:01:23 GMT <MorganP> The customization of the Menu bar is documented here: http://docs.alfresco.com/5.2/tasks/dev-extensions-share-tutorials-custom-share-header-menu.html

2017-08-18 12:01:24 GMT <alfbot> Title: Customizing the Share header menu (Aikau) | Alfresco Documentation (at docs.alfresco.com)

2017-08-18 12:02:17 GMT <MorganP> You will have to work with JS files so you should be able to do what you want

2017-08-18 12:05:29 GMT <MorganP> jebla: I'm not sure I understand but take a look at the point N°10 (almost at the bottom) here: http://docs.alfresco.com/5.2/tasks/admintools-ct-properties-create.html

2017-08-18 12:05:30 GMT <alfbot> Title: Creating a new property for custom types and aspects | Alfresco Documentation (at docs.alfresco.com)

2017-08-18 12:09:42 GMT <fwu> hi all!

2017-08-18 12:13:52 GMT <chandu> MorganP: I have create custom menu with given link. in alfresco the drop down menu appending with "http://localhost:8080/share/page/" but the alfresco APIs are "http://localhost:8080/alfresco/s/index/uri/"

2017-08-18 12:14:15 GMT <chandu> I tried but no result.

2017-08-18 12:24:57 GMT <DarkStar1> mrks_js: So I think I solved it. I just cloned the aikau parent repo, disabled all but the aikau and aikau-additional-languages modules in the parent POM

2017-08-18 12:25:32 GMT <douglascrp> DarkStar1, hey man

2017-08-18 12:26:49 GMT <DarkStar1> mrks_js: Then you must do a bit of magic here. you need to edit the aikau-additional-languages pom on this line: https://github.com/Alfresco/Aikau/blob/develop/aikau-additional-languages/pom.xml#L32 (Thank you douglascrp for pointing that out :) ) to only include the locale you want to import

2017-08-18 12:26:50 GMT <alfbot> Title: Aikau/pom.xml at develop · Alfresco/Aikau · GitHub (at github.com)

2017-08-18 12:27:03 GMT <DarkStar1> stitching not magic :)

2017-08-18 12:27:07 GMT <DarkStar1> hey douglascrp

2017-08-18 12:27:29 GMT <douglascrp> DarkStar1, cool

2017-08-18 12:29:06 GMT <DarkStar1> but first you have to build the aikau-additional-languages POM as mentioned here: https://github.com/Alfresco/Aikau/wiki/Additional-Language-Pack-Support so you can expand the jar and copy the directory structure into the module's project structure

2017-08-18 12:29:07 GMT <alfbot> Title: Additional Language Pack Support · Alfresco/Aikau Wiki · GitHub (at github.com)

2017-08-18 12:30:14 GMT <DarkStar1> -= THIS MESSAGE NOT LOGGED =-

2017-08-18 12:33:11 GMT <fwu> ppl, im extending a dropdown object usin this: YAHOO.extend

2017-08-18 12:33:33 GMT <fwu> I add a function here to make a callback

2017-08-18 12:33:43 GMT <douglascrp> DarkStar1, :D

2017-08-18 12:33:46 GMT <douglascrp> feel free

2017-08-18 12:34:08 GMT <fwu> however, when the callback is called making: this.some_function returns a not found function...

2017-08-18 12:34:21 GMT <fwu> why this happens?

2017-08-18 12:34:34 GMT <douglascrp> fwu, share the full code

2017-08-18 12:34:35 GMT <fwu> the function im calling is part of the extension im making

2017-08-18 12:34:48 GMT <fwu> douglascrp!

2017-08-18 12:34:55 GMT <fwu> you know part of it

2017-08-18 12:34:57 GMT <douglascrp> the js and the ftl file

2017-08-18 12:35:13 GMT <fwu> wait

2017-08-18 12:35:21 GMT <douglascrp> use pastebin

2017-08-18 12:37:24 GMT <fwu> http://www.heypasteit.com/clip/0IIR2E

2017-08-18 12:37:25 GMT <alfbot> Title: Clip #0IIR2E (at www.heypasteit.com)

2017-08-18 12:37:40 GMT <fwu> this is from valueassistance

2017-08-18 12:37:45 GMT <fwu> im changing it

2017-08-18 12:37:52 GMT <fwu> to n levels as I told you

2017-08-18 12:38:31 GMT <fwu> when the parentListner is called (and it is), the this.loadValues(); falis

2017-08-18 12:38:33 GMT <fwu> fails

2017-08-18 12:39:10 GMT <fwu> so basically Im registering a change event on a parent dropdown. when this dropdown changes its value, the parentListner is called

2017-08-18 12:39:26 GMT <fwu> but at that time, I cant get the functions of the extended object...

2017-08-18 12:39:33 GMT <fwu> scope problem maybe?

2017-08-18 12:39:56 GMT <douglascrp> have you analysed the proprotype of this javascript code using the browser development tool?

2017-08-18 12:40:11 GMT <fwu> no

2017-08-18 12:40:39 GMT <douglascrp> you know, you can use the browser console to check what is defined inside of it, with TSG.DynamicDropdown.prototype

2017-08-18 12:40:49 GMT <douglascrp> then you will be able to check if the function is there or not

2017-08-18 12:42:01 GMT <fwu> let me see

2017-08-18 12:42:09 GMT <douglascrp> ah, your function is not properly defined

2017-08-18 12:42:17 GMT <douglascrp> pay attention to the way the others are created

2017-08-18 12:42:28 GMT <douglascrp> the function body is closed with a ;

2017-08-18 12:42:34 GMT <douglascrp> yours is using a simple ,

2017-08-18 12:42:41 GMT <fwu> let me see

2017-08-18 12:42:46 GMT <douglascrp> so it seems you have errors in the code it self

2017-08-18 12:43:01 GMT <douglascrp> use a javascript analysis tool to check it

2017-08-18 12:43:57 GMT <fwu> douglascrp, the function is being closed like this:

2017-08-18 12:43:59 GMT <fwu> }, onReady : function() {

2017-08-18 12:44:03 GMT <fwu> with ","

2017-08-18 12:44:22 GMT <fwu> and this new function I added is in fact working. but I cant call others from it using "this"

2017-08-18 12:44:39 GMT <fwu> where are you seing the ";"?

2017-08-18 12:45:45 GMT <DarkStar1> fwu: parentListner to parentListener

2017-08-18 12:46:52 GMT <fwu> DarkStar1, even if with a typo it shouldnt matter, because that is only a name I gave to it

2017-08-18 12:47:17 GMT <DarkStar1> fwu: aah I assume you were overriding something ootb

2017-08-18 12:47:32 GMT <fwu> no, Im not... maybe that the problem?

2017-08-18 12:48:00 GMT <fwu> I never extended yahoo objects so I dont know if Im doing it as I should

2017-08-18 12:48:49 GMT <fwu> what I know is that the function is being called after the parent dropdown is called. However, inside that function I cant make this.other_function inside the extended

2017-08-18 12:49:22 GMT <douglascrp> fwu, lines 226 and 227

2017-08-18 12:49:23 GMT <douglascrp> },

2017-08-18 12:49:23 GMT <douglascrp> });

2017-08-18 12:49:30 GMT <douglascrp> you have this "," alone

2017-08-18 12:49:32 GMT <douglascrp> remove it

2017-08-18 12:50:46 GMT <fwu> douglascrp, looking at the prototype, the functions are there.

2017-08-18 12:50:52 GMT <fwu> hmmm

2017-08-18 12:50:56 GMT <fwu> let me see...

2017-08-18 12:52:18 GMT <fwu> yes it shouldnt be there. let me try compiling!

2017-08-18 12:52:54 GMT <douglascrp> ok

2017-08-18 12:53:15 GMT <fwu> 2 minutes...

2017-08-18 12:53:16 GMT <fwu> :)

2017-08-18 12:56:19 GMT <douglascrp> fwu, a piece of code from the share's code

2017-08-18 12:56:21 GMT <douglascrp> / Make sure we listen to the change event so we can store details about the file (name & size) and use it in validations below

2017-08-18 12:56:21 GMT <douglascrp> YAHOO.util.Event.addListener(this.id + "-filedata-file", "change", function()

2017-08-18 12:56:21 GMT <douglascrp> {

2017-08-18 12:56:21 GMT <douglascrp> if (this.files && this.files.length > 0)

2017-08-18 12:56:21 GMT <douglascrp> {

2017-08-18 12:56:23 GMT <douglascrp> _this._fileName = this.files[0].name;

2017-08-18 12:56:25 GMT <douglascrp> _this._fileSize = this.files[0].size;

2017-08-18 12:56:27 GMT <douglascrp> }

2017-08-18 12:56:28 GMT <DarkStar1> fwu: I just pasted your code into an IDE there're several errors in it. I assume that was something stripped out by that pastebin service

2017-08-18 12:56:32 GMT <douglascrp> });

2017-08-18 12:56:54 GMT <douglascrp> this is how the addListener is used in this case

2017-08-18 12:56:59 GMT <fwu> I beleive so

2017-08-18 12:57:00 GMT <DarkStar1> the +s that join the url

2017-08-18 12:57:00 GMT <douglascrp> html-upload.js

2017-08-18 12:57:17 GMT <douglascrp> DarkStar1, what do you use for js editing?

2017-08-18 12:57:47 GMT <DarkStar1> douglascrp: Visual studio Code or IJ. Which ever one I'm using at the time :)

2017-08-18 12:58:38 GMT <douglascrp> DarkStar1, tks

2017-08-18 12:58:48 GMT <douglascrp> fwu, it seems the last parameter is not required

2017-08-18 12:58:56 GMT <douglascrp> the one you put this

2017-08-18 12:59:00 GMT <douglascrp> try without it

2017-08-18 12:59:40 GMT <fwu> I can try, but remember that the listener is working.

2017-08-18 12:59:54 GMT <fwu> just let me try first without the ","

2017-08-18 12:59:55 GMT <douglascrp> yes, but as you said, the scope seems not to be right

2017-08-18 13:00:04 GMT <fwu> yes, thats true´

2017-08-18 13:00:29 GMT <fwu> and there is _this

2017-08-18 13:00:36 GMT <douglascrp> if you debug your js code using the browser console, you can evaluate the "this" object inside the function, and make sure it is the TSG.... object

2017-08-18 13:00:49 GMT <douglascrp> or whatever it is when the code is ran

2017-08-18 13:04:21 GMT <fwu> douglascrp, how can I do that in the console? I can see the funtions from prototype, but how can I test "this" inside a specific fucntion using the console?

2017-08-18 13:04:22 GMT <douglascrp> DarkStar1, I liked the Visual Studio Code already

2017-08-18 13:04:25 GMT <douglascrp> now I see the erros

2017-08-18 13:04:49 GMT <douglascrp> fwu, open the jscode and them put a breakpoint inside the function body

2017-08-18 13:05:05 GMT <douglascrp> refresh the page and the debugger will let you check what "this" is

2017-08-18 13:05:21 GMT <douglascrp> in the developer tools you have the code tab

2017-08-18 13:05:38 GMT <douglascrp> on chrome, it is called "source"

2017-08-18 13:05:59 GMT <fwu> strange.. without the "," the callback is not called

2017-08-18 13:06:20 GMT <douglascrp> well, it seem you have sintax errors

2017-08-18 13:06:28 GMT <douglascrp> *seems

2017-08-18 13:07:03 GMT <douglascrp> Alfresco.logger.debug("Hidden field '" this.id "' as content retrieval failed"); is wrong

2017-08-18 13:07:13 GMT <douglascrp> there is no + operator to concatenate the string

2017-08-18 13:07:38 GMT <fwu> what string?

2017-08-18 13:07:47 GMT <fwu> it seems the "," should be there

2017-08-18 13:08:02 GMT <fwu> if you open the other js file from valueassistance, you have a final ","

2017-08-18 13:08:22 GMT <douglascrp> Alfresco.logger.debug("Hidden field '" + this.id + "' as content retrieval failed");

2017-08-18 13:08:23 GMT <fwu> dont know why, but you have, and without it, the code doesnt work

2017-08-18 13:08:32 GMT <douglascrp> really?

2017-08-18 13:08:37 GMT <fwu> yes

2017-08-18 13:08:40 GMT <fwu> strange

2017-08-18 13:08:42 GMT <douglascrp> but check the like I posted

2017-08-18 13:08:58 GMT <douglascrp> isn't it supposed to concatenate the strings in order to show in the debug log?

2017-08-18 13:09:08 GMT <douglascrp> there are others, like

2017-08-18 13:09:10 GMT <douglascrp> url: Alfresco.constants.PROXY_URI 'org/orderofthebee/picklist?includeBlankItem=' this.options.includeblankitem '&name=' this.options.picklistName '&codeColumn=' this.options.codeColumn '&descColumn=' this.options.descColumn '&filter=' this.options.descColumn ':' dependencyValue,

2017-08-18 13:09:32 GMT <douglascrp> well, I copied your code from the paste you made

2017-08-18 13:09:49 GMT <douglascrp> maybe the problem is that some parts of the code are missing, not sure why though

2017-08-18 13:10:00 GMT <douglascrp> can you make this project you are working on public?

2017-08-18 13:10:15 GMT <douglascrp> if you have a github repo, share the link and I can take a look

2017-08-18 13:10:37 GMT <fwu> douglascrp, that is the code that comes from valueassistance...and I do have "+" to concatenate

2017-08-18 13:10:49 GMT <fwu> if you dont see it, then pasteit is removing them

2017-08-18 13:11:03 GMT <douglascrp> ah, good to know

2017-08-18 13:11:06 GMT <fwu> heheh

2017-08-18 13:11:11 GMT <douglascrp> so it is confusing

2017-08-18 13:11:17 GMT <douglascrp> use the paste.bin

2017-08-18 13:11:19 GMT <fwu> yes :(

2017-08-18 13:11:22 GMT <douglascrp> it works better, I guess

2017-08-18 13:11:23 GMT <fwu> let me try then

2017-08-18 13:11:38 GMT <douglascrp> or the github project, as I said, if the project is going to be open

2017-08-18 13:15:20 GMT <fwu> https://pastebin.com/js36hTKv

2017-08-18 13:15:21 GMT <alfbot> Title: function objectsArrayComparator(a,b) { return a.label.localeCompare(b.label); - Pastebin.com (at pastebin.com)

2017-08-18 13:15:26 GMT <fwu> now its fine

2017-08-18 13:15:39 GMT <fwu> i will try to remove the last parameter

2017-08-18 13:17:24 GMT <fwu> douglascrp, remember that most of the code is from valueassistance. Im just changing what is needed to put it level agnostic

2017-08-18 13:21:22 GMT <fwu> this.loadValues is not a function

2017-08-18 13:21:29 GMT <fwu> after removing the last parameter

2017-08-18 13:22:25 GMT <fwu> so, I can call this.loadValues from the other functions, but not from my new function

2017-08-18 13:25:21 GMT <douglascrp> fwu, the only thing I can thing of is to remove the this parameter in this line of code

2017-08-18 13:25:22 GMT <douglascrp> YAHOO.util.Event.addListener(domElement, "change", this.parentListner,this);

2017-08-18 13:25:27 GMT <douglascrp> to YAHOO.util.Event.addListener(domElement, "change", this.parentListner);

2017-08-18 13:25:36 GMT <douglascrp> line 209

2017-08-18 13:25:55 GMT <fwu> I removed it

2017-08-18 13:25:57 GMT <fwu> same error

2017-08-18 13:25:59 GMT <douglascrp> ah, ok

2017-08-18 13:26:09 GMT <fwu> looking to the js file while running

2017-08-18 13:26:13 GMT <fwu> this is the select object

2017-08-18 13:26:20 GMT <fwu> that is why I cant call the function

2017-08-18 13:26:58 GMT <fwu> the select object doesnt have the extended stuff

2017-08-18 13:27:12 GMT <fwu> I cant call it using TSG.function either

2017-08-18 13:27:25 GMT <fwu> maybe making TSG.prototype..?

2017-08-18 13:55:34 GMT <yreg_> resplin: regarding https://issues.alfresco.com/jira/browse/MNT-17527 if I implement that (as described in 4) and then contribute a patch, what are the chance for that patch being accepted ?

2017-08-18 14:06:40 GMT <yreg_> AFaust: can you enlighten me on how one can lookup all documents containing a space in a specific metadata ?

2017-08-18 14:07:19 GMT <AFaust> yreg: You seem to have a fun task for end of the week. TGIF, am I right?

2017-08-18 14:07:38 GMT <AFaust> Well - your best bet is a TMQ using CMIS and LIKE

2017-08-18 14:07:57 GMT <AFaust> It may be quite expensive on the DB, but it will work

2017-08-18 14:08:29 GMT <yreg_> Thanks

2017-08-18 14:08:33 GMT <AFaust> <field> LIKE '% %' OR <field> LIKE ' %' OR <field> LIKE '% '

2017-08-18 14:08:36 GMT <yreg_> will give it a try

2017-08-18 14:08:38 GMT <AFaust> ^^ should do the trick

2017-08-18 14:08:56 GMT <yreg_> I was hoping for some FTS predicate I was not aware of

2017-08-18 14:09:47 GMT <AFaust> Unlikely, since whitespaces are stripped in index and FTS is designed for index-based queries

2017-08-18 14:10:01 GMT <yreg_> alright, thanks

2017-08-18 14:10:07 GMT <AFaust> I mean, "stripped" for most fields except those untokenised ones

2017-08-18 14:12:49 GMT <yreg_> got that, do not worry about being precise to the fines grain :D

2017-08-18 14:17:22 GMT <resplin> yreg_: I saw the discussion about that earlier. I need to ask our new security director what he thinks.

2017-08-18 14:19:47 GMT <yreg_> in any case it DOES NOT make sense to consider links from previews as security threads while not doing the same with links in wikis, threads, descriptions, ....

2017-08-18 14:21:42 GMT <yreg_> AFaust: *_* the like query is working !!! Thanks !!!

2017-08-18 14:23:24 GMT <resplin> yreg_: That's an interesting point.

2017-08-18 14:24:57 GMT <resplin> I need to link together the various related issues, and then our two new security experts will look it over.

2017-08-18 14:43:22 GMT <resplin> yreg_: I think we are more interested in having this feature than we were before.

2017-08-18 14:44:00 GMT <resplin> I'll provisionally add it to the Share backlog. The security director will think about it more when he is back from vacation.

2017-08-18 14:44:39 GMT <resplin> We are putting together a list of Share fixes to tackle, but it will probably be a couple of months before we get there. Depending on what the security team says, I expect we would be very interested in your contribution.

2017-08-18 14:44:41 GMT <MorganP> yreg_: should not just " like '% %' " (without the OR) be working too? Since % should match any, it should also match no chars no?

2017-08-18 15:15:14 GMT <AFaust> Ehmm - Am I blind and just missing a piece of info, or are CMIS queries never processing their results via the regular AfterInvocation-filtering functionality?

2017-08-18 15:16:16 GMT <AFaust> I can't find the place / layer where that should occur - from the CMISConnector it is a straight call to the low-level SolrOpenCMISQueryServiceImpl with only a single subsystem-proxy (no interceptors) on the way

2017-08-18 15:21:47 GMT <AFaust> Ahh - the DB query engine has its own proxy + interceptor on a low level... I guess only because the CMISConnector is cirumventing the regular SearchService API and going straight to the internal query language beans...

2017-08-18 19:05:02 GMT *** jpotts1 is now known as jpotts

End of Daily Log

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