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

2016-12-29 11:20:05 GMT <douglascrp> morning guys

2016-12-29 11:20:07 GMT <douglascrp> angelborroy, hey

2016-12-29 11:20:15 GMT <douglascrp> I'm preparing the sample project

2016-12-29 11:20:16 GMT <angelborroy> morning!

2016-12-29 11:20:39 GMT <angelborroy> ok, I’m curious about that back-porting

2016-12-29 11:20:43 GMT <douglascrp> I'm testing it already, and then i'm going to share it to you

2016-12-29 11:20:45 GMT <douglascrp> ok

2016-12-29 11:20:57 GMT <douglascrp> *with you

2016-12-29 11:21:09 GMT <angelborroy> I thought Alfresco was not modifying node lifecycle since years ago

2016-12-29 11:21:22 GMT <douglascrp> no, it's not that

2016-12-29 11:21:25 GMT <douglascrp> you will see :D

2016-12-29 11:21:59 GMT <douglascrp> it's weird, because when you select a new file to upload, it shows the right mimetype for the new file

2016-12-29 11:22:33 GMT <angelborroy> mimetype is working fine

2016-12-29 11:22:36 GMT <douglascrp> but when the upload webscript controller receives it, the mime type is simply ignored, and because of that, mimetype is kept unchanged

2016-12-29 11:22:45 GMT <douglascrp> not for me

2016-12-29 11:22:49 GMT <angelborroy> ah, ok

2016-12-29 11:23:00 GMT <angelborroy> so no mimetype changing is working for 5.2

2016-12-29 11:23:19 GMT <douglascrp> I guess so, that would explain why backporting the code made it work

2016-12-29 11:23:40 GMT <douglascrp> I haven't had the chance to play with 5.2 yet

2016-12-29 11:23:46 GMT <angelborroy> let me see

2016-12-29 11:23:54 GMT <angelborroy> I have a server with 5.2

2016-12-29 11:23:58 GMT <douglascrp> ah, cool

2016-12-29 11:27:58 GMT <douglascrp> angelborroy, the sample project is ok

2016-12-29 11:28:05 GMT <douglascrp> I'm going to share it with you using github, ok?

2016-12-29 11:28:09 GMT <angelborroy> ok

2016-12-29 11:42:52 GMT <douglascrp> angelborroy, https://github.com/douglascrp/mimetype-change-test

2016-12-29 11:42:53 GMT <alfbot> Title: GitHub - douglascrp/mimetype-change-test (at github.com)

2016-12-29 11:43:23 GMT <angelborroy> are you using JARs!!!

2016-12-29 11:43:28 GMT <angelborroy> puaj!

2016-12-29 11:43:51 GMT <douglascrp> naaa

2016-12-29 11:43:53 GMT <douglascrp> only for this test

2016-12-29 11:43:56 GMT <douglascrp> I still use amps here

2016-12-29 11:44:15 GMT <douglascrp> I used the all in one archetype, but I only noticed the jars after my tests

2016-12-29 11:44:16 GMT <angelborroy> so, basically upload.post.js is broken in 5.2, right?

2016-12-29 11:44:20 GMT <douglascrp> please, ignore that "detail"

2016-12-29 11:44:27 GMT <douglascrp> no, it's broken on 5.1

2016-12-29 11:44:33 GMT <angelborroy> wow!

2016-12-29 11:44:39 GMT <douglascrp> but only that is not enough without your behaviour

2016-12-29 11:44:45 GMT <douglascrp> it's a combination

2016-12-29 11:44:58 GMT <douglascrp> when you look at the upload.js, search for DGCloud

2016-12-29 11:45:04 GMT <douglascrp> those are the parts I had to change

2016-12-29 11:45:49 GMT <douglascrp> and in order to your code to work with this, I had to comment the line 289

2016-12-29 11:46:04 GMT <douglascrp> if that's not commented, than the name of the document is fully replaced

2016-12-29 11:46:11 GMT <douglascrp> and that is not what I wanted...

2016-12-29 11:46:20 GMT <douglascrp> in my case, I want it to be like

2016-12-29 11:46:23 GMT <douglascrp> document.docx

2016-12-29 11:46:28 GMT <douglascrp> document.pdf

