It's all about the answers!

Ask a question

How is my HTTP Get request to query for DNG artifacts failing with 6.0.3 where it worked in 6.0.2?

Chandrasekhar Puliroju (1323) | asked Apr 18 '17, 10:55 a.m.

I am attempting to send an HTTP Get request to query for DNG artifacts.  I am trying to do this at a project level and just get all the requirement artifacts back.  I have a library that creates these requests and works perfectly for 6.0.2 but fails for 6.0.3 with similar setup.  GC is not enabled.  Should there be something else provided in the GET request that I am missing? 

Here is my HTTP Get request:

I get a 400 Bad Request which follows:
    <err:detailedMessage rdf:datatype=""
    >java.lang.RuntimeException: Component Feature is enabled but a Project URI was submitted as the component URI. Could not safely compute the Component URI for the Type System as no local configuration was supplied and there may be &gt;1 Component associated with the Project..  (More info found at entry [aab7bf171ac589b0] in the RM application server log)</err:detailedMessage>
    <err:errorMessage rdf:datatype=""
    >Falsche Anforderung</err:errorMessage>
    <err:errorStatus rdf:datatype=""

I have a full fiddler log of my procedure if it is helpful.  Is this a bug introduced in 6.0.3 or should I be sending the request differently?

Chandrasekhar Puliroju commented Apr 18 '17, 11:23 a.m.

 I have also tried the following HTTP Get request and get a bad request with the same error message:

oslc.query = true
oslc.pageSize = 100
oslc.prefix = dcterms=<> = *

Accepted answer

permanent link
Benjamin Silverman (4.1k610) | answered Apr 18 '17, 3:26 p.m.

Hi Chandrasekhar,

I believe your request should look like my "Updated" one below (the ? should be changed to an & before oslc.paging).  If I use your example, I get the same error but mine works ok.  Maybe your library is doing something different, as I'm not sure this would have worked in a previous version either. 





Chandrasekhar Puliroju selected this answer as the correct answer

Benjamin Silverman commented Apr 18 '17, 3:27 p.m.

It looks like the asterisk at the very end (&*) was removed.  That seems to be a formatting issue with the forum and not something I removed intentionally.

Chandrasekhar Puliroju commented Apr 19 '17, 10:18 a.m.

 Thanks! I am in contact with the developer who implements the creation of these query GET requests.  He will need to modify his code in order for me to test with this correction but I will communicate results when this is done!

Chandrasekhar Puliroju commented Apr 27 '17, 2:19 p.m.

 That fixed it, thanks!

Your answer

Register or to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.