You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Thilo Planz (JIRA)" <ji...@apache.org> on 2009/06/23 05:08:07 UTC
[jira] Created: (FELIX-1269) MalformedURLException for bundle
locations installed by FileInstall
MalformedURLException for bundle locations installed by FileInstall
-------------------------------------------------------------------
Key: FELIX-1269
URL: https://issues.apache.org/jira/browse/FELIX-1269
Project: Felix
Issue Type: Bug
Components: File Install
Affects Versions: fileinstall-1.0.0
Environment: FileInstall 1.1.0
Felix 1.8.0
Windows XP
Reporter: Thilo Planz
Priority: Minor
Bundles installed by FileInstall have a bundle location that does not include a protocol:
-> ps -l
START LEVEL 1
ID State Level Location
[ 0] [Active ] [ 0] System Bundle
[ 1] [Active ] [ 1] file:/e:/osgi/org.apache.felix.fileinstall-1.0.0.jar <= "normal"
[ 2] [Active ] [ 1] /C:/bundles/org.osgi.compendium-1.2.0.jar <= file-installed
As a result such a bundle cannot be updated using the shell command:
-> update 2
ERROR: Unable to update the bundle. (java.net.MalformedURLException: no protocol: /C:/bundles/org.osgi.compendium-1.2.0.jar)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (FELIX-1269) MalformedURLException for bundle
locations installed by FileInstall
Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-1269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12723075#action_12723075 ]
Richard S. Hall commented on FELIX-1269:
----------------------------------------
You can always update a bundle by typing in the URL from which you want the update to come, e.g., "update 2 http://foo/bar.jar"
> MalformedURLException for bundle locations installed by FileInstall
> -------------------------------------------------------------------
>
> Key: FELIX-1269
> URL: https://issues.apache.org/jira/browse/FELIX-1269
> Project: Felix
> Issue Type: Bug
> Components: File Install
> Affects Versions: fileinstall-1.0.0
> Environment: FileInstall 1.1.0
> Felix 1.8.0
> Windows XP
> Reporter: Thilo Planz
> Priority: Minor
>
> Bundles installed by FileInstall have a bundle location that does not include a protocol:
> -> ps -l
> START LEVEL 1
> ID State Level Location
> [ 0] [Active ] [ 0] System Bundle
> [ 1] [Active ] [ 1] file:/e:/osgi/org.apache.felix.fileinstall-1.0.0.jar <= "normal"
> [ 2] [Active ] [ 1] /C:/bundles/org.osgi.compendium-1.2.0.jar <= file-installed
> As a result such a bundle cannot be updated using the shell command:
> -> update 2
> ERROR: Unable to update the bundle. (java.net.MalformedURLException: no protocol: /C:/bundles/org.osgi.compendium-1.2.0.jar)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (FELIX-1269) MalformedURLException for bundle
locations installed by FileInstall
Posted by "Thilo Planz (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-1269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12723012#action_12723012 ]
Thilo Planz commented on FELIX-1269:
------------------------------------
> Firstly, why do you have to update a bundle that's managed by fileinstall?
I shut down FileInstall sometimes.
Especially when it repeatedly tries (and fails to) resolve a bundle whose dependencies are still missing every two seconds.
This may only be a problem during development.
> Secondly, assumption that the location is a URL is a problem in itself.
Maybe.
But as it is, the Bundle.update() method (which is called by the "update" shell command) does not work.
Making it a valid URL would improve interoperability.
> MalformedURLException for bundle locations installed by FileInstall
> -------------------------------------------------------------------
>
> Key: FELIX-1269
> URL: https://issues.apache.org/jira/browse/FELIX-1269
> Project: Felix
> Issue Type: Bug
> Components: File Install
> Affects Versions: fileinstall-1.0.0
> Environment: FileInstall 1.1.0
> Felix 1.8.0
> Windows XP
> Reporter: Thilo Planz
> Priority: Minor
>
> Bundles installed by FileInstall have a bundle location that does not include a protocol:
> -> ps -l
> START LEVEL 1
> ID State Level Location
> [ 0] [Active ] [ 0] System Bundle
> [ 1] [Active ] [ 1] file:/e:/osgi/org.apache.felix.fileinstall-1.0.0.jar <= "normal"
> [ 2] [Active ] [ 1] /C:/bundles/org.osgi.compendium-1.2.0.jar <= file-installed
> As a result such a bundle cannot be updated using the shell command:
> -> update 2
> ERROR: Unable to update the bundle. (java.net.MalformedURLException: no protocol: /C:/bundles/org.osgi.compendium-1.2.0.jar)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (FELIX-1269) MalformedURLException for bundle
locations installed by FileInstall
Posted by "Filippo Diotalevi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-1269?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Filippo Diotalevi resolved FELIX-1269.
--------------------------------------
Resolution: Fixed
Fix Version/s: fileinstall-1.4.0
Thanks for submitting the patch. The use case it address is unusual, but I believe it's a good thing to install all the bundles using the URI.
I committed the cumulative patch attached to FELIX-1387
svn ci -m "FELIX-1269 FELIX-1387 cumulative patch submitted by Sahoo"
Sending fileinstall/src/main/java/org/apache/felix/fileinstall/DirectoryWatcher.java
Sending fileinstall/src/main/java/org/apache/felix/fileinstall/Jar.java
Transmitting file data ..
Committed revision 795957.
Please close the issue if satisfied.
> MalformedURLException for bundle locations installed by FileInstall
> -------------------------------------------------------------------
>
> Key: FELIX-1269
> URL: https://issues.apache.org/jira/browse/FELIX-1269
> Project: Felix
> Issue Type: Bug
> Components: File Install
> Affects Versions: fileinstall-1.0.0
> Environment: FileInstall 1.1.0
> Felix 1.8.0
> Windows XP
> Reporter: Thilo Planz
> Assignee: Filippo Diotalevi
> Priority: Minor
> Fix For: fileinstall-1.4.0
>
> Attachments: Felix-1269.patch
>
>
> Bundles installed by FileInstall have a bundle location that does not include a protocol:
> -> ps -l
> START LEVEL 1
> ID State Level Location
> [ 0] [Active ] [ 0] System Bundle
> [ 1] [Active ] [ 1] file:/e:/osgi/org.apache.felix.fileinstall-1.0.0.jar <= "normal"
> [ 2] [Active ] [ 1] /C:/bundles/org.osgi.compendium-1.2.0.jar <= file-installed
> As a result such a bundle cannot be updated using the shell command:
> -> update 2
> ERROR: Unable to update the bundle. (java.net.MalformedURLException: no protocol: /C:/bundles/org.osgi.compendium-1.2.0.jar)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (FELIX-1269) MalformedURLException for bundle
locations installed by FileInstall
Posted by "Filippo Diotalevi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-1269?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Filippo Diotalevi reassigned FELIX-1269:
----------------------------------------
Assignee: Filippo Diotalevi
> MalformedURLException for bundle locations installed by FileInstall
> -------------------------------------------------------------------
>
> Key: FELIX-1269
> URL: https://issues.apache.org/jira/browse/FELIX-1269
> Project: Felix
> Issue Type: Bug
> Components: File Install
> Affects Versions: fileinstall-1.0.0
> Environment: FileInstall 1.1.0
> Felix 1.8.0
> Windows XP
> Reporter: Thilo Planz
> Assignee: Filippo Diotalevi
> Priority: Minor
> Attachments: Felix-1269.patch
>
>
> Bundles installed by FileInstall have a bundle location that does not include a protocol:
> -> ps -l
> START LEVEL 1
> ID State Level Location
> [ 0] [Active ] [ 0] System Bundle
> [ 1] [Active ] [ 1] file:/e:/osgi/org.apache.felix.fileinstall-1.0.0.jar <= "normal"
> [ 2] [Active ] [ 1] /C:/bundles/org.osgi.compendium-1.2.0.jar <= file-installed
> As a result such a bundle cannot be updated using the shell command:
> -> update 2
> ERROR: Unable to update the bundle. (java.net.MalformedURLException: no protocol: /C:/bundles/org.osgi.compendium-1.2.0.jar)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (FELIX-1269) MalformedURLException for bundle
locations installed by FileInstall
Posted by "Sahoo (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-1269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12723148#action_12723148 ]
Sahoo commented on FELIX-1269:
------------------------------
Thilo,
1. No, I still don't understand how explicitly updating a bundle helps when the dependencies are missing.
2. Even if a file changes while the framework has been shutdown, fileinstall is expected to update the bundle when framework is started subsequently.
Sahoo
> MalformedURLException for bundle locations installed by FileInstall
> -------------------------------------------------------------------
>
> Key: FELIX-1269
> URL: https://issues.apache.org/jira/browse/FELIX-1269
> Project: Felix
> Issue Type: Bug
> Components: File Install
> Affects Versions: fileinstall-1.0.0
> Environment: FileInstall 1.1.0
> Felix 1.8.0
> Windows XP
> Reporter: Thilo Planz
> Priority: Minor
>
> Bundles installed by FileInstall have a bundle location that does not include a protocol:
> -> ps -l
> START LEVEL 1
> ID State Level Location
> [ 0] [Active ] [ 0] System Bundle
> [ 1] [Active ] [ 1] file:/e:/osgi/org.apache.felix.fileinstall-1.0.0.jar <= "normal"
> [ 2] [Active ] [ 1] /C:/bundles/org.osgi.compendium-1.2.0.jar <= file-installed
> As a result such a bundle cannot be updated using the shell command:
> -> update 2
> ERROR: Unable to update the bundle. (java.net.MalformedURLException: no protocol: /C:/bundles/org.osgi.compendium-1.2.0.jar)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (FELIX-1269) MalformedURLException for bundle
locations installed by FileInstall
Posted by "Sahoo (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-1269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12722963#action_12722963 ]
Sahoo commented on FELIX-1269:
------------------------------
Firstly, why do you have to update a bundle that's managed by fileinstall?
Secondly, assumption that the location is a URL is a problem in itself.
> MalformedURLException for bundle locations installed by FileInstall
> -------------------------------------------------------------------
>
> Key: FELIX-1269
> URL: https://issues.apache.org/jira/browse/FELIX-1269
> Project: Felix
> Issue Type: Bug
> Components: File Install
> Affects Versions: fileinstall-1.0.0
> Environment: FileInstall 1.1.0
> Felix 1.8.0
> Windows XP
> Reporter: Thilo Planz
> Priority: Minor
>
> Bundles installed by FileInstall have a bundle location that does not include a protocol:
> -> ps -l
> START LEVEL 1
> ID State Level Location
> [ 0] [Active ] [ 0] System Bundle
> [ 1] [Active ] [ 1] file:/e:/osgi/org.apache.felix.fileinstall-1.0.0.jar <= "normal"
> [ 2] [Active ] [ 1] /C:/bundles/org.osgi.compendium-1.2.0.jar <= file-installed
> As a result such a bundle cannot be updated using the shell command:
> -> update 2
> ERROR: Unable to update the bundle. (java.net.MalformedURLException: no protocol: /C:/bundles/org.osgi.compendium-1.2.0.jar)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (FELIX-1269) MalformedURLException for bundle
locations installed by FileInstall
Posted by "Sahoo (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-1269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12723950#action_12723950 ]
Sahoo commented on FELIX-1269:
------------------------------
I can't imagine how FELIX-1165 is related to us not setting the location as a URL with scheme. Please raise the severity of FELIX-1165 to get to the root of your problem. If you find out that these two issues are unrelated, you can close this issue.
> MalformedURLException for bundle locations installed by FileInstall
> -------------------------------------------------------------------
>
> Key: FELIX-1269
> URL: https://issues.apache.org/jira/browse/FELIX-1269
> Project: Felix
> Issue Type: Bug
> Components: File Install
> Affects Versions: fileinstall-1.0.0
> Environment: FileInstall 1.1.0
> Felix 1.8.0
> Windows XP
> Reporter: Thilo Planz
> Priority: Minor
>
> Bundles installed by FileInstall have a bundle location that does not include a protocol:
> -> ps -l
> START LEVEL 1
> ID State Level Location
> [ 0] [Active ] [ 0] System Bundle
> [ 1] [Active ] [ 1] file:/e:/osgi/org.apache.felix.fileinstall-1.0.0.jar <= "normal"
> [ 2] [Active ] [ 1] /C:/bundles/org.osgi.compendium-1.2.0.jar <= file-installed
> As a result such a bundle cannot be updated using the shell command:
> -> update 2
> ERROR: Unable to update the bundle. (java.net.MalformedURLException: no protocol: /C:/bundles/org.osgi.compendium-1.2.0.jar)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (FELIX-1269) MalformedURLException for bundle
locations installed by FileInstall
Posted by "Thilo Planz (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-1269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12723390#action_12723390 ]
Thilo Planz commented on FELIX-1269:
------------------------------------
> 1. No, I still don't understand how explicitly updating a bundle helps when the dependencies are missing.
I am not asking for that.
I was just giving an example for a situation where a bundle was installed initially by FIleInstall and later the FileInstall service went away.
> Even if a file changes while the framework has been shutdown, fileinstall is expected to update the bundle when framework is started subsequently.
I do not see why that would break if the bundle location was set to a URL.
FileInstall must internally have a list of bundles that it manages, and file timestamps for them. That would not change.
> MalformedURLException for bundle locations installed by FileInstall
> -------------------------------------------------------------------
>
> Key: FELIX-1269
> URL: https://issues.apache.org/jira/browse/FELIX-1269
> Project: Felix
> Issue Type: Bug
> Components: File Install
> Affects Versions: fileinstall-1.0.0
> Environment: FileInstall 1.1.0
> Felix 1.8.0
> Windows XP
> Reporter: Thilo Planz
> Priority: Minor
>
> Bundles installed by FileInstall have a bundle location that does not include a protocol:
> -> ps -l
> START LEVEL 1
> ID State Level Location
> [ 0] [Active ] [ 0] System Bundle
> [ 1] [Active ] [ 1] file:/e:/osgi/org.apache.felix.fileinstall-1.0.0.jar <= "normal"
> [ 2] [Active ] [ 1] /C:/bundles/org.osgi.compendium-1.2.0.jar <= file-installed
> As a result such a bundle cannot be updated using the shell command:
> -> update 2
> ERROR: Unable to update the bundle. (java.net.MalformedURLException: no protocol: /C:/bundles/org.osgi.compendium-1.2.0.jar)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (FELIX-1269) MalformedURLException for bundle
locations installed by FileInstall
Posted by "Sahoo (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-1269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12723515#action_12723515 ]
Sahoo commented on FELIX-1269:
------------------------------
No, I am not saying it will break something if we use a URI instead of path as location. I wanted to understand the importance of this bug and how it was affecting.
> MalformedURLException for bundle locations installed by FileInstall
> -------------------------------------------------------------------
>
> Key: FELIX-1269
> URL: https://issues.apache.org/jira/browse/FELIX-1269
> Project: Felix
> Issue Type: Bug
> Components: File Install
> Affects Versions: fileinstall-1.0.0
> Environment: FileInstall 1.1.0
> Felix 1.8.0
> Windows XP
> Reporter: Thilo Planz
> Priority: Minor
>
> Bundles installed by FileInstall have a bundle location that does not include a protocol:
> -> ps -l
> START LEVEL 1
> ID State Level Location
> [ 0] [Active ] [ 0] System Bundle
> [ 1] [Active ] [ 1] file:/e:/osgi/org.apache.felix.fileinstall-1.0.0.jar <= "normal"
> [ 2] [Active ] [ 1] /C:/bundles/org.osgi.compendium-1.2.0.jar <= file-installed
> As a result such a bundle cannot be updated using the shell command:
> -> update 2
> ERROR: Unable to update the bundle. (java.net.MalformedURLException: no protocol: /C:/bundles/org.osgi.compendium-1.2.0.jar)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (FELIX-1269) MalformedURLException for bundle
locations installed by FileInstall
Posted by "Sahoo (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-1269?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sahoo updated FELIX-1269:
-------------------------
Attachment: Felix-1269.patch
Patch to address the issue.
> MalformedURLException for bundle locations installed by FileInstall
> -------------------------------------------------------------------
>
> Key: FELIX-1269
> URL: https://issues.apache.org/jira/browse/FELIX-1269
> Project: Felix
> Issue Type: Bug
> Components: File Install
> Affects Versions: fileinstall-1.0.0
> Environment: FileInstall 1.1.0
> Felix 1.8.0
> Windows XP
> Reporter: Thilo Planz
> Priority: Minor
> Attachments: Felix-1269.patch
>
>
> Bundles installed by FileInstall have a bundle location that does not include a protocol:
> -> ps -l
> START LEVEL 1
> ID State Level Location
> [ 0] [Active ] [ 0] System Bundle
> [ 1] [Active ] [ 1] file:/e:/osgi/org.apache.felix.fileinstall-1.0.0.jar <= "normal"
> [ 2] [Active ] [ 1] /C:/bundles/org.osgi.compendium-1.2.0.jar <= file-installed
> As a result such a bundle cannot be updated using the shell command:
> -> update 2
> ERROR: Unable to update the bundle. (java.net.MalformedURLException: no protocol: /C:/bundles/org.osgi.compendium-1.2.0.jar)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (FELIX-1269) MalformedURLException for bundle
locations installed by FileInstall
Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-1269?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Guillaume Nodet closed FELIX-1269.
----------------------------------
> MalformedURLException for bundle locations installed by FileInstall
> -------------------------------------------------------------------
>
> Key: FELIX-1269
> URL: https://issues.apache.org/jira/browse/FELIX-1269
> Project: Felix
> Issue Type: Bug
> Components: File Install
> Affects Versions: fileinstall-1.0.0
> Environment: FileInstall 1.1.0
> Felix 1.8.0
> Windows XP
> Reporter: Thilo Planz
> Assignee: Filippo Diotalevi
> Priority: Minor
> Fix For: fileinstall-2.0.0
>
> Attachments: Felix-1269.patch
>
>
> Bundles installed by FileInstall have a bundle location that does not include a protocol:
> -> ps -l
> START LEVEL 1
> ID State Level Location
> [ 0] [Active ] [ 0] System Bundle
> [ 1] [Active ] [ 1] file:/e:/osgi/org.apache.felix.fileinstall-1.0.0.jar <= "normal"
> [ 2] [Active ] [ 1] /C:/bundles/org.osgi.compendium-1.2.0.jar <= file-installed
> As a result such a bundle cannot be updated using the shell command:
> -> update 2
> ERROR: Unable to update the bundle. (java.net.MalformedURLException: no protocol: /C:/bundles/org.osgi.compendium-1.2.0.jar)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (FELIX-1269) MalformedURLException for bundle
locations installed by FileInstall
Posted by "Thilo Planz (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-1269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12723934#action_12723934 ]
Thilo Planz commented on FELIX-1269:
------------------------------------
> I wanted to understand the importance of this bug and how it was affecting.
Since, as you have pointed out, it is unlikely that you need to manually update bundles that FileInstall has installed,
it is not very important.
And since it is not specified that the bundle location needs to be a URL (even though that would be preferable for interoperability),
this is probably not even a bug, but a feature request.
The inability to upgrade the bundle using its specified location is a complete non-issue for me.
I am however a little worried that there might be other subtle problems with not using a URL.
I found out about the "malformed" bundle location when looking at bug FELIX-1165 (which is an issue for me).
These two issues being related is of course pure speculation on my part, I have not really looked into it,
the bundle non-URL was just the first thing that stood out, and FELIX-1165 mention bundle locations playing a role.
> MalformedURLException for bundle locations installed by FileInstall
> -------------------------------------------------------------------
>
> Key: FELIX-1269
> URL: https://issues.apache.org/jira/browse/FELIX-1269
> Project: Felix
> Issue Type: Bug
> Components: File Install
> Affects Versions: fileinstall-1.0.0
> Environment: FileInstall 1.1.0
> Felix 1.8.0
> Windows XP
> Reporter: Thilo Planz
> Priority: Minor
>
> Bundles installed by FileInstall have a bundle location that does not include a protocol:
> -> ps -l
> START LEVEL 1
> ID State Level Location
> [ 0] [Active ] [ 0] System Bundle
> [ 1] [Active ] [ 1] file:/e:/osgi/org.apache.felix.fileinstall-1.0.0.jar <= "normal"
> [ 2] [Active ] [ 1] /C:/bundles/org.osgi.compendium-1.2.0.jar <= file-installed
> As a result such a bundle cannot be updated using the shell command:
> -> update 2
> ERROR: Unable to update the bundle. (java.net.MalformedURLException: no protocol: /C:/bundles/org.osgi.compendium-1.2.0.jar)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.