Hi Jacques,

Thanks for your confirmation.

I pushed the deprecation with the end of ContentServices.xml :D [1]

On step more.

Nicolas

[1] https://github.com/apache/ofbiz-framework/commit/6b00446509dc0c1dd079cb098f6c3764a6d63f85

On 27/05/2023 09:50, Jacques Le Roux wrote:
Hi Nicolas,

For getPublicForumMessage, it was already proposed with OFBIZ-11382 but not done yet, so yes +1

checkAssocPermission is only used by assocContent, itself only used byaddContentAssoc no used anywhere, so deprecating those 3 in favour of  createContentAssoc sounds good to me

Thanks

Jacques

Le 21/05/2023 à 10:47, Nicolas Malin a écrit :
Hello,

I would finish to convert the ContentService.xml from minilang to groovy and close some work already done (with few rewrite code) and I fall on two really old service (pre apache) 'getPublicForumMessage' and 'assocContent' that I propose de deprecate them.

The first 'getPublicForumMessage' indicate that is to call a content without permission but the service has the attribute auth='true' (since 2007) and just call 'getContentAndDataResource'. So I suggest to deprecated it and replace it directly by 'getContentAndDataResource'

The second assocContent create an association between to content like createContentAssoc, the difference is it call checkAssocPermission, service with  a Todo : `<!-- TODO: old permission service; being replaced with genericContentPermission -->`.

If someone can check and confirm (or not) my proposal, it'll mostly appreciate :)

Nicolas

[1] OFBIZ-11378, OFBIZ-11387 and OFBIZ-11388

Reply via email to