Uploaded image for project: 'Tiles Request'
  1. Tiles Request
  2. TREQ-21

Within an OSGi environment, URLApplicationResource must throw a FileNotFoundException instead of IOException when a resource is not found

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.7
    • Labels:
      None

      Description

      Otherwise, BaseLocaleUrlDefinitionDAO does not load resources correctly, see TILES-589.

      In general, if the URL#openConnection method of a local protocol is called, an IOException should be transformed into a FileNotFoundException as it implies that the resource does not exist. This should be avoided for remote protocols because an IOException can mean something different, for instance that the network connection could not be established.

      By default any protocol is considered to be local, except of

      • ftp
      • http
      • https
      • mailto
      • netdoc
      • Any additional protocol specified via system parameter -Dtiles.remoteProtocols

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mck Michael Semb Wever
                Reporter:
                roland.hauser@bechtle.ch Roland Hauser

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Issue deployment