[ 
https://issues.apache.org/jira/browse/JENA-2203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17453388#comment-17453388
 ] 

ASF subversion and git services commented on JENA-2203:
-------------------------------------------------------

Commit d0c467a11c164dcc4170930805c018e6ded1f533 in jena's branch 
refs/heads/main from Andy Seaborne
[ https://gitbox.apache.org/repos/asf?p=jena.git;h=d0c467a ]

JENA-2203: Set default redirect to ALWAYS


> 303 redirect issues cropped up again in 4.3 snapshot
> ----------------------------------------------------
>
>                 Key: JENA-2203
>                 URL: https://issues.apache.org/jira/browse/JENA-2203
>             Project: Apache Jena
>          Issue Type: Improvement
>    Affects Versions: Jena 4.3.0
>            Reporter: David Beaudet
>            Assignee: Andy Seaborne
>            Priority: Major
>
> The same issue noted in #JENA-1263 with 303 redirects not being followed when 
> loading ontologies seems to have cropped up again in version 4.3.0 and 
> requires the following workaround in client code:
>     static {
>         HttpEnv.setDftHttpClient(
>                 HttpClient.newBuilder()
>                     .connectTimeout(Duration.ofSeconds(10))
>                     .followRedirects(Redirect.ALWAYS)
>                     .build()
>         );
> The default builder sets Redirect.NORMAL which, at least in the latest 
> versions of Java (I'm using OpenJDK 16) doesn't appear to follow 303. 
>  
> Can reproduce with the following:
>         OntModel data = 
> ModelFactory.createOntologyModel(OntModelSpec.OWL_DL_MEM_RULE_INF);
>         data.read("http://purl.org/iso25964/skos-thes";);



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to