2016-12-29 11:46:31 GMT <douglascrp> document.jpg

2016-12-29 11:46:37 GMT <angelborroy> yep

2016-12-29 11:46:38 GMT <douglascrp> only the extension should change

2016-12-29 11:46:49 GMT <angelborroy> i was keeping original extension to trace the transformation

2016-12-29 11:46:51 GMT <douglascrp> if you let the rename uncommented, that it can become

2016-12-29 11:46:53 GMT <angelborroy> it should be optional

2016-12-29 11:47:16 GMT <douglascrp> document.docx -> anyothername.pdf -> andanotherdifferentname.jpg

2016-12-29 11:47:28 GMT <douglascrp> I don't want that at all (actually, my customer doesn't want that)

2016-12-29 11:47:37 GMT <douglascrp> please, test it when you can and let me know what you think

2016-12-29 11:47:41 GMT <angelborroy> I can confirm that upload.post.js is broken in 5.1

2016-12-29 11:47:58 GMT <douglascrp> ohhh, nice

2016-12-29 11:48:01 GMT <douglascrp> I'm not crazy :D

2016-12-29 11:48:39 GMT <angelborroy> let me find the commit and let’s create a new issue

2016-12-29 11:48:51 GMT <douglascrp> ok, cool

2016-12-29 11:48:57 GMT <douglascrp> actually, there is an issue already

2016-12-29 11:49:11 GMT <douglascrp> https://issues.alfresco.com/jira/browse/MNT-16328

2016-12-29 11:49:18 GMT <douglascrp> for 5.0

2016-12-29 11:49:36 GMT <angelborroy> wow

2016-12-29 11:49:40 GMT <angelborroy> unresolved!

2016-12-29 11:49:55 GMT <douglascrp> angelborroy, I don't know about you,but I cannot post anything there, even comments

2016-12-29 11:50:00 GMT <douglascrp> so, I don't know how to do so

2016-12-29 11:50:12 GMT <douglascrp> maybe using the community or our main weapon... :D

2016-12-29 11:50:14 GMT <douglascrp> twitter

2016-12-29 11:50:35 GMT <angelborroy> you can create a new jira user, right?

2016-12-29 11:50:40 GMT <douglascrp> yes, I can

2016-12-29 11:50:45 GMT <angelborroy> I’m voting for this issue

2016-12-29 11:50:50 GMT <angelborroy> at least we are now 3

2016-12-29 11:50:54 GMT <douglascrp> cool... I did that before

2016-12-29 11:51:10 GMT <douglascrp> well, they are not going to fix that for 5.0 anyway

2016-12-29 11:51:13 GMT <angelborroy> we cannot commnet because it is "internal"

2016-12-29 11:51:35 GMT <angelborroy> It’s classified incorrectly as “Share application"

2016-12-29 11:52:06 GMT <douglascrp> and what do you think about the changes I made? do you think it's ok?

2016-12-29 11:52:36 GMT <angelborroy> Let me see

2016-12-29 11:52:51 GMT <fwu> hi all!

2016-12-29 11:53:05 GMT <douglascrp> fwu, heya

2016-12-29 11:55:45 GMT <douglascrp> angelborroy, we tested it a lot yesterday, and we couldn't find any reason not to use it

2016-12-29 11:55:47 GMT <douglascrp> it seems safe

2016-12-29 11:55:48 GMT <fwu> douglascrp, viva!

2016-12-29 11:55:58 GMT <angelborroy> IMO, I’ll remove change at line 284

2016-12-29 11:56:18 GMT <douglascrp> angelborroy, but in that case, the full name is replaced

2016-12-29 11:56:23 GMT <angelborroy> I think change at line 82 it’s enough

2016-12-29 11:56:34 GMT <douglascrp> it's not for the case I have

2016-12-29 11:56:45 GMT <douglascrp> as I said, the name of the document has to be kept untouched

2016-12-29 11:56:54 GMT <douglascrp> only the extension AND mimetype has to be changed

2016-12-29 11:56:55 GMT <angelborroy> you can adjust that in your behaviour

2016-12-29 11:57:09 GMT <angelborroy> because you are receiving the “after” name

2016-12-29 11:57:12 GMT <douglascrp> I tried it, but there is no way to get the old and the new name in a single

