Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-2203

303 redirect issues cropped up again in 4.3 snapshot

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Jena 4.3.0
    • Jena 4.3.0
    • None
    • None

    Description

      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");

      Attachments

        Issue Links

          Activity

            People

              andy Andy Seaborne
              beaudet David Beaudet
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: