Skip to content

Ff94 webdav bug #837

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jul 25, 2019
Merged

Ff94 webdav bug #837

merged 6 commits into from
Jul 25, 2019

Conversation

tgoldina
Copy link
Contributor

Follow-up for FIREFLY-94: fixes for bugs discovered while testing LSST workspace.
https://jira.lsstcorp.org/browse/DM-13112

See SUIT pull request at lsst/suit#15 for the info how to test.

@tgoldina tgoldina requested a review from loitly July 17, 2019 21:57
@tgoldina tgoldina self-assigned this Jul 17, 2019
Copy link
Contributor

@loitly loitly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@tgoldina
Copy link
Contributor Author

In the two latest commits:

  • fixed Bad Request, when saving a table to workspace. This was a missed case from firefly-53.

  • added missed authorization credentials to a connection in IPACTableFromSource. This was causing 401 Unauthorized, when querying TAP schema from an LSST TAP server, which now requires authorization.

I've also added more error checking to IPACTableFromSource. Since URLDownload treats only the statuses between 300 and 400 as failures, any other bad status can go unnoticed. In my case, we happily parsed the returned html into an IPAC table with one column "". After my change, IPACTableFromSource will treat HTTP status less than 200 or more or equal than 300 as a failure. This is consistent with HTTPServices.
@loitly , @robyww, please let me know if you see a problem with this.

@loitly
Copy link
Contributor

loitly commented Jul 19, 2019

HTTP status less than 200 or more or equal than 300 as a failure. This is consistent with HTTPServices

Technically, 3xx are not errors. It may just require additional steps. In HttpServices case, follow-redirect is turned on. So, some of the 3xx should be handled already. In other cases, we may decide to say it's an error. But in general, 3xx are not errors.

@tgoldina
Copy link
Contributor Author

I don't know why URLDownload throws FailedRequestException on responseCode>=300 && responseCode<400, I did not want to change this behavior, in case something is relying on it. No changes there since 2017. So I just wanted to make sure we catch all other error statuses when getting table from URL.

@loitly
Copy link
Contributor

loitly commented Jul 19, 2019

@tgoldina what you did is correct. I was only commenting on the 3xx status and how HttpServices are treating it.

@tgoldina tgoldina merged commit 2cb760c into rc-2019.2 Jul 25, 2019
@robyww robyww deleted the ff94_webdav_bug branch October 30, 2019 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants