Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-6642

Attempting to delete system artifact, by specifying user namespace gives 200

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4.3
    • Fix Version/s: 4.1.0
    • Component/s: App Fabric
    • Labels:
      None
    • Release Notes:
      Attempting to delete a system artifact by specifying a user namespace (that previously returned a 200, even though the artifact was not deleted) will now return a 404, as that combination of system and user will never occur.
    • Rank:
      1|hzzh27:

      Description

      I'm making HTTP request:
      DELETE http://HOST:PORT/v3/namespaces/foo/artifacts/core-plugins/versions/1.4.0-SNAPSHOT

      This artifact exists in the system namespace, but not in the foo namespace.
      However, I still get 200 as a response.
      It doesn't seem like the artifact is actually deleted, since I can still see them when I open Hydrator UI.

      The expected behavior is either a 404 (resolving with system namespace shouldn't happen for deletes), or a 400 (user can't delete system artifacts).

        Attachments

          Activity

            People

            • Assignee:
              denton Denton Liu
              Reporter:
              ali.anwar Ali Anwar
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: