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

XML-RPC call getBlogEntry should not throw an exception if we are requesting a Page

XMLWordPrintable

      Summary

      The XML-RPC call getBlogEntry should not throw an exception if we are requesting a Page.

      Environment

      • Confluence with XML-RPC Enabled

      Steps to Reproduce

      1. Create a page in Confluence
      2. Create a blog in Confluence
      3. Get the page IDs of both the page and the blog (Edit the page/blog and copy the ID from the URL)
      4. Run an XML-RPC call getBlogEntry with the blog ID -> Content of the blog is returned
      5. Run an XML-RPC call getBlogEntry with the page ID

      Expected Results

      Payload returns a message that the requested ID is a page and not a blog

      Actual Results

      Confluence throws a ClassCastException with a message that it could not cast a Page object to a BlogPost object

              Unassigned Unassigned
              rslaiby Rudy Slaiby
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: