-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Low
-
Affects Version/s: 3.5.1, 3.5.4, 3.5.6
-
Component/s: Editor - Page / Comment Editor
Description
This issue seems to affect all Confluence 3.5 and above (New code macro plugin is implemented). Users upgrading from Confluence prior to 3.5 with code macro parameters that have a mixture of uppercase letters will encounter the following error:
code: Invalid value specified for parameter lang
How to Reproduce
- Create a page in Confluence 3.5
- Key in {code: None} example {code} under Wiki Markup

- Save the page
- You will see the following error message displayed:

- Try to edit the page again, if you go over to the Wiki Markup tab, notice that the contents inside the code macro is missing:

Workaround
Option 1) Disabling the New Code Macro and install the older Code Macro
- Go to Confluence Admin >> Plugins >> Code Macro Plugin >> Disable Code Macro Plugin
- Download the attached confluence-code-macro-1.5.jar (Old code macro)
- Install this plugin via Confluence Admin >> Plugins >> Install >> Upload Plugin
Option 2) Database search and replace
The following query works on MySQL:
UPDATE `bodycontent` set body = replace(body, '{code:None}', '{code:none}')
After performing the query, go to Confluence Admin >> Cache Statistics >> Click on Flush All. The problem should be fixed now.
- relates to
-
CONFSERVER-24325 Code macro is not rendering body when lang is unrecognised
-
- Closed
-