This issue has been created
 
 
Confluence / cid:jira-generated-image-avatar-11db9d78-98e4-49ff-82f5-2ae4b8588495 CONFLUENCE-339 Open

Avoid to convert the user parameter in specific case for show-if/hide-if macro

 
View issue   ·   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-9af63edc-b353-4ef0-ab07-31494a6184ca Josué Tille created this issue on 06/Dec/24 10:39
 
Summary: Avoid to convert the user parameter in specific case for show-if/hide-if macro
Issue Type: cid:jira-generated-image-avatar-11db9d78-98e4-49ff-82f5-2ae4b8588495 Improvement
Affects Versions: 9.64.0
Assignee: Unassigned
Components: Syntax - XHTML
Created: 06/Dec/24 10:39
Priority: cid:jira-generated-image-static-major-d4114564-64f8-4aa0-b735-9244f198ef76 Major
Reporter: Josué Tille
Description:

This is to add a really specific code in the UserTagHandler for the show-if/hide-if macro.

Related to https://github.com/xwikisas/application-confluence-migrator-pro/pull/235#discussion_r1871124195

In the old release of the confluence show-if/hide-if macro instead of having a specific parameter for the special value of the user, they used the user parameter to match by example all users with the value @authenticated. We need to avoid any transformation of this value, so we are able to map correctly the parameter in the macro converter.
Here are the parameter value that don't need to be transformed:

  • @authenticated
  • @anonymous
  • @self

Note, if at some point another macro need some customisation like this, it would be good to provide in the converter a way to access to the raw parameter, and so we can manage this in a clean way.