Closed jsmartt closed 7 years ago
@tmiotto , @ricardogpsf , @aalexmonteiro , @fgbulsoni or @piantola , do any of you have any concerns with this, or shall I implement it?
@jsmartt I have one concern that is to avoid being eternally redirected, maybe we should have a limit for it, or timeout.
By the way, I'm okay with you implementing it.
@tmiotto , correct. We'd definitely have to set a limit
@jsmartt I'm okay too with the idea of implementation.
Scenario/Intent
The REST methods should handle redirects. One issue I've already run into is that for Synergy Enclsoures, trying to get the script (
enc.script
) gives a 301 error message saying it has moved to a LogicalEnclosure uri.I think we could implements something pretty similar to this, where we only follow redirects up to 3 or 5 times.
Because we need the data to re-submit the request, we'll need to handle this in the rest_api method, not response_handler.
Environment Details
Steps to Reproduce
With a client using api_version 300 as
@client
, talking to a v300 DCS...Expected Result
It to be able to get the script (following any redirects needed to get there)
Actual Result
I get this error: