Daily Log for #alfresco IRC Channel

Alfresco discussion and collaboration. Stick around a few hours after asking a question.

Official support for Enterprise subscribers: support.alfresco.com.

Joining the Channel:

Join in the conversation by getting an IRC client and connecting to #alfresco at Freenode. Our you can use the IRC web chat.

More information about the channel is in the wiki.

Getting Help

More help is available in this list of resources.

Daily Log for #alfresco

2017-06-28 01:21:40 GMT <qwebirc99407> hello, I would like to have some help with alfresco community edition

2017-06-28 01:23:07 GMT <qwebirc99407> is there anyone here?

2017-06-28 04:01:56 GMT <blastis> qwebirc well you kind of quit way too soon.

2017-06-28 04:02:29 GMT <xkahn> 6 minutes is more than anyone can stand, of course.

2017-06-28 04:02:34 GMT <blastis> you gave it an all of 6 minutes and some change

2017-06-28 04:02:40 GMT <blastis> word, xkahn

2017-06-28 04:02:51 GMT <blastis> and I work in support. I may know ~something~

2017-06-28 04:03:09 GMT <xkahn> blastis: dangerous thing to admit to. :)

2017-06-28 04:03:12 GMT <blastis> back in my day .......

2017-06-28 04:03:23 GMT <blastis> xkahn, anonymously, it's not an issue ;-)

2017-06-28 04:03:31 GMT <xkahn> Can I add a property to an existing aspect without reindexing solr?

2017-06-28 04:03:35 GMT <xkahn> :)

2017-06-28 04:03:43 GMT <blastis> umm .. probably not ;)

2017-06-28 04:03:55 GMT <xkahn> yeah. So it seems.

2017-06-28 04:04:02 GMT <blastis> we actually had 2 cases today that asked pretty much the same thing

2017-06-28 04:04:08 GMT <xkahn> One of them is mine

2017-06-28 04:04:13 GMT <blastis> ok

2017-06-28 04:04:33 GMT <xkahn> It hasn't been answered yet though

2017-06-28 04:04:40 GMT <blastis> since it's what's called a non-incremental "change", you'll need to reindex.

2017-06-28 04:05:02 GMT <xkahn> blastis: Is there a list of changes that are safe?

2017-06-28 04:05:18 GMT <blastis> xkahn, well to be fair we work on average about 20 cases at a time. and yeah all of them are "hard" cases

2017-06-28 04:05:32 GMT <blastis> you mean an empirical list? hmm .... of course not.

2017-06-28 04:05:42 GMT <blastis> we dont compile lists of things you can or cannot do.

2017-06-28 04:05:47 GMT <xkahn> Oh, I'm not upset about it. It's my case as in it's my issue.

2017-06-28 04:06:02 GMT <xkahn> But my coworker put the case in.

2017-06-28 04:06:13 GMT <xkahn> I knew the answer already since I can see it didn't work.

2017-06-28 04:06:15 GMT <blastis> xkahn, since you're in this chan, i figure you're waaaaaaaaay ahead of the curve my friend. so please no worries.

2017-06-28 04:06:37 GMT <xkahn> heh. :)

2017-06-28 04:07:05 GMT <blastis> hmm if you change most things in a model (being honest here), you'll need to reindex.

2017-06-28 04:07:15 GMT <xkahn> Well, you can add a new aspect.

2017-06-28 04:07:24 GMT <blastis> yes usually

2017-06-28 04:07:24 GMT <xkahn> And you can move a property from one aspect to another.

2017-06-28 04:07:38 GMT <xkahn> Although you need to make sure the documents have both aspects.

2017-06-28 04:07:40 GMT <blastis> but adding a property causes grief ;)

2017-06-28 04:07:53 GMT <xkahn> Yes! We didn't expect that!

2017-06-28 04:08:00 GMT <blastis> i know it's weird.

2017-06-28 04:08:06 GMT <xkahn> We knew deleting a property would cause an issue.

2017-06-28 04:08:11 GMT <blastis> right

2017-06-28 04:08:22 GMT <xkahn> Oh! And adding an item to a constraints list is okay

2017-06-28 04:08:33 GMT <blastis> modifying a property *should* be ok

2017-06-28 04:08:34 GMT <blastis> bingo

2017-06-28 04:08:47 GMT <blastis> xkahn, here's what you do...

2017-06-28 04:09:22 GMT <blastis> xkahn, request an ENH JIRA that asks for a list of stuff you can do with a model that won't require a full reindex ;)

2017-06-28 04:09:32 GMT <blastis> don't tell anyone I told you that ;)

2017-06-28 04:09:42 GMT <blastis> seriously, that would be a great JIRA

