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

Logging and Profiling screen show System Error when a white space is added in the Class/Package name field

      Issue Summary

      When we add a while space in the Class/Package name field and save the Logging and Profiling, it gives the System error.

      This is reproducible on Data Center: Yes

      Steps to Reproduce

      Step-1. Go to   > General Configuration > Logging and Profiling.

      Step-2. If you run Confluence in a cluster, select a cluster node.

      Step-3. Enter the name in the Class/Package name field, with an extra space at the beginning / end or in-between.

      For example " com.atlassian.confluence.mail.session" or "com.atlassian.confluence.mail.session " or "com.atlassian.confluence.mail. session"

      Step-4. Select Add entry to add the new class or package to the list.

      Expected Results

      It should not break the Logging and Profiling screen.

      Actual Results

      It breaks the Logging and Profiling screen and show System Error.

      Workaround

      As any modification on the logging page will always be reset after a Confluence restart, workaround is to restart Confluence. This will reset the logging back to default and resolve the issue.

      Note

      In the logs, we could see we get a java.lang.IllegalArgumentException.

      ERROR [http-nio-8080-exec-9] [atlassian.confluence.status.SystemErrorInformationLogger] logException Unhandled exception 6c59f45b-6bf4-4837-913a-1cf9a7810746: Invocation of method 'nodeUri' in  class com.atlassian.confluence.impl.logging.admin.ConfigureLoggingAction threw exception java.lang.IllegalArgumentException: Illegal character in query at index 35: deleteLogEntry.action?toDeleteName= com.atlassian.confluence.mail.session&atl_token=99522b8729cefe56f1cd274ea4c0e2a28dd9827a at /admin/configurelog4j.vm[line 253, column 38]
       -- traceId: 32d2137bbfa09d38
      org.apache.velocity.exception.MethodInvocationException: Invocation of method 'nodeUri' in  class com.atlassian.confluence.impl.logging.admin.ConfigureLoggingAction threw exception java.lang.IllegalArgumentException: Illegal character in query at index 35: deleteLogEntry.action?toDeleteName= com.atlassian.confluence.mail.session&atl_token=99522b8729cefe56f1cd274ea4c0e2a28dd9827a at /admin/configurelog4j.vm[line 253, column 38]
          at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:342)
      
      Caused by: java.lang.IllegalArgumentException: Illegal character in query at index 35: deleteLogEntry.action?toDeleteName= com.atlassian.confluence.mail.session&atl_token=99522b8729cefe56f1cd274ea4c0e2a28dd9827a
          at java.base/java.net.URI.create(Unknown Source)
      

            [CONFSERVER-97030] Logging and Profiling screen show System Error when a white space is added in the Class/Package name field

            SET Analytics Bot made changes -
            Support reference count New: 6
            James Ponting made changes -
            Resolution New: Incorrectly Filed [ 10100 ]
            Status Original: Needs Triage [ 10030 ] New: Closed [ 6 ]
            Shekhar Gupta made changes -
            Description Original: h3. Issue Summary
            When we add a while space in the Class/Package name field and save the Logging and Profiling, it gives the System error.
            {quote}
            !screen1.png|thumbnail!
            {quote}

            This is reproducible on Data Center: Yes

            h3. Steps to Reproduce
            Step-1. Go to  !https://confluence.atlassian.com/support/files/790796813/947856965/1/1522298459209/cog-new.png|width=16! > *General Configuration* > *Logging and Profiling*.

            Step-2. If you run Confluence in a cluster, select a cluster node.

            Step-3. Enter the name in the *Class/Package name* field, with an extra space at the beginning / end or in-between.

            For example " com.atlassian.confluence.mail.session" or "com.atlassian.confluence.mail.session " or "com.atlassian.confluence.mail. session"

            Step-4. Select *Add entry* to add the new class or package to the list.

            h3. Expected Results
            It should not break the Logging and Profiling screen.

            h3. Actual Results
            It breaks the Logging and Profiling screen and show System Error.
            {quote}
            !screen1.png|thumbnail!
            {quote}

            h3. Workaround
            Currently there is no known workaround for this behavior. A workaround will be added here when available.

            h3. Note
            In the logs, we could see we get a java.lang.IllegalArgumentException.
            {code:java}
            ERROR [http-nio-8080-exec-9] [atlassian.confluence.status.SystemErrorInformationLogger] logException Unhandled exception 6c59f45b-6bf4-4837-913a-1cf9a7810746: Invocation of method 'nodeUri' in class com.atlassian.confluence.impl.logging.admin.ConfigureLoggingAction threw exception java.lang.IllegalArgumentException: Illegal character in query at index 35: deleteLogEntry.action?toDeleteName= com.atlassian.confluence.mail.session&atl_token=99522b8729cefe56f1cd274ea4c0e2a28dd9827a at /admin/configurelog4j.vm[line 253, column 38]
             -- traceId: 32d2137bbfa09d38
            org.apache.velocity.exception.MethodInvocationException: Invocation of method 'nodeUri' in class com.atlassian.confluence.impl.logging.admin.ConfigureLoggingAction threw exception java.lang.IllegalArgumentException: Illegal character in query at index 35: deleteLogEntry.action?toDeleteName= com.atlassian.confluence.mail.session&atl_token=99522b8729cefe56f1cd274ea4c0e2a28dd9827a at /admin/configurelog4j.vm[line 253, column 38]
                at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:342)
            {code}
            {code:java}
            Caused by: java.lang.IllegalArgumentException: Illegal character in query at index 35: deleteLogEntry.action?toDeleteName= com.atlassian.confluence.mail.session&atl_token=99522b8729cefe56f1cd274ea4c0e2a28dd9827a
                at java.base/java.net.URI.create(Unknown Source)
            {code}
            New: h3. Issue Summary
            When we add a while space in the Class/Package name field and save the Logging and Profiling, it gives the System error.
            {quote}
            !screen1.png|thumbnail!
            {quote}

            This is reproducible on Data Center: Yes

            h3. Steps to Reproduce
            Step-1. Go to  !https://confluence.atlassian.com/support/files/790796813/947856965/1/1522298459209/cog-new.png|width=16! > *General Configuration* > *Logging and Profiling*.

            Step-2. If you run Confluence in a cluster, select a cluster node.

            Step-3. Enter the name in the *Class/Package name* field, with an extra space at the beginning / end or in-between.

            For example " com.atlassian.confluence.mail.session" or "com.atlassian.confluence.mail.session " or "com.atlassian.confluence.mail. session"

            Step-4. Select *Add entry* to add the new class or package to the list.

            h3. Expected Results
            It should not break the Logging and Profiling screen.

            h3. Actual Results
            It breaks the Logging and Profiling screen and show System Error.
            {quote}
            !screen1.png|thumbnail!
            {quote}

            h3. Workaround
            As any modification on the logging page will always be reset after a Confluence restart, workaround is to restart Confluence. This will reset the logging back to default and resolve the issue.

            h3. Note
            In the logs, we could see we get a java.lang.IllegalArgumentException.
            {code:java}
            ERROR [http-nio-8080-exec-9] [atlassian.confluence.status.SystemErrorInformationLogger] logException Unhandled exception 6c59f45b-6bf4-4837-913a-1cf9a7810746: Invocation of method 'nodeUri' in class com.atlassian.confluence.impl.logging.admin.ConfigureLoggingAction threw exception java.lang.IllegalArgumentException: Illegal character in query at index 35: deleteLogEntry.action?toDeleteName= com.atlassian.confluence.mail.session&atl_token=99522b8729cefe56f1cd274ea4c0e2a28dd9827a at /admin/configurelog4j.vm[line 253, column 38]
             -- traceId: 32d2137bbfa09d38
            org.apache.velocity.exception.MethodInvocationException: Invocation of method 'nodeUri' in class com.atlassian.confluence.impl.logging.admin.ConfigureLoggingAction threw exception java.lang.IllegalArgumentException: Illegal character in query at index 35: deleteLogEntry.action?toDeleteName= com.atlassian.confluence.mail.session&atl_token=99522b8729cefe56f1cd274ea4c0e2a28dd9827a at /admin/configurelog4j.vm[line 253, column 38]
                at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:342)
            {code}
            {code:java}
            Caused by: java.lang.IllegalArgumentException: Illegal character in query at index 35: deleteLogEntry.action?toDeleteName= com.atlassian.confluence.mail.session&atl_token=99522b8729cefe56f1cd274ea4c0e2a28dd9827a
                at java.base/java.net.URI.create(Unknown Source)
            {code}
            Shekhar Gupta made changes -
            Security Original: Reporter and Atlassian Staff [ 10751 ]
            Shekhar Gupta made changes -
            Summary Original: Logging and Profiling show System Error when a white space is added in the Class/Package name field New: Logging and Profiling screen show System Error when a white space is added in the Class/Package name field
            Shekhar Gupta made changes -
            Description Original: h3. Issue Summary
            When we add a while space in the Class/Package name field and save the Logging and Profiling, it gives the System error.
            {quote}
            !screen1.png|thumbnail!
            {quote}

            This is reproducible on Data Center: Yes

            h3. Steps to Reproduce
            Step-1. Go to  !https://confluence.atlassian.com/support/files/790796813/947856965/1/1522298459209/cog-new.png|width=16! > *General Configuration* > *Logging and Profiling*.

            Step-2. If you run Confluence in a cluster, select a cluster node.

            Step-3. Enter the name in the *Class/Package name* field, with an extra space at the beginning or end.
            For example " com.atlassian.confluence.mail.session" or "com.atlassian.confluence.mail.session " or "com.atlassian.confluence.mail. session"

            Step-4. Select *Add entry* to add the new class or package to the list.

            h3. Expected Results
            It should not break the Logging and Profiling screen.

            h3. Actual Results
            It breaks the Logging and Profiling screen and show System Error.
            {quote}
            !screen1.png|thumbnail!
            {quote}

            h3. Workaround
            Currently there is no known workaround for this behavior. A workaround will be added here when available.

            h3. Note
            In the logs, we could see we get a java.lang.IllegalArgumentException.
            {code:java}
            ERROR [http-nio-8080-exec-9] [atlassian.confluence.status.SystemErrorInformationLogger] logException Unhandled exception 6c59f45b-6bf4-4837-913a-1cf9a7810746: Invocation of method 'nodeUri' in class com.atlassian.confluence.impl.logging.admin.ConfigureLoggingAction threw exception java.lang.IllegalArgumentException: Illegal character in query at index 35: deleteLogEntry.action?toDeleteName= com.atlassian.confluence.mail.session&atl_token=99522b8729cefe56f1cd274ea4c0e2a28dd9827a at /admin/configurelog4j.vm[line 253, column 38]
             -- traceId: 32d2137bbfa09d38
            org.apache.velocity.exception.MethodInvocationException: Invocation of method 'nodeUri' in class com.atlassian.confluence.impl.logging.admin.ConfigureLoggingAction threw exception java.lang.IllegalArgumentException: Illegal character in query at index 35: deleteLogEntry.action?toDeleteName= com.atlassian.confluence.mail.session&atl_token=99522b8729cefe56f1cd274ea4c0e2a28dd9827a at /admin/configurelog4j.vm[line 253, column 38]
                at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:342)
            {code}
            {code:java}
            Caused by: java.lang.IllegalArgumentException: Illegal character in query at index 35: deleteLogEntry.action?toDeleteName= com.atlassian.confluence.mail.session&atl_token=99522b8729cefe56f1cd274ea4c0e2a28dd9827a
                at java.base/java.net.URI.create(Unknown Source)
            {code}
            New: h3. Issue Summary
            When we add a while space in the Class/Package name field and save the Logging and Profiling, it gives the System error.
            {quote}
            !screen1.png|thumbnail!
            {quote}

            This is reproducible on Data Center: Yes

            h3. Steps to Reproduce
            Step-1. Go to  !https://confluence.atlassian.com/support/files/790796813/947856965/1/1522298459209/cog-new.png|width=16! > *General Configuration* > *Logging and Profiling*.

            Step-2. If you run Confluence in a cluster, select a cluster node.

            Step-3. Enter the name in the *Class/Package name* field, with an extra space at the beginning / end or in-between.

            For example " com.atlassian.confluence.mail.session" or "com.atlassian.confluence.mail.session " or "com.atlassian.confluence.mail. session"

            Step-4. Select *Add entry* to add the new class or package to the list.

            h3. Expected Results
            It should not break the Logging and Profiling screen.

            h3. Actual Results
            It breaks the Logging and Profiling screen and show System Error.
            {quote}
            !screen1.png|thumbnail!
            {quote}

            h3. Workaround
            Currently there is no known workaround for this behavior. A workaround will be added here when available.

            h3. Note
            In the logs, we could see we get a java.lang.IllegalArgumentException.
            {code:java}
            ERROR [http-nio-8080-exec-9] [atlassian.confluence.status.SystemErrorInformationLogger] logException Unhandled exception 6c59f45b-6bf4-4837-913a-1cf9a7810746: Invocation of method 'nodeUri' in class com.atlassian.confluence.impl.logging.admin.ConfigureLoggingAction threw exception java.lang.IllegalArgumentException: Illegal character in query at index 35: deleteLogEntry.action?toDeleteName= com.atlassian.confluence.mail.session&atl_token=99522b8729cefe56f1cd274ea4c0e2a28dd9827a at /admin/configurelog4j.vm[line 253, column 38]
             -- traceId: 32d2137bbfa09d38
            org.apache.velocity.exception.MethodInvocationException: Invocation of method 'nodeUri' in class com.atlassian.confluence.impl.logging.admin.ConfigureLoggingAction threw exception java.lang.IllegalArgumentException: Illegal character in query at index 35: deleteLogEntry.action?toDeleteName= com.atlassian.confluence.mail.session&atl_token=99522b8729cefe56f1cd274ea4c0e2a28dd9827a at /admin/configurelog4j.vm[line 253, column 38]
                at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:342)
            {code}
            {code:java}
            Caused by: java.lang.IllegalArgumentException: Illegal character in query at index 35: deleteLogEntry.action?toDeleteName= com.atlassian.confluence.mail.session&atl_token=99522b8729cefe56f1cd274ea4c0e2a28dd9827a
                at java.base/java.net.URI.create(Unknown Source)
            {code}
            Shekhar Gupta made changes -
            Description Original: h3. Issue Summary
            When we add a while space in the Class/Package name field and save the Logging and Profiling, it gives the System error.
            {quote}
            !screen1.png|thumbnail!
            {quote}

            This is reproducible on Data Center: Yes

            h3. Steps to Reproduce
            Step-1. Go to  !https://confluence.atlassian.com/support/files/790796813/947856965/1/1522298459209/cog-new.png|width=16! > *General Configuration* > *Logging and Profiling*.

            Step-2. If you run Confluence in a cluster, select a cluster node.

            Step-3. Enter the name in the Class/Package name field, with an extra space at the beginning or end.
            For example " com.atlassian.confluence.mail.session" or "com.atlassian.confluence.mail.session " or "com.atlassian.confluence.mail. session"

            Step-4. Select *Add entry* to add the new class or package to the list.

            h3. Expected Results
            It should not break the Logging and Profiling screen.

            h3. Actual Results
            It breaks the Logging and Profiling screen and show System Error.
            {quote}
            !screen1.png|thumbnail!
            {quote}

            h3. Workaround
            Currently there is no known workaround for this behavior. A workaround will be added here when available.

            h3. Note
            In the logs, we could see we get a java.lang.IllegalArgumentException.
            {code:java}
            ERROR [http-nio-8080-exec-9] [atlassian.confluence.status.SystemErrorInformationLogger] logException Unhandled exception 6c59f45b-6bf4-4837-913a-1cf9a7810746: Invocation of method 'nodeUri' in class com.atlassian.confluence.impl.logging.admin.ConfigureLoggingAction threw exception java.lang.IllegalArgumentException: Illegal character in query at index 35: deleteLogEntry.action?toDeleteName= com.atlassian.confluence.mail.session&atl_token=99522b8729cefe56f1cd274ea4c0e2a28dd9827a at /admin/configurelog4j.vm[line 253, column 38]
             -- traceId: 32d2137bbfa09d38
            org.apache.velocity.exception.MethodInvocationException: Invocation of method 'nodeUri' in class com.atlassian.confluence.impl.logging.admin.ConfigureLoggingAction threw exception java.lang.IllegalArgumentException: Illegal character in query at index 35: deleteLogEntry.action?toDeleteName= com.atlassian.confluence.mail.session&atl_token=99522b8729cefe56f1cd274ea4c0e2a28dd9827a at /admin/configurelog4j.vm[line 253, column 38]
                at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:342)
            {code}
            {code:java}
            Caused by: java.lang.IllegalArgumentException: Illegal character in query at index 35: deleteLogEntry.action?toDeleteName= com.atlassian.confluence.mail.session&atl_token=99522b8729cefe56f1cd274ea4c0e2a28dd9827a
                at java.base/java.net.URI.create(Unknown Source)
            {code}
            New: h3. Issue Summary
            When we add a while space in the Class/Package name field and save the Logging and Profiling, it gives the System error.
            {quote}
            !screen1.png|thumbnail!
            {quote}

            This is reproducible on Data Center: Yes

            h3. Steps to Reproduce
            Step-1. Go to  !https://confluence.atlassian.com/support/files/790796813/947856965/1/1522298459209/cog-new.png|width=16! > *General Configuration* > *Logging and Profiling*.

            Step-2. If you run Confluence in a cluster, select a cluster node.

            Step-3. Enter the name in the *Class/Package name* field, with an extra space at the beginning or end.
            For example " com.atlassian.confluence.mail.session" or "com.atlassian.confluence.mail.session " or "com.atlassian.confluence.mail. session"

            Step-4. Select *Add entry* to add the new class or package to the list.

            h3. Expected Results
            It should not break the Logging and Profiling screen.

            h3. Actual Results
            It breaks the Logging and Profiling screen and show System Error.
            {quote}
            !screen1.png|thumbnail!
            {quote}

            h3. Workaround
            Currently there is no known workaround for this behavior. A workaround will be added here when available.

            h3. Note
            In the logs, we could see we get a java.lang.IllegalArgumentException.
            {code:java}
            ERROR [http-nio-8080-exec-9] [atlassian.confluence.status.SystemErrorInformationLogger] logException Unhandled exception 6c59f45b-6bf4-4837-913a-1cf9a7810746: Invocation of method 'nodeUri' in class com.atlassian.confluence.impl.logging.admin.ConfigureLoggingAction threw exception java.lang.IllegalArgumentException: Illegal character in query at index 35: deleteLogEntry.action?toDeleteName= com.atlassian.confluence.mail.session&atl_token=99522b8729cefe56f1cd274ea4c0e2a28dd9827a at /admin/configurelog4j.vm[line 253, column 38]
             -- traceId: 32d2137bbfa09d38
            org.apache.velocity.exception.MethodInvocationException: Invocation of method 'nodeUri' in class com.atlassian.confluence.impl.logging.admin.ConfigureLoggingAction threw exception java.lang.IllegalArgumentException: Illegal character in query at index 35: deleteLogEntry.action?toDeleteName= com.atlassian.confluence.mail.session&atl_token=99522b8729cefe56f1cd274ea4c0e2a28dd9827a at /admin/configurelog4j.vm[line 253, column 38]
                at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:342)
            {code}
            {code:java}
            Caused by: java.lang.IllegalArgumentException: Illegal character in query at index 35: deleteLogEntry.action?toDeleteName= com.atlassian.confluence.mail.session&atl_token=99522b8729cefe56f1cd274ea4c0e2a28dd9827a
                at java.base/java.net.URI.create(Unknown Source)
            {code}
            Shekhar Gupta made changes -
            Description Original: h3. Issue Summary
            When we add a while space in the Class/Package name field and save the Logging and Profiling, it gives the System error.
            {quote}
            !screen1.png|thumbnail!
            {quote}

            This is reproducible on Data Center: Yes

            h3. Steps to Reproduce
            Step-1. Go to  !https://confluence.atlassian.com/support/files/790796813/947856965/1/1522298459209/cog-new.png|width=16! * > *General Configuration* > *Logging and Profiling*.

            Step-2. If you run Confluence in a cluster, select a cluster node.

            Step-3. Enter the name in the Class/Package name field, with an extra space at the beginning or end.
            For example below
            * com.atlassian.confluence.mail.session* or *com.atlassian.confluence.mail.session * or *com.atlassian.confluence.mail. session*

            Step-4. Select *Add entry* to add the new class or package to the list.

            h3. Expected Results
            It should not break the Logging and Profiling screen.

            h3. Actual Results
            It breaks the Logging and Profiling screen and show System Error.
            {quote}
            !screen1.png|thumbnail!
            {quote}

            h3. Workaround
            Currently there is no known workaround for this behavior. A workaround will be added here when available.

            h3. Note
            In the logs, we could see we get a java.lang.IllegalArgumentException.
            {code:java}
            ERROR [http-nio-8080-exec-9] [atlassian.confluence.status.SystemErrorInformationLogger] logException Unhandled exception 6c59f45b-6bf4-4837-913a-1cf9a7810746: Invocation of method 'nodeUri' in class com.atlassian.confluence.impl.logging.admin.ConfigureLoggingAction threw exception java.lang.IllegalArgumentException: Illegal character in query at index 35: deleteLogEntry.action?toDeleteName= com.atlassian.confluence.mail.session&atl_token=99522b8729cefe56f1cd274ea4c0e2a28dd9827a at /admin/configurelog4j.vm[line 253, column 38]
             -- traceId: 32d2137bbfa09d38
            org.apache.velocity.exception.MethodInvocationException: Invocation of method 'nodeUri' in class com.atlassian.confluence.impl.logging.admin.ConfigureLoggingAction threw exception java.lang.IllegalArgumentException: Illegal character in query at index 35: deleteLogEntry.action?toDeleteName= com.atlassian.confluence.mail.session&atl_token=99522b8729cefe56f1cd274ea4c0e2a28dd9827a at /admin/configurelog4j.vm[line 253, column 38]
                at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:342)
            {code}
            {code:java}
            Caused by: java.lang.IllegalArgumentException: Illegal character in query at index 35: deleteLogEntry.action?toDeleteName= com.atlassian.confluence.mail.session&atl_token=99522b8729cefe56f1cd274ea4c0e2a28dd9827a
                at java.base/java.net.URI.create(Unknown Source)
            {code}
            New: h3. Issue Summary
            When we add a while space in the Class/Package name field and save the Logging and Profiling, it gives the System error.
            {quote}
            !screen1.png|thumbnail!
            {quote}

            This is reproducible on Data Center: Yes

            h3. Steps to Reproduce
            Step-1. Go to  !https://confluence.atlassian.com/support/files/790796813/947856965/1/1522298459209/cog-new.png|width=16! > *General Configuration* > *Logging and Profiling*.

            Step-2. If you run Confluence in a cluster, select a cluster node.

            Step-3. Enter the name in the Class/Package name field, with an extra space at the beginning or end.
            For example " com.atlassian.confluence.mail.session" or "com.atlassian.confluence.mail.session " or "com.atlassian.confluence.mail. session"

            Step-4. Select *Add entry* to add the new class or package to the list.

            h3. Expected Results
            It should not break the Logging and Profiling screen.

            h3. Actual Results
            It breaks the Logging and Profiling screen and show System Error.
            {quote}
            !screen1.png|thumbnail!
            {quote}

            h3. Workaround
            Currently there is no known workaround for this behavior. A workaround will be added here when available.

            h3. Note
            In the logs, we could see we get a java.lang.IllegalArgumentException.
            {code:java}
            ERROR [http-nio-8080-exec-9] [atlassian.confluence.status.SystemErrorInformationLogger] logException Unhandled exception 6c59f45b-6bf4-4837-913a-1cf9a7810746: Invocation of method 'nodeUri' in class com.atlassian.confluence.impl.logging.admin.ConfigureLoggingAction threw exception java.lang.IllegalArgumentException: Illegal character in query at index 35: deleteLogEntry.action?toDeleteName= com.atlassian.confluence.mail.session&atl_token=99522b8729cefe56f1cd274ea4c0e2a28dd9827a at /admin/configurelog4j.vm[line 253, column 38]
             -- traceId: 32d2137bbfa09d38
            org.apache.velocity.exception.MethodInvocationException: Invocation of method 'nodeUri' in class com.atlassian.confluence.impl.logging.admin.ConfigureLoggingAction threw exception java.lang.IllegalArgumentException: Illegal character in query at index 35: deleteLogEntry.action?toDeleteName= com.atlassian.confluence.mail.session&atl_token=99522b8729cefe56f1cd274ea4c0e2a28dd9827a at /admin/configurelog4j.vm[line 253, column 38]
                at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:342)
            {code}
            {code:java}
            Caused by: java.lang.IllegalArgumentException: Illegal character in query at index 35: deleteLogEntry.action?toDeleteName= com.atlassian.confluence.mail.session&atl_token=99522b8729cefe56f1cd274ea4c0e2a28dd9827a
                at java.base/java.net.URI.create(Unknown Source)
            {code}
            Shekhar Gupta made changes -
            Description Original: h3. Issue Summary
            When we add a while space in the Class/Package name field and save the Logging and Profiling, it gives the System error.
            {quote}
            !screen1.png|thumbnail!
            {quote}

            This is reproducible on Data Center: Yes

            h3. Steps to Reproduce
            Step-1. Go to  !https://confluence.atlassian.com/support/files/790796813/947856965/1/1522298459209/cog-new.png|width=16! * > *General Configuration* > *Logging and Profiling*.

            Step-2. If you run Confluence in a cluster, select a cluster node.

            Step-3. Enter the name in the Class/Package name field, with an extra space at the beginning or end.
            For example below
            * com.atlassian.confluence.mail.session* or *com.atlassian.confluence.mail.session * or *com.atlassian.confluence.mail. session*

            Step-4. Select *Add entry* to add the new class or package to the list.

            h3. Expected Results
            It should not break the Logging and Profiling screen.

            h3. Actual Results
            It breaks the Logging and Profiling screen and show System Error.

            h3. Workaround
            Currently there is no known workaround for this behavior. A workaround will be added here when available.

            h3. Note
            In the logs, we could see we get a java.lang.IllegalArgumentException.
            {code:java}
            ERROR [http-nio-8080-exec-9] [atlassian.confluence.status.SystemErrorInformationLogger] logException Unhandled exception 6c59f45b-6bf4-4837-913a-1cf9a7810746: Invocation of method 'nodeUri' in class com.atlassian.confluence.impl.logging.admin.ConfigureLoggingAction threw exception java.lang.IllegalArgumentException: Illegal character in query at index 35: deleteLogEntry.action?toDeleteName= com.atlassian.confluence.mail.session&atl_token=99522b8729cefe56f1cd274ea4c0e2a28dd9827a at /admin/configurelog4j.vm[line 253, column 38]
             -- traceId: 32d2137bbfa09d38
            org.apache.velocity.exception.MethodInvocationException: Invocation of method 'nodeUri' in class com.atlassian.confluence.impl.logging.admin.ConfigureLoggingAction threw exception java.lang.IllegalArgumentException: Illegal character in query at index 35: deleteLogEntry.action?toDeleteName= com.atlassian.confluence.mail.session&atl_token=99522b8729cefe56f1cd274ea4c0e2a28dd9827a at /admin/configurelog4j.vm[line 253, column 38]
                at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:342)
            {code}
            {code:java}
            Caused by: java.lang.IllegalArgumentException: Illegal character in query at index 35: deleteLogEntry.action?toDeleteName= com.atlassian.confluence.mail.session&atl_token=99522b8729cefe56f1cd274ea4c0e2a28dd9827a
                at java.base/java.net.URI.create(Unknown Source)
            {code}
            New: h3. Issue Summary
            When we add a while space in the Class/Package name field and save the Logging and Profiling, it gives the System error.
            {quote}
            !screen1.png|thumbnail!
            {quote}

            This is reproducible on Data Center: Yes

            h3. Steps to Reproduce
            Step-1. Go to  !https://confluence.atlassian.com/support/files/790796813/947856965/1/1522298459209/cog-new.png|width=16! * > *General Configuration* > *Logging and Profiling*.

            Step-2. If you run Confluence in a cluster, select a cluster node.

            Step-3. Enter the name in the Class/Package name field, with an extra space at the beginning or end.
            For example below
            * com.atlassian.confluence.mail.session* or *com.atlassian.confluence.mail.session * or *com.atlassian.confluence.mail. session*

            Step-4. Select *Add entry* to add the new class or package to the list.

            h3. Expected Results
            It should not break the Logging and Profiling screen.

            h3. Actual Results
            It breaks the Logging and Profiling screen and show System Error.
            {quote}
            !screen1.png|thumbnail!
            {quote}

            h3. Workaround
            Currently there is no known workaround for this behavior. A workaround will be added here when available.

            h3. Note
            In the logs, we could see we get a java.lang.IllegalArgumentException.
            {code:java}
            ERROR [http-nio-8080-exec-9] [atlassian.confluence.status.SystemErrorInformationLogger] logException Unhandled exception 6c59f45b-6bf4-4837-913a-1cf9a7810746: Invocation of method 'nodeUri' in class com.atlassian.confluence.impl.logging.admin.ConfigureLoggingAction threw exception java.lang.IllegalArgumentException: Illegal character in query at index 35: deleteLogEntry.action?toDeleteName= com.atlassian.confluence.mail.session&atl_token=99522b8729cefe56f1cd274ea4c0e2a28dd9827a at /admin/configurelog4j.vm[line 253, column 38]
             -- traceId: 32d2137bbfa09d38
            org.apache.velocity.exception.MethodInvocationException: Invocation of method 'nodeUri' in class com.atlassian.confluence.impl.logging.admin.ConfigureLoggingAction threw exception java.lang.IllegalArgumentException: Illegal character in query at index 35: deleteLogEntry.action?toDeleteName= com.atlassian.confluence.mail.session&atl_token=99522b8729cefe56f1cd274ea4c0e2a28dd9827a at /admin/configurelog4j.vm[line 253, column 38]
                at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:342)
            {code}
            {code:java}
            Caused by: java.lang.IllegalArgumentException: Illegal character in query at index 35: deleteLogEntry.action?toDeleteName= com.atlassian.confluence.mail.session&atl_token=99522b8729cefe56f1cd274ea4c0e2a28dd9827a
                at java.base/java.net.URI.create(Unknown Source)
            {code}
            Shekhar Gupta made changes -
            Attachment New: screen1.png [ 461164 ]

              b32b3e0ecc4f Kamil Kowalewski
              2ff3e5e81230 Shekhar Gupta
              Affected customers:
              0 This affects my team
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: