Details
-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
4.2.11, 5.3, 5.7.5, 5.8.6, 5.9.8, 6.4.3, 6.6.0, 6.6.2, 6.6.8, 6.12.1, 7.4.14, 7.12.2, 8.5.8
-
15
-
Severity 3 - Minor
-
2
-
Description
Steps to Reproduce:
- Create a page that starts with '0000/00/xx', where 0 is a number, and 'xx' is a string that contains at least one letter. Other examples include:
- 1991/07/0a
- 2013/10/03 - test
- 1892/01/broken
- 2015/08/02 Case 02 with problem
- Create a second page, and add a link to your first page.
- Attempt to view the Page Information of your second page. (Tools > Page Information).
Results:
The following stack trace is produced:
org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getOutgoingLinks' in class com.atlassian.confluence.pages.actions.PageInfoAction threw exception java.lang.NumberFormatException: For input string: "apples" at /pages/viewinfo.vm[line 359, column 39] at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:223) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:262) at org.apache.velocity.runtime.parser.node.ASTReference.evaluate(ASTReference.java:470) at org.apache.velocity.runtime.parser.node.ASTAndNode.evaluate(ASTAndNode.java:104) at org.apache.velocity.runtime.parser.node.ASTExpression.evaluate(ASTExpression.java:62) at org.apache.velocity.runtime.parser.node.ASTOrNode.evaluate(ASTOrNode.java:98) at org.apache.velocity.runtime.parser.node.ASTExpression.evaluate(ASTExpression.java:62) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:85) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:159) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336) at org.apache.velocity.Template.merge(Template.java:328)
Known Good Formats
The following examples of title do not cause the problem mentioned, and could be used as an alternative:
- 02/08/2015 Title
- 08/02/2015 Title
- 2015-08-02 Title
- Any text before a problematic date, eg "-2015/08/02 Case 02 with problem"
Attachments
Issue Links
- relates to
-
CONFCLOUD-74914 Linking to a page with a title of the format "YYYY/MM/DD - <text>" will cause the 'Page Information' page to break
- Gathering Impact