[jira] [Updated] (FELIX-2912) Host name is lost in exceptions when dealing with Windows shared drives

2011-05-11 Thread Jarek Gawor (JIRA)

 [ 
https://issues.apache.org/jira/browse/FELIX-2912?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jarek Gawor updated FELIX-2912:
---

Attachment: FELIX-2912.2.patch

Attached another version of the patch that is more generic.


> 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
> 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


[jira] [Updated] (FELIX-2912) Host name is lost in exceptions when dealing with Windows shared drives

2011-04-12 Thread Jarek Gawor (JIRA)

 [ 
https://issues.apache.org/jira/browse/FELIX-2912?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jarek Gawor updated FELIX-2912:
---

Attachment: FELIX-2912.patch

Proposed patch for this issue. The code catches the FileNotFoundException and 
throws a new FileNotFoundException with full URL if the URL specified a 
hostname.


> 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
> Attachments: 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