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
HTTP 307 and HTTP 308 Redirects are not handled #849
Comments
I have been seeing the same error when trying to open |
This is working in the 5.5.0-beta-SNAPSHOT. MONDO loads fine. The redirect for coocon lands at a website, so the parse fails (but the redirect works). |
I have tested with |
Hi @miranda-zhang,
It uses request headers set by the OWL API, and |
I've just done some digging and I've found out that HTTP 308 redirects are in fact not followed. The OWL API that Protege uses follows HTTP 301 Moved Permanently, HTTP 302 Found and HTTP 303 See Other redirects. As a workaround, are you able to change your redirect to a HTTP 301? It seems like HTTP 308 (and HTTP 307 for that matter) redirects could/should be supported in the OWL API. I'll file a request for this. p.s. This is the accept header for a request
|
I've filed an issue for this on the OWL API tracker: owlcs/owlapi#821 |
Pushing this to 5.6.0 milestone because the beta-9 milestone seems stable and I'm reluctant to update the OWL API at this juncture. |
This addresss #849. It also addresses slow selection behavior (exhibited with GO-edit).
Closed with the upgrade to the OWL API 4.5.11. Note @miranda-zhang that the RDF/XML file is not found (404 error) but this nothing to do with Protege. |
My current configuration used redirect code 308 on
https://w3id.org/cocoon/v1.0
It opens fine in the browser, but if I try “Open from URL”, it throws a
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
If I try to open with the original link to file, it works fine in protoge.
https://miranda-zhang.github.io/cloud-computing-schema/v1.0/ontology.ttl
My redirect rules are listed here
https://github.com/perma-id/w3id.org/blob/master/cocoon/.htaccess
There is an issue filed with w3id.org, but I also suspect there maybe an issue with protoge too.
perma-id/w3id.org#1063
The text was updated successfully, but these errors were encountered: