java - Is where anywhere list of "allowed" characters for the Defect name? -


i tried create defect in rally name - between quotes: "assertion error in '<'verify login ui toolkit 2.1 sample web app.'>'" unfortunately saves "assertion error in " why rest cannot saved , why rally not give warning if using illegal characters in name? thanks

i have not come across list of characters not expected work, in context of request using angle brackets introduce ambiguity because intention not clear if user meant add html tag. able create defects angle brackets in same name used replacing brackets less , greater equivalents in:

assertion error in &lt;verify login ui toolkit 2.1 sample web app.&gt;

here java code written with java rest toolkit.

    public static void main(string[] args) throws urisyntaxexception, ioexception {         string host = "https://rally1.rallydev.com";         string username = "user@co.com";         string password = "test";         string projectref = "/project/1791267822";             string applicationname = "restexample_createdefect";           rallyrestapi restapi = new rallyrestapi(                 new uri(host),                 username,                 password);         restapi.setapplicationname(applicationname);             try {             (int i=0; i<3; i++) {                 jsonobject newdefect = new jsonobject();                 newdefect.addproperty("name", "assertion error in &lt;verify login ui toolkit 2.1 sample web app.&gt;");                 newdefect.addproperty("project", projectref);                  createrequest createrequest = new createrequest("defect", newdefect);                 createresponse createresponse = restapi.create(createrequest);                   if (createresponse.wassuccessful()) {                 system.out.println(string.format("created %s", createresponse.getobject().get("_ref").getasstring()));                               string ref = ref.getrelativeref(createresponse.getobject().get("_ref").getasstring());                     system.out.println(string.format("\nreading defect %s...", ref));                     getrequest getrequest = new getrequest(ref);                            } else {                 string[] createerrors;                 createerrors = createresponse.geterrors();                     system.out.println("error occurred creating defect: ");                 (int j=0; i<createerrors.length;j++) {                     system.out.println(createerrors[j]);                 }                 }             }         } {             restapi.close();         }        }    } 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -