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-11-24 08:08:05 GMT <yreg> Morning

2017-11-24 11:18:23 GMT <yreg> AFaust, did you notice any problem with node date properties formatting in FTL

2017-11-24 11:18:28 GMT <david_____> hello! the SMTP configuration is OK, and the test mail is correctly sent, and I have set bot mail.from.default and mail.from.enable=false, but when I add a user from a CSV file, the notification is sent from the admin account email (and thus it's not using the right SMTP user)... any ideas?

2017-11-24 11:18:45 GMT <AFaust> yreg: Any problems in particular I should have noticed?

2017-11-24 11:18:53 GMT <AFaust> Also, what kind of formatting?

2017-11-24 11:19:00 GMT <yreg> It seems like alfresco is rendering timezone parts for dates older than 1900

2017-11-24 11:19:05 GMT <AFaust> (hint: there is only one kind: ISO8601)

2017-11-24 11:19:14 GMT <yreg> instead of using UTC timezone

2017-11-24 11:19:51 GMT <AFaust> Ah - yes, there is some magic in the ISO8601 handling for certain time periods, which is somewhat annoying if you have to handle really old dates

2017-11-24 11:20:14 GMT <AFaust> The specific cut-off date is 1847

2017-11-24 11:21:00 GMT <AFaust> https://github.com/Alfresco/alfresco-core/blob/84cd2d8736583a172a8991239957f42118583dd4/src/main/java/org/alfresco/util/ISO8601DateFormat.java#L97

2017-11-24 11:21:01 GMT <alfbot> Title: alfresco-core/ISO8601DateFormat.java at 84cd2d8736583a172a8991239957f42118583dd4 · Alfresco/alfresco-core · GitHub (at github.com)

2017-11-24 11:21:21 GMT <AFaust> https://issues.alfresco.com/jira/browse/MNT-9790

2017-11-24 11:23:32 GMT <AFaust> Don't ask me why they did not simply output UTC in those <= 1847 use cases as well. The MNT-9790 did not require them to make any distinction, and it looks like it was only lazyness / non-use of Joda Time that causes the issue

2017-11-24 11:24:06 GMT <AFaust> ... and reliance on local system timezone

2017-11-24 12:32:22 GMT <yreg> thanks Axel, Briliant as usual

2017-11-24 12:33:35 GMT <yreg> AFaust, would a date format like suggested here work ? https://stackoverflow.com/a/3914498/2307988

2017-11-24 12:33:36 GMT <alfbot> Title: java - How to get current moment in ISO 8601 format with date, hour, and minute? - Stack Overflow (at stackoverflow.com)

2017-11-24 12:38:00 GMT <AFaust> I have not used Java SimpleDateFormat with dates <= 1847, so cannot say for sure. But the general approach would be correct...

2017-11-24 12:44:51 GMT <yreg> LoL, I specified a date from 1200 and I got year 3101 :D

2017-11-24 12:44:59 GMT <yreg> forget about it, Joda it is

2017-11-24 12:56:47 GMT <AFaust> Funny - since Java date uses 64bit timestamp, it should be able to cover +- 290 million years. Might just be the parser that is limited...

2017-11-24 13:10:14 GMT <yreg> Arghhhhh ! new Date(...) auto magically adds 1900 years

2017-11-24 13:14:14 GMT <AFaust> yreg: Shame on you for not using Calendar to create a date. Don't you see that the Date constructor you used is deprecated? (AFAIK)

2017-11-24 13:35:01 GMT <yreg> I saw it was deprecated ... but I couldn't guess that was for the 1900 years stupidly added -_-

2017-11-24 13:39:56 GMT <yreg> AFaust, I am having second thoughts about joda

2017-11-24 13:41:39 GMT <AFaust> I don't use Joda myself, because I have not yet encountered a use case where it was required and I couldn't solve the problem with standard Java

2017-11-24 13:42:30 GMT <AFaust> Well, the JavaDoc clearly mentions the 1900 thingy.

2017-11-24 13:49:49 GMT <hiten> Hi Guys

2017-11-24 13:50:09 GMT <hiten> I am trying to create a transformer that will convert pdf to doc

2017-11-24 13:50:26 GMT <hiten> it will run as an action from the UI

2017-11-24 13:51:53 GMT <hiten> and the custom transformer is similar to the one used in https://github.com/keensoft/alfresco-simple-ocr for ocr

2017-11-24 13:51:54 GMT <alfbot> Title: GitHub - keensoft/alfresco-simple-ocr: Simple OCR action for Alfresco (at github.com)

2017-11-24 13:52:15 GMT <hiten> I have modified it to call my script instead of ocr

2017-11-24 13:53:29 GMT <hiten> The problem I am facing is here

2017-11-24 13:53:29 GMT <hiten> https://pastebin.com/VVqzU8SD

2017-11-24 13:53:30 GMT <alfbot> Title: Transformer_issue - Pastebin.com (at pastebin.com)

2017-11-24 13:53:47 GMT <hiten> I am using soffice for the conversion

2017-11-24 13:54:07 GMT <hiten> and this is my command office --infilter="writer_pdf_import" --headless --convert-to doc ${source} --print-to-file ${target}

2017-11-24 13:54:14 GMT <hiten> *soffice

2017-11-24 13:54:55 GMT <hiten> If I run the command manually then I can see the pdf converted to doc

2017-11-24 13:55:14 GMT <hiten> but through Alfresco I am not able to run it

2017-11-24 13:56:08 GMT <hiten> I am not sure about the error

2017-11-24 13:56:08 GMT <hiten> Error: no export filter for /home/hitenrastogi/Documents/Projects/R_and_D_Projects/PDF_to_DOC/ev-repo-pdftodoc/PDFToDOCTransformWorker_source_4212933105883619997.doc

2017-11-24 13:56:24 GMT <hiten> why it is coming. Can anyone please help me out

2017-11-24 15:52:07 GMT *** hseritt is now known as HarlinS

End of Daily Log

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