2016-12-29 11:57:18 GMT <douglascrp> execution

2016-12-29 11:57:25 GMT <angelborroy> really?

2016-12-29 11:57:28 GMT <douglascrp> yep

2016-12-29 11:57:33 GMT <douglascrp> I played a lot with your code

2016-12-29 11:57:47 GMT <douglascrp> tried to detect the mimetype change, the name change

2016-12-29 11:57:59 GMT <douglascrp> all I get it the current value for both content and properties

2016-12-29 11:58:09 GMT <angelborroy> So the problem is wider than expected

2016-12-29 11:58:11 GMT <douglascrp> so, before is null and after has the new value

2016-12-29 11:58:16 GMT <angelborroy> wow

2016-12-29 11:58:19 GMT <douglascrp> or after and before are equal

2016-12-29 11:58:20 GMT <douglascrp> always

2016-12-29 11:58:21 GMT <angelborroy> this is a serious problem

2016-12-29 11:58:33 GMT <douglascrp> I even tried to change the trigger to commit instead of every event

2016-12-29 11:58:36 GMT <douglascrp> nothing helped

2016-12-29 11:58:43 GMT <douglascrp> so, that was the only "solution" I found

2016-12-29 11:58:53 GMT <angelborroy> your patch is fine

2016-12-29 11:59:00 GMT <angelborroy> but the “real” problem must be reported

2016-12-29 11:59:05 GMT <angelborroy> some serious has been broken

2016-12-29 11:59:16 GMT <douglascrp> please, test it with and without the commented line and you see what I'm saying

2016-12-29 11:59:33 GMT <angelborroy> I believe you ;-)

2016-12-29 11:59:47 GMT <douglascrp> yesterday was a bug hunting day

2016-12-29 12:00:17 GMT <angelborroy> can you create a new issue for that?

2016-12-29 12:00:22 GMT <douglascrp> yes, I can

2016-12-29 12:00:29 GMT <douglascrp> tks for your tests and opinion

2016-12-29 12:00:31 GMT <angelborroy> I’ll vote also

2016-12-29 12:00:39 GMT <douglascrp> ok, I'll let you know

2016-12-29 12:00:41 GMT <angelborroy> thanks to you

2016-12-29 12:01:05 GMT <angelborroy> it’s always nice to learn from you :D

2016-12-29 12:01:22 GMT <douglascrp> we all learn from each other

2016-12-29 12:02:00 GMT <douglascrp> ah, nice

2016-12-29 12:02:14 GMT <douglascrp> I'm using the internet from the mechanics while my car is fixed

2016-12-29 12:02:33 GMT <douglascrp> and it's not working for anything other than irc :|

2016-12-29 12:02:38 GMT <angelborroy> hehe

2016-12-29 12:05:11 GMT <angelborroy> do you want me to create it for you?

2016-12-29 12:05:20 GMT <douglascrp> no need

2016-12-29 12:05:22 GMT <douglascrp> it's working again

2016-12-29 12:05:31 GMT <douglascrp> it was my ticket that expired

2016-12-29 12:05:35 GMT <douglascrp> I'm creating it already

2016-12-29 12:05:44 GMT <angelborroy> you can include a sample project with the behaviour

2016-12-29 12:05:55 GMT <douglascrp> yes, I'm going to share this one

2016-12-29 12:05:57 GMT <angelborroy> just to make easier to find the problem

2016-12-29 12:06:13 GMT <douglascrp> I believe they will ignore it, but ok

2016-12-29 12:06:34 GMT <angelborroy> not really

2016-12-29 12:06:39 GMT <angelborroy> it’s a BIG issue

2016-12-29 12:06:55 GMT <angelborroy> we’ll move this again in January

2016-12-29 12:07:07 GMT <douglascrp> lets see

2016-12-29 12:07:13 GMT <douglascrp> I'll send the link to you to vote

2016-12-29 12:07:19 GMT <angelborroy> thanks

2016-12-29 12:16:43 GMT <douglascrp> angelborroy, https://issues.alfresco.com/jira/browse/ALF-21813

2016-12-29 12:16:58 GMT <douglascrp> I guess the text is not even close to be OK, but I think it's enough