2017-06-28 04:09:49 GMT <xkahn> Oooo.. Okay. I'll do that.

2017-06-28 04:10:00 GMT <blastis> and no one would get upset over that one most likely

2017-06-28 04:10:40 GMT <blastis> if i may ask, xkahn, did anyone pick up that case?

2017-06-28 04:11:01 GMT <xkahn> blastis: No, not yet.

2017-06-28 04:11:03 GMT <blastis> tbh, I usually handle more infrastructure cases than dev or repository-related ones

2017-06-28 04:11:10 GMT <blastis> ok

2017-06-28 04:12:57 GMT <blastis> i like that question though... we can handle very specific dev questions but reviewing code, we're not supposed to do. that's for the consultants really.

2017-06-28 04:13:13 GMT <blastis> but like i say, if it's a very specific question, we can almost always help with that.

2017-06-28 04:13:50 GMT <blastis> trust me, I'm no manager ... our support is top freaking notch.

2017-06-28 04:13:51 GMT <xkahn> I have a fix already

2017-06-28 04:13:55 GMT <blastis> cool ok

2017-06-28 04:14:03 GMT <xkahn> Alfresco support is the best I've ever seen.

2017-06-28 04:14:05 GMT <xkahn> Honestly.

2017-06-28 04:14:11 GMT <xkahn> And I used to run a small support dept.

2017-06-28 04:14:19 GMT <blastis> ;-) appreciate the kind words my friend.

2017-06-28 04:14:25 GMT <xkahn> I'll put my patch in the ticket.

2017-06-28 04:14:34 GMT <blastis> it's a very hard endeavor.

2017-06-28 04:14:38 GMT <blastis> oh awesome

2017-06-28 04:14:41 GMT <blastis> we love those :-)

2017-06-28 04:15:29 GMT <blastis> i've only had about 2-3 guys who show up with patches ... have been working at 'Fresco for about 5+ years

2017-06-28 04:16:03 GMT <blastis> if someone can open a case and *show* us our errors, we eat that stuff up ;-)

2017-06-28 04:16:15 GMT <blastis> and show a solution ;)

2017-06-28 04:16:27 GMT <blastis> that's open source bread and butter :-D

2017-06-28 04:16:40 GMT <xkahn> Good.

2017-06-28 04:17:01 GMT <blastis> otherwise, you're bull-shitting everyone :-)

2017-06-28 04:17:09 GMT <xkahn> Actually, the real issue might be that there aren't any reports of problems in the logs.

2017-06-28 04:17:12 GMT <blastis> oh crud.. am i allowed to say that?

2017-06-28 04:17:13 GMT <xkahn> in this case.

2017-06-28 04:17:19 GMT <blastis> right

2017-06-28 04:17:19 GMT <xkahn> :)

2017-06-28 04:17:32 GMT <xkahn> We once made a property from single to multiple

2017-06-28 04:17:34 GMT <blastis> they're probably won't for something as you described.

2017-06-28 04:17:38 GMT <xkahn> And solr screamed in the logs

2017-06-28 04:17:38 GMT <blastis> ok

2017-06-28 04:17:46 GMT <xkahn> until we did a reindex

2017-06-28 04:18:25 GMT <blastis> yeah. solr and repo together are very much like that. was the solr log entry accurate to the problem that was happening?

2017-06-28 04:18:28 GMT <xkahn> It accepted this without comment, but then would "lose" a document if the property got set on it.

2017-06-28 04:18:39 GMT <blastis> hmm that's strange.

2017-06-28 04:18:41 GMT <xkahn> No, nothing in the logs.

2017-06-28 04:18:56 GMT <blastis> you say "screamed"

2017-06-28 04:19:00 GMT <xkahn> But the solr dashboard showed nodes in error.

2017-06-28 04:19:03 GMT <blastis> how did it scream if i may ask?

2017-06-28 04:19:05 GMT <blastis> ah ok

2017-06-28 04:19:10 GMT <xkahn> Well, it spammed the logs

2017-06-28 04:19:25 GMT <xkahn> With errors about the model diff being bad.

2017-06-28 04:19:28 GMT <blastis> any entry in particular from the spam?

2017-06-28 04:19:32 GMT <blastis> oh yeah

2017-06-28 04:19:48 GMT <blastis> the model diff error is not nearly as descriptive as it should be

2017-06-28 04:20:05 GMT <xkahn> Well, we got the idea pretty quick.

2017-06-28 04:20:06 GMT <blastis> keep in mind, that's our implementation and not Solr (inc.)'s

2017-06-28 04:20:09 GMT <blastis> ok

