[
https://issues.apache.org/jira/browse/FELIX-2912?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Richard S. Hall resolved FELIX-2912.
------------------------------------
Resolution: Fixed
Fix Version/s: bundlerepository-1.6.6
Assignee: Richard S. Hall
I applied the patch. Please close this issue if satisfied, thanks!
> 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
> Assignee: Richard S. Hall
> Fix For: bundlerepository-1.6.6
>
> Attachments: FELIX-2912.2.patch, FELIX-2912.patch
>
>
> 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 better.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira