Uploaded image for project: 'GeoServer'
  1. GEOS-8870

Problem when try change Workspace name using API Rest

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 2.13.2
    • Fix Version/s: 2.15-M0
    • Component/s: REST
    • Labels:
      None

      Description

      When try to change workspace name using API Rest, geoserver gives error

      $curl -v -u admin:geoserver -XPUT -H "Content-type: application/json" -d "{ "workspace": { "name":"topp2"}}" http://localhost:8080/geoserver/rest/workspaces/topp

      Caused by: org.geoserver.rest.RestException 403 FORBIDDEN: Can't change name of workspace

      Line 178 at WorkspaceController.workspacePut theres wrong logic test:
      {{!workspaceName.equals(infoName) }} when should be workspaceName.equals(infoName)
      Thats because this test should throw an exception if the workspaceName is equal as requested one, not different.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              luiz.caires Luiz Caires
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: