Adding a class or package to the Class/Package name field with special characters or space causes an exception

XMLWordPrintable

    • 13
    • Severity 3 - Minor
    • 1

      Issue Summary

      Adding class with special characters or space breaks the viewlog4j view and prompts an exception. This includes leading and trailing spaces

      This is reproducible on Data Center: Yes

      Steps to Reproduce

      1. Navigate to » General configuration » Logging and Profiling.
      2. Add following class to the Class/Package text box.
      3. Click Add entry.

      Expected Results

      Incorrect class is added should be handled gracefully and allow admin to correct.

      Actual Results

      Exception prompts:

      configurelog4j.vm

      </td>
                          <td>
                          <a href="$action.nodeUri("deleteLogEntry.action?toDeleteName=$entry.clazz&#url_xsrfToken()")">Remove</a>
                          </td>
                          </tr>
      

      Workaround

      Restart Confluence to revert temporary logging.

        1. Screenshot 2023-06-21 at 11.03.45 AM.png
          191 kB
          Mark M
        2. bugVersion8.3.0.png
          198 kB
          Mark M

            Assignee:
            Anshul Chokhani
            Reporter:
            Mark M (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: