With parameter based negotiation, clients MUST provide exactly one PROTOCOL parameter.
However a list of protocols is used as parameter. Moreover, if self.secure_get is set to False the same protocol is set twice for a GET request, since the protocol dictionary contains the same value both for http and https keys in that case.
REQUEST=redirect: If supplied, the service SHALL respond with an HTTP redirect to an endpoint for the PROTOCOL. This parameter is only applicable when the value of the DIRECTION parameter is pullFromVoSpace.
However code expects a redirect even if it doesn't set that parameter.
the service SHALL reply with a XML representation of the transfer results in the response body. The only exception to this is when the DIRECTION is pullFromVoSpace and the REQUEST=redirect parameter is provided.
Considering this, shouldn't be more standard to use text/xml in the Accept header, rather than text/plain?
Hi, there are some non-standard behaviors in
get_node_url
method, comparing it with URL Parameter Transfers behavior described in the VOSpace specification.However a list of protocols is used as parameter. Moreover, if
self.secure_get
is set toFalse
the same protocol is set twice for aGET
request, since the protocol dictionary contains the same value both forhttp
andhttps
keys in that case.However code expects a redirect even if it doesn't set that parameter.
Considering this, shouldn't be more standard to use
text/xml
in theAccept
header, rather thantext/plain
?Thank you!