Details
-
Bug
-
Resolution: Fixed
-
Medium
-
2.7
-
None
Description
At the moment Dashboard > Administration > Default Space Content does not have the ability to process macro.
Hence if a user tries to insert a macro, say noformat macro and save it, the next time a new space is created will lead to Home (Page Not Found) for that space.
And gives the following exception:
java.lang.IllegalArgumentException: can't parse argument number noformat at java.text.MessageFormat.makeFormat(MessageFormat.java:1339) at java.text.MessageFormat.applyPattern(MessageFormat.java:458) at java.text.MessageFormat.<init>(MessageFormat.java:350) at java.text.MessageFormat.format(MessageFormat.java:811) at com.atlassian.confluence.spaces.listeners.InitialSpaceContentListener.getDefaultHomePageContent(InitialSpaceContentListener.java:121) at com.atlassian.confluence.spaces.listeners.InitialSpaceContentListener.createHomePage(InitialSpaceContentListener.java:89) at com.atlassian.confluence.spaces.listeners.InitialSpaceContentListener.handleSpaceCreate(InitialSpaceContentListener.java:62) at com.atlassian.confluence.spaces.listeners.InitialSpaceContentListener.handleEvent(InitialSpaceContentListener.java:49) at com.atlassian.event.DefaultEventManager.sendEventTo(DefaultEventManager.java:185) at com.atlassian.event.DefaultEventManager.onApplicationEvent(DefaultEventManager.java:74)
The same error will also happen if the user forget to close the curly bracket.
There should be a message in the Default Space Content page that states adding macro is not supported at the moment. Or we can have a validation that checks whether or not the content is valid.
Attachments
Issue Links
- duplicates
-
CONFSERVER-10363 Default space content feature doesn't support macros.
- Closed