2016-12-29 12:17:08 GMT <douglascrp> please, let me know if you want to suggest changes to it

2016-12-29 12:18:25 GMT <angelborroy> I think this is not addressing the real problem

2016-12-29 12:18:42 GMT <douglascrp> why?

2016-12-29 12:19:14 GMT <angelborroy> the real problem is that before values are incorrect

2016-12-29 12:19:35 GMT <angelborroy> this will affect to mimetype and to any other property

2016-12-29 12:20:07 GMT <douglascrp> but that is there

2016-12-29 12:20:19 GMT <douglascrp> I said that in the description

2016-12-29 12:20:30 GMT <angelborroy> but it is not issue title

2016-12-29 12:20:56 GMT <angelborroy> if I were reading that with no other information, I’ll classify this as a clone of MNT-16328

2016-12-29 12:21:10 GMT <douglascrp> ah, I see

2016-12-29 12:21:13 GMT <douglascrp> ok, I can change that

2016-12-29 12:23:11 GMT <douglascrp> angelborroy, how about now

2016-12-29 12:23:14 GMT <douglascrp> please, update the page

2016-12-29 12:23:32 GMT <douglascrp> and I added some more details to the flow I was trying

2016-12-29 12:23:51 GMT <douglascrp> remember.. English is not my native language, so do not wait to see a perfect text :-P

2016-12-29 12:24:07 GMT <angelborroy> I’d prefer something like this:

2016-12-29 12:24:18 GMT <douglascrp> I'm all ears

2016-12-29 12:24:39 GMT <angelborroy> “Before values are not inyected properly to ContentServicePolicies.OnContentPropertyUpdatePolicy event any more”

2016-12-29 12:24:43 GMT <angelborroy> As title

2016-12-29 12:24:52 GMT <angelborroy> and then you can explain details

2016-12-29 12:24:53 GMT <douglascrp> ok

2016-12-29 12:25:00 GMT <douglascrp> I'm going to change the title now

2016-12-29 12:25:19 GMT <douglascrp> but for now, I hope the text is enough, as I don't have more time to deal with this today

2016-12-29 12:25:22 GMT <douglascrp> thank yo

2016-12-29 12:25:24 GMT <douglascrp> ou

2016-12-29 12:25:25 GMT <douglascrp> you

2016-12-29 12:25:30 GMT <angelborroy> I think it’s enough

2016-12-29 12:25:45 GMT <angelborroy> I’ll remember Richard next year to take this one

2016-12-29 12:26:13 GMT <douglascrp> ok

2016-12-29 12:26:18 GMT <douglascrp> how about now?

2016-12-29 12:26:30 GMT <angelborroy> is richard working?

2016-12-29 12:26:33 GMT <douglascrp> no

2016-12-29 12:26:36 GMT <douglascrp> on vacation

2016-12-29 12:26:44 GMT <angelborroy> and all the others

2016-12-29 12:26:51 GMT <angelborroy> better to wait some days

2016-12-29 12:26:52 GMT <douglascrp> only we, poor mortals are working :D

2016-12-29 12:27:15 GMT <angelborroy> I’m leaving on vacation next Monday :D

2016-12-29 12:27:21 GMT <douglascrp> lucky you

2016-12-29 12:27:36 GMT <douglascrp> ok, enjoy it

2016-12-29 12:27:49 GMT <douglascrp> have you seem the title now?

2016-12-29 14:19:46 GMT <fwu> back!

2016-12-29 20:04:06 GMT <AFaust> douglascrp: Since you guys continued to discuss the sub-component thingy via community.alfresco.com I repeated my explanation from yesterday in the thread...

2016-12-29 20:06:53 GMT <douglascrp> AFaust, oh, that's nice

2016-12-29 20:06:56 GMT <douglascrp> thank you

2016-12-29 20:07:10 GMT <douglascrp> as you saw there, that didn't work even by doing how dave suggested

2016-12-29 20:07:14 GMT <douglascrp> gtg now

2016-12-29 20:07:15 GMT <AFaust> Since you guys already collected points for the discussion, I didn't want to miss out ;)

2016-12-29 20:07:28 GMT <douglascrp> AFaust, perfect

End of Daily Log

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