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

RPC: removing a non-existent space results in a 'No permission to remove spaces' XmlRpcSxception

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 1.4.3
    • 1.3
    • None

      org.apache.xmlrpc.XmlRpcException: java.lang.Exception: com.atlassian.confluence.rpc.NotPermittedException: No permission to remove spaces.
      at org.apache.xmlrpc.XmlRpcClient$Worker.execute(Unknown Source)
      at org.apache.xmlrpc.XmlRpcClient.execute(Unknown Source)
      at com.atlassian.confluence.rpc.SpaceRpcAcceptanceTest.testSpaceMethods(SpaceRpcAcceptanceTest.java:57)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at com.intellij.rt.execution.junit2.JUnitStarter.main(JUnitStarter.java:31)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)

            [CONFSERVER-2287] RPC: removing a non-existent space results in a 'No permission to remove spaces' XmlRpcSxception

            Hi Nick,

            The return exception was probably not the right one to use. Charles has changed this to:

            "Space does not exist, or you do not have permission to view it."

            Jeremy Higgs added a comment - Hi Nick, The return exception was probably not the right one to use. Charles has changed this to: "Space does not exist, or you do not have permission to view it."

            assertFalse(((Boolean) xmlrpc.execute("confluence1.removeSpace", makeParams(token, "bullshit space"))).booleanValue());

            causes this error.

            Nick Faiz [OLD] (Inactive) added a comment - assertFalse(((Boolean) xmlrpc.execute("confluence1.removeSpace", makeParams(token, "bullshit space"))).booleanValue()); causes this error.

              8d92d19feb5e Jeremy Higgs
              nick@atlassian.com Nick Faiz [OLD] (Inactive)
              Affected customers:
              0 This affects my team
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: