Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-1574

Using % in page title causes error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 1.2
    • 1.1.2
    • None

      Creating a page with % in the title causes a system error.

      eg: create a new page with the name "test % page" via the Add Page link. This causes the following error:

      Cause:
      Caught an Ognl exception while setting property title

      Stack Trace: [hide]

      Caught an Ognl exception while setting property title

      Referer URL: http://confluence.atlassian.com/pages/createpage.action?spaceKey=TEST

      Build Information:
      Uptime: 5 days, 33 minutes, 28 seconds
      Version: 1.1.2
      Build Number: 57

      Server Information:
      Application Server: Orion/2.0.2
      Servlet Version: 2.2
      Database Dialect: net.sf.hibernate.dialect.PostgreSQLDialect

      Memory Information:
      Total Memory: 299 MB
      Free Memory: 22 MB
      Used Memory: 277 MB

      System Information:
      System Date: Wednesday, 21 Jul 2004
      System Time: 20:57:55
      System Favourite Colour: Almond
      Java Version: 1.4.2_04
      Java Vendor: Sun Microsystems Inc.
      JVM Version: 1.0
      JVM Vendor: Sun Microsystems Inc.
      JVM Implementation Version: 1.4.2_04-b05
      Java Runtime: Java(TM) 2 Runtime Environment, Standard Edition
      Java VM: Java HotSpot(TM) Server VM
      User Name: j2ee
      User Timezone: America/Chicago
      Operating System: Linux 2.4.21-15.0.3.ELsmp
      OS Architecture: i386

      Request Information:
      Request URL: http://atlassian01.metissian.com:10082/500page.jsp

      • Scheme: http
      • Server: atlassian01.metissian.com
      • Port: 10082
      • URI: /500page.jsp
      • - Context Path:
      • - Servlet Path: /500page.jsp
      • - Path Info: null
      • - Query String: null
        Request Attributes:
      • com.atlassian.confluence.setup.SpringSessionInViewFilter.sessionFactory : true
      • javax.servlet.error.exception : java.lang.RuntimeException: Caught an Ognl exception while setting property title
      • javax.servlet.error.message : Caught an Ognl exception while setting property title
      • os_securityfilter_already_filtered : true
      • com.atlassian.johnson.filters.JohnsonFilter_already_filtered : true
      • javax.servlet.error.request_uri : /pages/docreatepage.action
      • javax.servlet.error.status_code : 500
      • os_authstatus : null
      • _sitemesh_filterapplied : true
      • javax.servlet.error.servlet_name : action
      • webwork.valueStack : com.opensymphony.xwork.util.OgnlValueStack@d3ac87
      • loginfilter.already.filtered : true
      • atlassian.core.seraph.original.url : /pages/docreatepage.action
      • javax.servlet.jsp.jspException : java.lang.RuntimeException: Caught an Ognl exception while setting property title

      Request Logging:
      3 log statements generated by this request:
      [ERROR] Wed Jul 21 20:57:55 CDT 2004 [com.opensymphony.xwork.util.CompoundRootAccessor] Caught an Ognl exception while setting property title

      ognl.MethodFailedException: Method "setTitle" failed for object com.atlassian.confluence.pages.actions.CreatePageAction@c367cc [java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern - For input string: " p"]
      at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:796)
      at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:937)
      at ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:76)
      at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:132)
      at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1629)
      at com.opensymphony.xwork.util.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:43)
      at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1629)
      at ognl.ASTProperty.setValueBody(ASTProperty.java:105)
      at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:180)
      at ognl.SimpleNode.setValue(SimpleNode.java:230)
      at ognl.Ognl.setValue(Ognl.java:476)
      at com.opensymphony.xwork.util.OgnlValueStack.setValue(OgnlValueStack.java:114)
      at com.opensymphony.xwork.util.OgnlValueStack.setValue(OgnlValueStack.java:98)
      at com.opensymphony.xwork.interceptor.ParametersInterceptor.before(ParametersInterceptor.java:66)
      at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:33)
      at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:163)
      at com.atlassian.confluence.core.ConfluenceAutowireInterceptor.intercept(ConfluenceAutowireInterceptor.java:25)
      at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:163)
      at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:34)

      [ERROR] Wed Jul 21 20:57:55 CDT 2004 [com.atlassian.confluence.util.XWorkTransactionInterceptor] Invoking rollback for transaction on action '/pages/docreatepage.action (CreatePageAction.doAdd())' due to throwable [java.lang.RuntimeException: Caught an Ognl exception while setting property title]
      [ERROR] Wed Jul 21 20:57:55 CDT 2004 [com.opensymphony.webwork.dispatcher.ServletDispatcher] Could not execute action

      java.lang.RuntimeException: Caught an Ognl exception while setting property title
      at com.opensymphony.xwork.util.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:51)
      at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1629)
      at ognl.ASTProperty.setValueBody(ASTProperty.java:105)
      at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:180)
      at ognl.SimpleNode.setValue(SimpleNode.java:230)
      at ognl.Ognl.setValue(Ognl.java:476)
      at com.opensymphony.xwork.util.OgnlValueStack.setValue(OgnlValueStack.java:114)
      at com.opensymphony.xwork.util.OgnlValueStack.setValue(OgnlValueStack.java:98)
      at com.opensymphony.xwork.interceptor.ParametersInterceptor.before(ParametersInterceptor.java:66)
      at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:33)
      at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:163)
      at com.atlassian.confluence.core.ConfluenceAutowireInterceptor.intercept(ConfluenceAutowireInterceptor.java:25)
      at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:163)
      at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:34)
      at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:163)
      at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:34)
      at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:163)
      at com.atlassian.confluence.util.XWorkTransactionInterceptor.intercept(XWorkTransactionInterceptor.java:133)
      at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:163)

              Unassigned Unassigned
              c966f8a05b4b Paul Ruskin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: