]
Brett Meyer updated SRAMP-395:
------------------------------
Fix Version/s: 0.5.0.Alpha1
S-RAMP allows artifacts to be created with invalid characters in the
Artifact Type
----------------------------------------------------------------------------------
Key: SRAMP-395
URL:
https://issues.jboss.org/browse/SRAMP-395
Project: S-RAMP
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 0.4.0 - Tomcat Support
Reporter: Eric Wittmann
Assignee: Eric Wittmann
Fix For: 0.5.0.Final, 0.5.0.Alpha1
There are two ways (I believe) that users can mistakenly create artifacts with an invalid
artifact type. The first is via the CLI:
{code}
s-ramp:upload /path/to/file.ext "Invalid Type"
s-ramp:create "Invalid Type" "Valid Artifact Name" "Description
goes here."
{code}
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.