2017-06-28 04:20:18 GMT <xkahn> We didn't notice this one until today because the logs were quiet.

2017-06-28 04:20:21 GMT <xkahn> Yeah.

2017-06-28 04:20:40 GMT <blastis> hmm sounds like an interesting problem.

2017-06-28 04:20:41 GMT <xkahn> Users started filing tickets that their documents were disappearing.

2017-06-28 04:21:02 GMT <blastis> fair enough (though they're almost certainly not) but i can dig it.

2017-06-28 04:21:49 GMT <xkahn> Yep. It's been a fun day. :)

2017-06-28 06:40:58 GMT <qwebirc60224> i need you to help me now

2017-06-28 06:41:31 GMT <qwebirc60224> could you help me ?

2017-06-28 07:21:22 GMT <digcat> hi qwebirc60224 post your question/problem to the group, be aware there are many volunteers on this channel, operating on many timezones, so your question/problem may get some help in time

2017-06-28 07:30:45 GMT <yreg> Morning digcat

2017-06-28 07:30:53 GMT <yreg> he is long gone when I came

2017-06-28 07:31:11 GMT <digcat> yeah morning yreg, i realised that, hopefully he gets the message, :)

2017-06-28 07:31:48 GMT <digcat> its a shame the channel cant explain this to new members when they join

2017-06-28 07:32:21 GMT <yreg> digcat, it's on the channel topic

2017-06-28 07:32:31 GMT <yreg> I do not know what more we can do

2017-06-28 07:33:22 GMT <digcat> ahhh, didnt realise

2017-06-28 07:33:31 GMT <digcat> then yes, not a lot

2017-06-28 08:09:27 GMT <alfbot> hi-ko_: Sent 2 weeks, 5 days, 12 hours, and 18 minutes ago: <xkahn> There is already a built in Office Document -> HTML transformation. I guess I don't know what it will do with embedded images

2017-06-28 11:14:37 GMT <mtsiak> https://www.alfresco.com/alfresco-community-download is the latest release.

2017-06-28 11:14:41 GMT <alfbot> Title: Download Alfresco Community ECM Now | Alfresco (at www.alfresco.com)

2017-06-28 11:14:54 GMT <mtsiak> which release is it ?

2017-06-28 11:15:22 GMT <mtsiak> where are the bin files of previous releases?

2017-06-28 11:15:35 GMT <mtsiak> sorry for those questions.. realy..

2017-06-28 11:16:04 GMT <mtsiak> where starting our upgrade task

2017-06-28 11:16:47 GMT <mtsiak> our current version is 5.0.d

2017-06-28 11:17:02 GMT <mtsiak> could we go at once at 5.2 ?

2017-06-28 11:17:38 GMT <yreg> mtsiak, http://docs.alfresco.com/5.2/concepts/upgrade-path.html

2017-06-28 11:17:40 GMT <alfbot> Title: Alfresco Content Services upgrade paths | Alfresco Documentation (at docs.alfresco.com)

2017-06-28 11:18:20 GMT <mtsiak> ok, there is a direct path. so we can go to 5.2 at once.

2017-06-28 11:19:02 GMT <mtsiak> although the image does not specify the community edition version

2017-06-28 11:19:28 GMT <yreg> should be the same

2017-06-28 11:19:58 GMT <mtsiak> so i guess 201704 is the 5.2 ?

2017-06-28 11:25:11 GMT <AFaust> mtsiak: 201611 to 201704 (GA) are all 5.2

2017-06-28 11:26:51 GMT <nikitha> hi alfbot

2017-06-28 11:26:54 GMT <AFaust> Though - as was previously the case - different iterations of 5.2 (e.g. 5.2.a, 5.2.b). Since components can now have iterations that are independent of other modules, there is no global technical version label for a particular release, which is why date-stamps are now used

2017-06-28 11:27:47 GMT <nikitha> when im calling third party api through alfresco.util.json.post im getting the alfresco is not defined exception can any help me

2017-06-28 11:27:47 GMT <AFaust> nikitha: alfbot is a bot and does not respond at all to a kind word

2017-06-28 11:28:32 GMT <nikitha> hi all

2017-06-28 11:28:57 GMT <nikitha> hi Loftux

2017-06-28 11:29:00 GMT <nikitha> when im calling third party api through alfresco.util.json.post im getting the alfresco is not defined exception can any help me

2017-06-28 11:30:39 GMT <nikitha> hi afaust

2017-06-28 11:31:06 GMT <nikitha> when im calling third party api through alfresco.util.json.post im getting the alfresco is not defined exception please help me wt im wrong

2017-06-28 11:31:23 GMT <nikitha> i imported alfresco-util.js also

2017-06-28 11:32:51 GMT <AFaust> Are you working on client-side JavaScript or server-side web script JavaScript?

2017-06-28 11:33:41 GMT <AFaust> I assume server-side web script JavaScript because alfresco-utils.js is only defined there

2017-06-28 11:34:18 GMT <AFaust> This file does not define the API alfresco.util.json.post in any way though, so of course that is undefined...

2017-06-28 11:34:25 GMT <mtsiak> AFaust, yreg , thank

2017-06-28 11:35:07 GMT <nikitha> im working on client side javascript

2017-06-28 11:35:25 GMT <AFaust> Ok - then are you working inside Share or using the ADF?

2017-06-28 11:35:46 GMT <AFaust> You have to provide some context to your questions or people will just have to guess

2017-06-28 11:36:47 GMT <nikitha> im creating sample js file in repository-datadictionary-scripts

2017-06-28 11:37:01 GMT <AFaust> Sorry, that is telling me nothing...

2017-06-28 11:37:48 GMT <AFaust> Are you using ADF and/or the "Alfresco Unified JavaScript API" (https://github.com/Alfresco/alfresco-js-api)

2017-06-28 11:37:49 GMT <alfbot> Title: GitHub - Alfresco/alfresco-js-api: This project provides a JavaScript client API into the Alfresco REST API and Activiti REST API. (at github.com)

2017-06-28 11:38:42 GMT <nikitha> alfresco unified javascript api

2017-06-28 11:39:01 GMT <AFaust> Ok - then I can't help you as I am not using that at all...

2017-06-28 11:39:07 GMT <AFaust> Maybe somebody else...

2017-06-28 11:39:43 GMT <AFaust> fcorti: Do you know any ADF / Unified JS API users in this channel?

2017-06-28 11:40:00 GMT <nikitha> no

2017-06-28 11:42:06 GMT <nikitha> i want to call my custom rest api in javascript file how can i acheive this on eby using alfresco.util.json.post method

2017-06-28 11:42:24 GMT <digcat> hi nikitha prob best to head here https://gitter.im/Alfresco/alfresco-ng2-components

2017-06-28 11:42:25 GMT <alfbot> Title: Alfresco/alfresco-ng2-components - Gitter (at gitter.im)

2017-06-28 11:44:18 GMT <nikitha> im importing the alfresco-util.js

2017-06-28 11:45:03 GMT <nikitha> by passing file name and space store id also still it's not recognizing alfresco is not defined

2017-06-28 11:48:51 GMT <nikitha> alfbot can u please provide that solution na

2017-06-28 11:48:51 GMT <alfbot> nikitha: Error: "can" is not a valid command.

2017-06-28 11:49:11 GMT <nikitha> alfbot please provide that solution na

2017-06-28 11:49:11 GMT <alfbot> nikitha: Error: "please" is not a valid command.

2017-06-28 11:49:24 GMT <nikitha> alfbot provide that solution na

2017-06-28 11:49:24 GMT <alfbot> nikitha: Error: "provide" is not a valid command.

2017-06-28 11:51:41 GMT <nikitha> alfbot how can i call the custom rest api to alfresco.util.json.post

2017-06-28 11:51:41 GMT <alfbot> nikitha: Error: "how" is not a valid command.

2017-06-28 11:51:53 GMT <nikitha> how can i call the custom rest api to alfresco.util.json.post

2017-06-28 11:53:14 GMT <AFaust> nikitha: alfbot is not a human - it is a bot. It cannot understand what you are asking of it...

2017-06-28 11:53:30 GMT <mrks_js> not yet ..

2017-06-28 11:53:38 GMT <MorganP> :D

2017-06-28 11:53:46 GMT <AFaust> Don't tell me you are working on some AI extension to alfbot?

2017-06-28 11:54:13 GMT <nikitha> I ok

2017-06-28 11:54:24 GMT <AFaust> Hmm... wondering if there is already an alexa bot for IRC

2017-06-28 11:54:54 GMT <nikitha> afaust im sending my sample snippet of code u can easily understand

2017-06-28 11:55:03 GMT <AFaust> i.e. hooked up to someones personal Echo device...

2017-06-28 11:55:05 GMT <MorganP> a real IA i don't think so but I already saw some bots answering simple questions

2017-06-28 11:55:14 GMT <MorganP> on irc

2017-06-28 11:55:30 GMT <AFaust> nikitha: I am not working with either ADF or Unified JS API. I will very likely not be able to help you either...

2017-06-28 11:56:41 GMT <nikitha> Alfresco.util.Ajax.jsonPost( { url: Alfresco.constants.PROXY_URI + "http://localhost:8080/alfresco/service/sample/pdfImageWaterMark", successCallback: { fn: function(res){ logger.log("success"); }, scope: this },

2017-06-28 12:00:23 GMT <AFaust> nikitha: That is not using the Unified JS API... that is the default Share JavaScript API.

2017-06-28 12:00:43 GMT <AFaust> The whole point of me asking you earlier was to properly identify what you are trying to do...

2017-06-28 12:01:32 GMT <AFaust> You don't need to import any JavaScript file to use Alfresco.util.Ajax.jsonPost() - the file that provides this is included by default in all the Share pages.

2017-06-28 12:02:04 GMT <AFaust> Only if you are trying to use this API outside of an Alfresco Share context would you have problems. But then again, that API is not meant to be used outside of Alfresco Share.

2017-06-28 12:12:38 GMT <nikitha> alfresco default login api also not calling by using alfresco.util.ajax.get();

2017-06-28 12:18:27 GMT <nikitha> for recognizing this script code where we need to place share the location details

2017-06-28 12:25:19 GMT <fcorti> Hi nikitha, AFaust and digicat

2017-06-28 12:25:42 GMT <fcorti> If you want to ask to the ADF developers you can meet them here:

2017-06-28 12:26:31 GMT <fcorti> https://gitter.im/Alfresco/alfresco-ng2-components

2017-06-28 12:26:32 GMT <alfbot> Title: Alfresco/alfresco-ng2-components - Gitter (at gitter.im)

2017-06-28 12:28:05 GMT <AFaust> fcorti: In the meantime we have established that it is actually related to API in Share...

2017-06-28 12:28:25 GMT <fcorti> AFaust ah...

2017-06-28 12:30:49 GMT <nikitha> hi digicat

2017-06-28 12:35:15 GMT <nikitha> how to call alfresco default login api also not calling by using alfresco.util.ajax.get(); im getting alfresco is not defined exception

2017-06-28 12:38:06 GMT <tushar> has anyone here tried an addon for folder search

2017-06-28 12:38:08 GMT <tushar> http://www.contezza.nl/store/p19/Alfresco_Share_Folder_Search.html

2017-06-28 12:38:09 GMT <alfbot> Title: Alfresco Share Folder Search (at www.contezza.nl)

2017-06-28 13:10:05 GMT <mtsiak> In a workflow iam using the expression: ${reviewAssignee.properties.userName}

2017-06-28 13:10:46 GMT <mtsiak> I have created a unit test, mocking services: when... then...

2017-06-28 13:10:57 GMT <mtsiak> But i get PropertyNotFoundException: Could not find property properties in class org.alfresco.service.cmr.repository.NodeRef

2017-06-28 13:11:30 GMT <mtsiak> the properties are returned by the nodeservice

2017-06-28 13:11:35 GMT <mtsiak> when(nodeService.getProperties(adminPersonNode)).thenReturn(props);

2017-06-28 13:12:02 GMT <mtsiak> not the noderef (noderef class do not have properties variable)

2017-06-28 13:13:04 GMT <mtsiak> has anybody tested a workflow with activiti:assignee="${reviewAssignee.properties.userName}" being set?

2017-06-28 13:16:50 GMT <yreg> mtsiak, you need to use a ScriptNode or an ActivitiScriptNode not a NodeRef there

2017-06-28 13:20:03 GMT <AFaust> mtsiak: Normally, when you use the Alfresco Share UI and default integration, a NodeRef should be automatically converted to an ActivitiScriptNode - but in a test setup this may be lacking...

2017-06-28 13:20:20 GMT <AFaust> "default integration" => default APIs on the Repository-tier

2017-06-28 13:24:36 GMT <mtsiak> e.g. ScriptNode adminScriptNode = new ScriptNode(personService.getPerson("admin"), serviceRegistry);

2017-06-28 13:25:31 GMT <fwu> hi all!

2017-06-28 13:27:23 GMT <mtsiak> ok, did alse ActivitiScriptNode adminActivitiScriptNode = new ActivitiScriptNode(personService.getPerson("admin"), serviceRegistry);

2017-06-28 13:27:46 GMT <mtsiak> and now i am getting: org.activiti.engine.ActivitiException: Couldn't serialize value '[Node no longer exists: workspace://admin/]' in variable 'bpm_assignees'

2017-06-28 13:30:51 GMT <mtsiak> (when the workflow starts, the user picks a list of users - assignees, and then a user review task is been created for each selected user (multiInstanceLoopCharacteristics) ) The workflow works, we just need to start creating tests.

End of Daily Log

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