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

XMLRPC interfaces allow creation of invalid spaces

    XMLWordPrintable

Details

    • We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      Notwithstanding the comment in CONF-2779 (XMLRPC clients are expected to do their own validation)

      If I create a space using the XMLRPC interface with an invalid space key of CRAZY-SPACE, the space is still created. If I know the page names etc, then I can go and view those pages, however there are big chunks of functionality that don't work. Looking through the log, errors of the following type occur:

      14:15:52,704 DEBUG [SimpleDisplayServlet] Failed to parse path /CRAZY-SPACE
      java.text.ParseException: Simple path: CRAZY-SPACE could not be translated
      at com.atlassian.confluence.servlet.simpledisplay.SimpleDisplayServlet.parsePath(SimpleDisplayServlet.java:89)
      at com.atlassian.confluence.servlet.simpledisplay.SimpleDisplayServlet.doGet(SimpleDisplayServlet.java:42)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
      ...

      It would seem to me, that in the best interests of overall Confluence health, an invalid space should not really be creatable via XML-RPC or any other interface.

      This is not a showstopper, or even really a "bug" if you consider the XMLRPC interface to be an admin only interface that lets you do dumb things. It's just something worth considering.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bda0663e090a Ben Walding
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: