Closed ericvaandering closed 10 years ago
Comment by wildish on Fri Mar 30 08:12:42 2012
Hmm, let's see now. I can fix it myself, or pass the buck to Chih-Hao. Well, no contest!
https://savannah.cern.ch/bugs/index.php?93189 filed, and I close this one :-)
Actually, as commented there, it looks like the request-ID was accidentally converted from a multi-valued parameter to a single valued one during the exercise of enforcing argument validation.
Closed by wildish on Fri Mar 30 08:12:42 2012
Original Savannah ticket 93185 reported by wildish on Fri Mar 30 08:03:50 2012.
Hi Tony,
the Subscriptions page claims that you can input a "List of Request IDs, separated by white space or commas" in the "Select Data" --> "Requests:" filter. However, if you put more than one request ID in the box and click on "Apply Filter", the page gives the error message: "Error retrieving subscriptions data".
For example, if you go to:
https://cmsweb-testbed.cern.ch/phedex/prod/Data::Subscriptions
and put this in the "Requests" filter:
378255,378256
you get the error message above.
The underlying reason, of course, is that the Subscriptions API in the datasvc doesn't support multiple values for the "request" argument:
https://cmsweb-testbed.cern.ch/phedex/datasvc/xml/prod/subscriptions?request=378255&request=378256
+verbatim+ "400 Bad Request
The 'REQUEST' parameter ("ARRAY(0x97e0550)") to (eval) was an 'arrayref', which is not one of the allowed types: scalar\n\n" -verbatim-
I will leave it up to you to decide if you prefer to correct the help text in the "Request" box on the webpage, or if you want to open a feature request for Chih-Hao to add support for multiple request arguments in the API.
Cheers Nicolo'