Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-7121

Relative dot segment paths not resolved in org.apache.camel.core.osgi.OsgiClassResolver

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.12.2
    • 2.14.0
    • camel-blueprint, osgi
    • None
    • Java 7

    • Unknown

    Description

      org.apache.camel.core.osgi.OsgiClassResolver.loadResourceAsURL(String uri) does normalize a/b/c/../../file path when passed to Bundle.getResource()
      per RFC 3986
      As a result, path a/file is resolved but not path a/b/c/../../file.

      Apache Felix claims it should not normalize this path as stated in
      https://issues.apache.org/jira/browse/FELIX-369

      This happens in context of relative ../../file path for schema import that is used in validator.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            apiwoni Andre Piwoni
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: