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

2019-08-19 06:40:33 GMT <alfresco-discord> <yreg> Morning everyone !

2019-08-19 06:40:45 GMT <alfresco-discord> <yreg> @AFaust done !

2019-08-19 07:03:01 GMT <alfresco-discord> <bhagyas> Has anyone generated Swagger API definitions from Webscript definition files?

2019-08-19 07:05:56 GMT <alfresco-discord> <yreg> I have seen people creating yml definitions for webscripts and then using that generate all sorts of client code ..

2019-08-19 07:08:10 GMT <alfresco-discord> <yreg> generating the yaml from webscript definition isn't that reliable as webscript desc files aren't that strict/explanatory regarding the request/response format

2019-08-19 07:09:11 GMT <alfresco-discord> <bhagyas> [but] is swagger strict?

2019-08-19 07:09:17 GMT <alfresco-discord> <lars> Hmm, I'm not sure you'll want to go that way. A swagger definition contains more information than a webscript description (e.g. POST body parameters and querystring), so I think you would rather want to generate webscript definitions (and maybe also some classes) from the swagger spec instead

2019-08-19 07:09:45 GMT <alfresco-discord> <bhagyas> I'm looking at SpringFox rn, and wondering if we can create a mapper

2019-08-19 07:10:39 GMT <alfresco-discord> <bhagyas> has anyone been able to add additional tags to webscript xml files?

2019-08-19 07:10:49 GMT <alfresco-discord> <bhagyas> can't remember it failed validation if I did

2019-08-19 07:10:53 GMT <alfresco-discord> <bhagyas> if it&

2019-08-19 07:10:56 GMT <alfresco-discord> <bhagyas> *

2019-08-19 07:13:45 GMT <alfresco-discord> <bhagyas> @lars interesting!

2019-08-19 07:22:14 GMT <alfresco-discord> <bhagyas> swagger does seem to allow custom properties as extensions

2019-08-19 09:33:52 GMT <hi-ko> just seen by accident: since share 5.2 the search page footer seems to be somehow double escaped so the user sees html code instead of links. same in 6.1

2019-08-19 09:40:14 GMT <anaverageuser> Hi

2019-08-19 09:41:10 GMT <anaverageuser> help

2019-08-19 09:41:40 GMT <anaverageuser> nice, i was just testing my connection, sorry if i disturbed someone

2019-08-19 09:48:17 GMT <AFaust> hi-ko: That bug has been in Aikau for a long time, unfortunately. E,g, https://issues.alfresco.com/jira/browse/ACE-5165

2019-08-19 09:51:18 GMT <alfresco-discord> <MorganP> Yes it's present since a while. Personally, I remove the footer or changed it anyway with amps

2019-08-19 09:57:27 GMT <hi-ko> AFaust: Thanks for the link. Do you have a hint where/how to fix this in Aikau?

2019-08-19 10:01:39 GMT <AFaust> In this case it would need to be fixed in https://github.com/Alfresco/Aikau/blob/develop/aikau/src/main/resources/alfresco/footer/templates/AlfShareFooter.html#L7 by modifying the placeholder to disable automatic HTML escaping.

2019-08-19 10:01:40 GMT <alfbot> Title:Aikau/AlfShareFooter.html at develop Β· Alfresco/Aikau Β· GitHub (at github.com)

2019-08-19 10:01:54 GMT <AFaust> But to be fair, that would only be a hack.

2019-08-19 10:02:20 GMT <AFaust> You'd need to separate out the link from the I18n property

2019-08-19 10:02:26 GMT <AFaust> links*

2019-08-19 10:03:25 GMT <AFaust> All the HTML elements should not be part of the I18n property (which should go through HTML encoding to handle special characters correctly), but should be handled as (optional) parts of the structure in the HTML/JS binding.

2019-08-19 10:04:12 GMT <hi-ko> I see. I'll just remove the html elements in the I18n properties.

2019-08-19 10:04:35 GMT <hi-ko> thanks.

2019-08-19 10:21:12 GMT <alfresco-discord> <bhagyas> ok guys

2019-08-19 10:21:36 GMT <alfresco-discord> <bhagyas> I wrote a node module to generate Swagger from Alfresco Webscript Descriptors πŸ˜…

2019-08-19 10:21:58 GMT <alfresco-discord> <bhagyas> I hope many will find it useful

2019-08-19 10:22:21 GMT <alfresco-discord> <bhagyas> it scans for a given path and parses every webscript desc xml files

2019-08-19 10:22:31 GMT <alfresco-discord> <bhagyas> and generates swagger descriptions to match

2019-08-19 10:22:47 GMT <alfresco-discord> <bhagyas> a few more touchups and its good to go

2019-08-19 10:22:48 GMT <alfresco-discord> <bhagyas> πŸ˜„

2019-08-19 11:00:33 GMT <alfresco-discord> <MartinM> @bhagyas Sounds nice. Where can I find that?

2019-08-19 11:13:06 GMT <alfresco-discord> <bhagyas> still haven’t pushed to github

2019-08-19 11:13:26 GMT <alfresco-discord> <bhagyas> but hopefully within today

2019-08-19 11:17:56 GMT <alfresco-discord> <dgradecak> Myself i do not write webscripts for at least 10 y;) I use my alfresco mvc library which actually exposes a /mvc webscript and forwards everything to springmvc. Where a normal controller is used and swagger generates the apis. Sure this does not work with existing webscripts

2019-08-19 11:18:22 GMT <alfresco-discord> <bhagyas> yeah, the issue is with legacy code

2019-08-19 11:24:41 GMT *** jelly-home is now known as jelly

2019-08-19 13:05:52 GMT *** angelborroy_ is now known as angelborroy

2019-08-19 13:34:43 GMT <alfresco-discord> <bhagyas> https://github.com/bhagyas/alfresco-swagger-gen

2019-08-19 13:34:44 GMT <alfbot> Title:GitHub - bhagyas/alfresco-swagger-gen: OpenAPI (Swagger) definition generator for Alfresco Webscript Files (at github.com)

2019-08-19 13:34:47 GMT <alfresco-discord> <bhagyas> Here you go

2019-08-19 13:35:44 GMT <alfresco-discord> <bhagyas> phew

2019-08-19 13:35:49 GMT <alfresco-discord> <bhagyas> πŸ˜…

2019-08-19 13:36:14 GMT <alfresco-discord> <bhagyas> It needs a little work on the command line argument parsing, otherwise it works quite well πŸ™‚

2019-08-19 13:37:21 GMT <alfresco-discord> <bhagyas> ping @MartinM

2019-08-19 14:27:31 GMT <alfresco-discord> <bhagyas> added swagger-ui explorer as a docker image as well now

End of Daily Log

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