[HAP-929] Special characters in property value behave differently than when adding via REST api Created: 14/May/17  Updated: 14/Nov/17  Resolved: 29/Jun/17

Status: Resolved
Project: Jenkins Artifactory Plug-in
Component/s: None
Affects Version/s: 2.11.0
Fix Version/s: 2.12.0

Type: Bug Priority: High
Reporter: Itamar Berman-Eshel Assignee: Yahav Itzhak
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relationship
is related to BI-416 Special characters in property value ... Resolved

 Description   

The observed inconsistencies are:
1. '$' (dollar) = '$' and after become null/empty
2. '=' (equal) = property not created
3. '/' (slash) = artifact not published

These characters are deployable via REST (with escaping) and in the UI without escaping:
1. curl -X PUT -uadmin:password "http://localhost:8081/artifactory/api/storage/dummy3/test.txt?properties=RESTapi=1\$1"
2. curl -X PUT -uadmin:password "http://localhost:8081/artifactory/api/storage/dummy3/test.txt?properties=RESTapi=1\=1"
3. curl -X PUT -uadmin:password "http://localhost:8081/artifactory/api/storage/dummy3/test.txt?properties=RESTapi=1/1"

';' (semi-colon) = ';' and after become null/empty (from Jenkins), this cannot be added via REST or UI since the ';' is considered a multi value separator



 Comments   
Comment by Yahav Itzhak [ 12/Jun/17 ]

Few comments:
1. The "$" and "/" characters already works fine in both property name and the value (nothing to fix there according to our testing).
2. Currently, the property value cannot include "=". As part of the fix, you'll be able to include "=" as part of the property value, but you will not be able to have it as part of the property name. "=" is not needed to be escaped.
3. ";" will not be supported, since they are currently the delimiter between properties.

Generated at Wed Oct 23 00:59:20 UTC 2019 using JIRA 7.6.16#76018-sha1:9ed376192612a49536ac834c64177a0fed6290f5.