felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jarek Gawor (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FELIX-2912) Host name is lost in exceptions when dealing with Windows shared drives
Date Tue, 12 Apr 2011 19:26:05 GMT
Host name is lost in exceptions when dealing with Windows shared drives

                 Key: FELIX-2912
                 URL: https://issues.apache.org/jira/browse/FELIX-2912
             Project: Felix
          Issue Type: Bug
          Components: Bundle Repository (OBR)
    Affects Versions: bundlerepository-1.6.4
            Reporter: Jarek Gawor

When OBR repository URL specifies a Windows shared drive for example: file://myhost/mydir/myrepo.xml
and the myrepo.xml specifies a relative uri to a mybundle.jar that does not exist in that
location, OBR will throw the following exception (during Resolver.deploy()):

java.io.FileNotFoundException: mydir/mybundle.jar
        at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection.java:441)
        at org.apache.felix.bundlerepository.impl.FileUtil.openURL(FileUtil.java:203)
        at org.apache.felix.bundlerepository.impl.FileUtil.openURL(FileUtil.java:196)
        at org.apache.felix.bundlerepository.impl.ResolverImpl.deploy(ResolverImpl.java:598)

The hostname part of the repository url is lost in the exception. 

The root cause of this is probably somewhere in the JDK but OBR could handle this case a bit

This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message