Uploaded image for project: 'Artificer'
  1. Artificer
  2. ARTIF-395

S-RAMP allows artifacts to be created with invalid characters in the Artifact Type

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 0.4.0 - Tomcat Support
    • Fix Version/s: 0.5.0.Alpha1
    • Component/s: None
    • Labels:
      None

      Description

      There are two ways (I believe) that users can mistakenly create artifacts with an invalid artifact type. The first is via the CLI:

      s-ramp:upload /path/to/file.ext "Invalid Type"
      s-ramp:create "Invalid Type" "Valid Artifact Name" "Description goes here."
      

      The other is via the s-ramp UI's Import Artifact dialog. This dialog allows the user to type in any Artifact Type they want, which is an opportunity to mess it up.

      We need to make sure we have appropriate validation of any custom Artifact Type provided by the user on the server (probably in the REST layer).

      For bonus points we can add validation to the UI and CLI to prevent the request from even being made to the server unless it's valid.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                eric.wittmann Eric Wittman
                Reporter:
                eric.wittmann Eric Wittman
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: