Details
-
Bug
-
Resolution: Fixed
-
Medium
-
5.5.2
-
None
Description
If you write a macro and annotate the execute method with the RequiresFormat annotation, you can control the form of the body you receive.
@RequiresFormat(value = Format.Storage) public String execute(Map<String, String> parameters, String body, ConversionContext context) throws MacroExecutionException { ... }
- If you use Format.Storage you are meant to get the unprocessed, raw, database format of the page.
- This mostly works, until there are tables in the body. If there are tables in the body they appear to be transformed (with TableStylingElementTransformer).
If your body contains:
<table><th><td></td></th></table>
The macro will receive this as the storage format (which is wrong):
<table class="confluenceTable"><th class="confluenceTh"><td class="confluenceTd"></td></th></table>
It should receive the storage format.
Attachments
Issue Links
- derived from
-
CONFSERVER-33830 T26 Generation of Macro Body Hash
- Closed
- has a regression in
-
CONFSERVER-41547 Regression of CONF-33938
- Closed