You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Valentin Valchev (JIRA)" <ji...@apache.org> on 2009/12/21 15:08:18 UTC

[jira] Created: (FELIX-1957) Make Web Console compatible with OSGi/Minimum-1.0 EE

Make Web Console compatible with OSGi/Minimum-1.0 EE
----------------------------------------------------

                 Key: FELIX-1957
                 URL: https://issues.apache.org/jira/browse/FELIX-1957
             Project: Felix
          Issue Type: New Feature
            Reporter: Valentin Valchev


Currently the Web Console requires some methods that are JDK 1.4+ specific.
In some embedded JVM the methods are not available. 
However, it's not needed to sync with each embedded JVM but make sure to run at least at OSGi/Minimum-1.0 Execution Environment.

The problem methods are:
String.matches(pattern);   (LicenseServlet & BundlesServlet)
String.replaceAll();              (ConfigurationRender)
String.split();                        (BundleRepositoryRender)


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Work started: (FELIX-1957) Make Web Console compatible with OSGi/Minimum-1.0 EE

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on FELIX-1957 started by Felix Meschberger.

> Make Web Console compatible with OSGi/Minimum-1.0 EE
> ----------------------------------------------------
>
>                 Key: FELIX-1957
>                 URL: https://issues.apache.org/jira/browse/FELIX-1957
>             Project: Felix
>          Issue Type: New Feature
>          Components: Web Console
>    Affects Versions: webconsole-2.0.4
>            Reporter: Valentin Valchev
>            Assignee: Felix Meschberger
>             Fix For: webconsole-2.0.6
>
>         Attachments: mathes-patch.patch
>
>
> Currently the Web Console requires some methods that are JDK 1.4+ specific.
> In some embedded JVM the methods are not available. 
> However, it's not needed to sync with each embedded JVM but make sure to run at least at OSGi/Minimum-1.0 Execution Environment.
> The problem methods are:
> String.matches(pattern);   (LicenseServlet & BundlesServlet)
> String.replaceAll();              (ConfigurationRender)
> String.split();                        (BundleRepositoryRender)
> The class LinkedHashMap is missing in OSGi/Minimum-1.0 EE but used in the ConfigurationListener.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (FELIX-1957) Make Web Console compatible with OSGi/Minimum-1.0 EE

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger updated FELIX-1957:
-------------------------------------

    Fix Version/s:     (was: webconsole-3.0.0)
                   webconsole-2.0.6

> Make Web Console compatible with OSGi/Minimum-1.0 EE
> ----------------------------------------------------
>
>                 Key: FELIX-1957
>                 URL: https://issues.apache.org/jira/browse/FELIX-1957
>             Project: Felix
>          Issue Type: New Feature
>          Components: Web Console
>    Affects Versions: webconsole-2.0.4
>            Reporter: Valentin Valchev
>            Assignee: Felix Meschberger
>             Fix For: webconsole-2.0.6
>
>         Attachments: mathes-patch.patch
>
>
> Currently the Web Console requires some methods that are JDK 1.4+ specific.
> In some embedded JVM the methods are not available. 
> However, it's not needed to sync with each embedded JVM but make sure to run at least at OSGi/Minimum-1.0 Execution Environment.
> The problem methods are:
> String.matches(pattern);   (LicenseServlet & BundlesServlet)
> String.replaceAll();              (ConfigurationRender)
> String.split();                        (BundleRepositoryRender)
> The class LinkedHashMap is missing in OSGi/Minimum-1.0 EE but used in the ConfigurationListener.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FELIX-1957) Make Web Console compatible with OSGi/Minimum-1.0 EE

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-1957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12793252#action_12793252 ] 

Felix Meschberger commented on FELIX-1957:
------------------------------------------

Thanks for reporting this issue and proposing workarounds and a patch.

> Make Web Console compatible with OSGi/Minimum-1.0 EE
> ----------------------------------------------------
>
>                 Key: FELIX-1957
>                 URL: https://issues.apache.org/jira/browse/FELIX-1957
>             Project: Felix
>          Issue Type: New Feature
>          Components: Web Console
>    Affects Versions: webconsole-2.0.4
>            Reporter: Valentin Valchev
>            Assignee: Felix Meschberger
>             Fix For: webconsole-2.0.6
>
>         Attachments: mathes-patch.patch
>
>
> Currently the Web Console requires some methods that are JDK 1.4+ specific.
> In some embedded JVM the methods are not available. 
> However, it's not needed to sync with each embedded JVM but make sure to run at least at OSGi/Minimum-1.0 Execution Environment.
> The problem methods are:
> String.matches(pattern);   (LicenseServlet & BundlesServlet)
> String.replaceAll();              (ConfigurationRender)
> String.split();                        (BundleRepositoryRender)
> The class LinkedHashMap is missing in OSGi/Minimum-1.0 EE but used in the ConfigurationListener.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (FELIX-1957) Make Web Console compatible with OSGi/Minimum-1.0 EE

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger closed FELIX-1957.
------------------------------------

    Resolution: Fixed

Oops, this issue refers to a released version, I created a FELIX-2105  to track the followup problems....

> Make Web Console compatible with OSGi/Minimum-1.0 EE
> ----------------------------------------------------
>
>                 Key: FELIX-1957
>                 URL: https://issues.apache.org/jira/browse/FELIX-1957
>             Project: Felix
>          Issue Type: New Feature
>          Components: Web Console
>    Affects Versions: webconsole-2.0.4
>            Reporter: Valentin Valchev
>            Assignee: Felix Meschberger
>             Fix For: webconsole-2.0.6
>
>         Attachments: mathes-patch.patch
>
>
> Currently the Web Console requires some methods that are JDK 1.4+ specific.
> In some embedded JVM the methods are not available. 
> However, it's not needed to sync with each embedded JVM but make sure to run at least at OSGi/Minimum-1.0 Execution Environment.
> The problem methods are:
> String.matches(pattern);   (LicenseServlet & BundlesServlet)
> String.replaceAll();              (ConfigurationRender)
> String.split();                        (BundleRepositoryRender)
> The class LinkedHashMap is missing in OSGi/Minimum-1.0 EE but used in the ConfigurationListener.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (FELIX-1957) Make Web Console compatible with OSGi/Minimum-1.0 EE

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger resolved FELIX-1957.
--------------------------------------

    Resolution: Fixed

Applied the patch slightly modified in Rev. 898728:

  * renamed the method to enableLineWrapping
  * replace char[] by direct string access
  * only append blank after ; and , (the brackets and braces were part of the regexp)

> Make Web Console compatible with OSGi/Minimum-1.0 EE
> ----------------------------------------------------
>
>                 Key: FELIX-1957
>                 URL: https://issues.apache.org/jira/browse/FELIX-1957
>             Project: Felix
>          Issue Type: New Feature
>          Components: Web Console
>    Affects Versions: webconsole-2.0.4
>            Reporter: Valentin Valchev
>            Assignee: Felix Meschberger
>             Fix For: webconsole-2.0.6
>
>         Attachments: mathes-patch.patch
>
>
> Currently the Web Console requires some methods that are JDK 1.4+ specific.
> In some embedded JVM the methods are not available. 
> However, it's not needed to sync with each embedded JVM but make sure to run at least at OSGi/Minimum-1.0 Execution Environment.
> The problem methods are:
> String.matches(pattern);   (LicenseServlet & BundlesServlet)
> String.replaceAll();              (ConfigurationRender)
> String.split();                        (BundleRepositoryRender)
> The class LinkedHashMap is missing in OSGi/Minimum-1.0 EE but used in the ConfigurationListener.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Reopened: (FELIX-1957) Make Web Console compatible with OSGi/Minimum-1.0 EE

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger reopened FELIX-1957:
--------------------------------------


Reopening this issue because applying the patch only removes some of the reported issues

> Make Web Console compatible with OSGi/Minimum-1.0 EE
> ----------------------------------------------------
>
>                 Key: FELIX-1957
>                 URL: https://issues.apache.org/jira/browse/FELIX-1957
>             Project: Felix
>          Issue Type: New Feature
>          Components: Web Console
>    Affects Versions: webconsole-2.0.4
>            Reporter: Valentin Valchev
>            Assignee: Felix Meschberger
>             Fix For: webconsole-2.0.6
>
>         Attachments: mathes-patch.patch
>
>
> Currently the Web Console requires some methods that are JDK 1.4+ specific.
> In some embedded JVM the methods are not available. 
> However, it's not needed to sync with each embedded JVM but make sure to run at least at OSGi/Minimum-1.0 Execution Environment.
> The problem methods are:
> String.matches(pattern);   (LicenseServlet & BundlesServlet)
> String.replaceAll();              (ConfigurationRender)
> String.split();                        (BundleRepositoryRender)
> The class LinkedHashMap is missing in OSGi/Minimum-1.0 EE but used in the ConfigurationListener.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (FELIX-1957) Make Web Console compatible with OSGi/Minimum-1.0 EE

Posted by "Valentin Valchev (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Valentin Valchev updated FELIX-1957:
------------------------------------

    Component/s: Web Console

> Make Web Console compatible with OSGi/Minimum-1.0 EE
> ----------------------------------------------------
>
>                 Key: FELIX-1957
>                 URL: https://issues.apache.org/jira/browse/FELIX-1957
>             Project: Felix
>          Issue Type: New Feature
>          Components: Web Console
>            Reporter: Valentin Valchev
>         Attachments: mathes-patch.patch
>
>
> Currently the Web Console requires some methods that are JDK 1.4+ specific.
> In some embedded JVM the methods are not available. 
> However, it's not needed to sync with each embedded JVM but make sure to run at least at OSGi/Minimum-1.0 Execution Environment.
> The problem methods are:
> String.matches(pattern);   (LicenseServlet & BundlesServlet)
> String.replaceAll();              (ConfigurationRender)
> String.split();                        (BundleRepositoryRender)
> The class LinkedHashMap is missing in OSGi/Minimum-1.0 EE but used in the ConfigurationListener.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (FELIX-1957) Make Web Console compatible with OSGi/Minimum-1.0 EE

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger updated FELIX-1957:
-------------------------------------

    Comment: was deleted

(was: Re UUID: Actually, this has only been introduced in Java 5, so it is a good idea to replace it
Re Collections.list(Enumeration): Agreed, but will create method in internal Util for now
Re Locale.Locale(String): Agreed with using Locale.ENGLISH (default locale would be de_CH on my box, which is not exactly english ;-) )

Implemented changes in Rev. 911590.)

> Make Web Console compatible with OSGi/Minimum-1.0 EE
> ----------------------------------------------------
>
>                 Key: FELIX-1957
>                 URL: https://issues.apache.org/jira/browse/FELIX-1957
>             Project: Felix
>          Issue Type: New Feature
>          Components: Web Console
>    Affects Versions: webconsole-2.0.4
>            Reporter: Valentin Valchev
>            Assignee: Felix Meschberger
>             Fix For: webconsole-2.0.6
>
>         Attachments: mathes-patch.patch
>
>
> Currently the Web Console requires some methods that are JDK 1.4+ specific.
> In some embedded JVM the methods are not available. 
> However, it's not needed to sync with each embedded JVM but make sure to run at least at OSGi/Minimum-1.0 Execution Environment.
> The problem methods are:
> String.matches(pattern);   (LicenseServlet & BundlesServlet)
> String.replaceAll();              (ConfigurationRender)
> String.split();                        (BundleRepositoryRender)
> The class LinkedHashMap is missing in OSGi/Minimum-1.0 EE but used in the ConfigurationListener.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (FELIX-1957) Make Web Console compatible with OSGi/Minimum-1.0 EE

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger reassigned FELIX-1957:
----------------------------------------

    Assignee: Felix Meschberger

> Make Web Console compatible with OSGi/Minimum-1.0 EE
> ----------------------------------------------------
>
>                 Key: FELIX-1957
>                 URL: https://issues.apache.org/jira/browse/FELIX-1957
>             Project: Felix
>          Issue Type: New Feature
>          Components: Web Console
>    Affects Versions: webconsole-2.0.4
>            Reporter: Valentin Valchev
>            Assignee: Felix Meschberger
>             Fix For: webconsole-2.0.6
>
>         Attachments: mathes-patch.patch
>
>
> Currently the Web Console requires some methods that are JDK 1.4+ specific.
> In some embedded JVM the methods are not available. 
> However, it's not needed to sync with each embedded JVM but make sure to run at least at OSGi/Minimum-1.0 Execution Environment.
> The problem methods are:
> String.matches(pattern);   (LicenseServlet & BundlesServlet)
> String.replaceAll();              (ConfigurationRender)
> String.split();                        (BundleRepositoryRender)
> The class LinkedHashMap is missing in OSGi/Minimum-1.0 EE but used in the ConfigurationListener.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (FELIX-1957) Make Web Console compatible with OSGi/Minimum-1.0 EE

Posted by "Valentin Valchev (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-1957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12793207#action_12793207 ] 

Valentin Valchev edited comment on FELIX-1957 at 12/21/09 2:19 PM:
-------------------------------------------------------------------

The attached 'matches-patch.patch' fixes the usage of
String.matches(pattern) in BundlesServlet

The usage of String.replaceAll() in ConfigurationRender can be replaced by WebConsoleUtil.escapeHtml()
(see https://issues.apache.org/jira/browse/FELIX-1956 )

      was (Author: v_valchev):
    The attached 'matches-patch.patch' fixes the usage of
String.matches(pattern) in BundlesServlet

The usage of String.replaceAll() in ConfigurationRender can be replaced by WebConsoleUtil.escapeHtml()
(see https://issues.apache.org/jira/browse/FELIX-1956)
  
> Make Web Console compatible with OSGi/Minimum-1.0 EE
> ----------------------------------------------------
>
>                 Key: FELIX-1957
>                 URL: https://issues.apache.org/jira/browse/FELIX-1957
>             Project: Felix
>          Issue Type: New Feature
>          Components: Web Console
>            Reporter: Valentin Valchev
>         Attachments: mathes-patch.patch
>
>
> Currently the Web Console requires some methods that are JDK 1.4+ specific.
> In some embedded JVM the methods are not available. 
> However, it's not needed to sync with each embedded JVM but make sure to run at least at OSGi/Minimum-1.0 Execution Environment.
> The problem methods are:
> String.matches(pattern);   (LicenseServlet & BundlesServlet)
> String.replaceAll();              (ConfigurationRender)
> String.split();                        (BundleRepositoryRender)
> The class LinkedHashMap is missing in OSGi/Minimum-1.0 EE but used in the ConfigurationListener.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (FELIX-1957) Make Web Console compatible with OSGi/Minimum-1.0 EE

Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler closed FELIX-1957.
-----------------------------------


> Make Web Console compatible with OSGi/Minimum-1.0 EE
> ----------------------------------------------------
>
>                 Key: FELIX-1957
>                 URL: https://issues.apache.org/jira/browse/FELIX-1957
>             Project: Felix
>          Issue Type: New Feature
>          Components: Web Console
>    Affects Versions: webconsole-2.0.4
>            Reporter: Valentin Valchev
>            Assignee: Felix Meschberger
>             Fix For: webconsole-2.0.6
>
>         Attachments: mathes-patch.patch
>
>
> Currently the Web Console requires some methods that are JDK 1.4+ specific.
> In some embedded JVM the methods are not available. 
> However, it's not needed to sync with each embedded JVM but make sure to run at least at OSGi/Minimum-1.0 Execution Environment.
> The problem methods are:
> String.matches(pattern);   (LicenseServlet & BundlesServlet)
> String.replaceAll();              (ConfigurationRender)
> String.split();                        (BundleRepositoryRender)
> The class LinkedHashMap is missing in OSGi/Minimum-1.0 EE but used in the ConfigurationListener.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FELIX-1957) Make Web Console compatible with OSGi/Minimum-1.0 EE

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-1957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12835407#action_12835407 ] 

Felix Meschberger commented on FELIX-1957:
------------------------------------------

Re UUID: Actually, this has only been introduced in Java 5, so it is a good idea to replace it
Re Collections.list(Enumeration): Agreed, but will create method in internal Util for now
Re Locale.Locale(String): Agreed with using Locale.ENGLISH (default locale would be de_CH on my box, which is not exactly english ;-) )

Implemented changes in Rev. 911590.

> Make Web Console compatible with OSGi/Minimum-1.0 EE
> ----------------------------------------------------
>
>                 Key: FELIX-1957
>                 URL: https://issues.apache.org/jira/browse/FELIX-1957
>             Project: Felix
>          Issue Type: New Feature
>          Components: Web Console
>    Affects Versions: webconsole-2.0.4
>            Reporter: Valentin Valchev
>            Assignee: Felix Meschberger
>             Fix For: webconsole-2.0.6
>
>         Attachments: mathes-patch.patch
>
>
> Currently the Web Console requires some methods that are JDK 1.4+ specific.
> In some embedded JVM the methods are not available. 
> However, it's not needed to sync with each embedded JVM but make sure to run at least at OSGi/Minimum-1.0 Execution Environment.
> The problem methods are:
> String.matches(pattern);   (LicenseServlet & BundlesServlet)
> String.replaceAll();              (ConfigurationRender)
> String.split();                        (BundleRepositoryRender)
> The class LinkedHashMap is missing in OSGi/Minimum-1.0 EE but used in the ConfigurationListener.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (FELIX-1957) Make Web Console compatible with OSGi/Minimum-1.0 EE

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger updated FELIX-1957:
-------------------------------------

    Fix Version/s:     (was: webconsole-2.0.6)
                   webconsole-3.0.0

This will probably a major overhaul of the internals of the Web Console an rewrite of some embedded plugins (though the API will remain backwards compatible). Therefore tentatively tagging this issue for a new major release.

> Make Web Console compatible with OSGi/Minimum-1.0 EE
> ----------------------------------------------------
>
>                 Key: FELIX-1957
>                 URL: https://issues.apache.org/jira/browse/FELIX-1957
>             Project: Felix
>          Issue Type: New Feature
>          Components: Web Console
>    Affects Versions: webconsole-2.0.4
>            Reporter: Valentin Valchev
>            Assignee: Felix Meschberger
>             Fix For: webconsole-3.0.0
>
>         Attachments: mathes-patch.patch
>
>
> Currently the Web Console requires some methods that are JDK 1.4+ specific.
> In some embedded JVM the methods are not available. 
> However, it's not needed to sync with each embedded JVM but make sure to run at least at OSGi/Minimum-1.0 Execution Environment.
> The problem methods are:
> String.matches(pattern);   (LicenseServlet & BundlesServlet)
> String.replaceAll();              (ConfigurationRender)
> String.split();                        (BundleRepositoryRender)
> The class LinkedHashMap is missing in OSGi/Minimum-1.0 EE but used in the ConfigurationListener.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (FELIX-1957) Make Web Console compatible with OSGi/Minimum-1.0 EE

Posted by "Valentin Valchev (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Valentin Valchev updated FELIX-1957:
------------------------------------

    Attachment: mathes-patch.patch

The attached 'matches-patch.patch' fixes the usage of
String.matches(pattern) in BundlesServlet

The usage of String.replaceAll() in ConfigurationRender can be replaced by WebConsoleUtil.escapeHtml()
(see https://issues.apache.org/jira/browse/FELIX-1956)

> Make Web Console compatible with OSGi/Minimum-1.0 EE
> ----------------------------------------------------
>
>                 Key: FELIX-1957
>                 URL: https://issues.apache.org/jira/browse/FELIX-1957
>             Project: Felix
>          Issue Type: New Feature
>            Reporter: Valentin Valchev
>         Attachments: mathes-patch.patch
>
>
> Currently the Web Console requires some methods that are JDK 1.4+ specific.
> In some embedded JVM the methods are not available. 
> However, it's not needed to sync with each embedded JVM but make sure to run at least at OSGi/Minimum-1.0 Execution Environment.
> The problem methods are:
> String.matches(pattern);   (LicenseServlet & BundlesServlet)
> String.replaceAll();              (ConfigurationRender)
> String.split();                        (BundleRepositoryRender)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FELIX-1957) Make Web Console compatible with OSGi/Minimum-1.0 EE

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-1957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12801460#action_12801460 ] 

Felix Meschberger commented on FELIX-1957:
------------------------------------------

Removed us of String.split() in Rev. 900179


> Make Web Console compatible with OSGi/Minimum-1.0 EE
> ----------------------------------------------------
>
>                 Key: FELIX-1957
>                 URL: https://issues.apache.org/jira/browse/FELIX-1957
>             Project: Felix
>          Issue Type: New Feature
>          Components: Web Console
>    Affects Versions: webconsole-2.0.4
>            Reporter: Valentin Valchev
>            Assignee: Felix Meschberger
>             Fix For: webconsole-2.0.6
>
>         Attachments: mathes-patch.patch
>
>
> Currently the Web Console requires some methods that are JDK 1.4+ specific.
> In some embedded JVM the methods are not available. 
> However, it's not needed to sync with each embedded JVM but make sure to run at least at OSGi/Minimum-1.0 Execution Environment.
> The problem methods are:
> String.matches(pattern);   (LicenseServlet & BundlesServlet)
> String.replaceAll();              (ConfigurationRender)
> String.split();                        (BundleRepositoryRender)
> The class LinkedHashMap is missing in OSGi/Minimum-1.0 EE but used in the ConfigurationListener.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (FELIX-1957) Make Web Console compatible with OSGi/Minimum-1.0 EE

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-1957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12801460#action_12801460 ] 

Felix Meschberger edited comment on FELIX-1957 at 1/17/10 6:26 PM:
-------------------------------------------------------------------

Removed use of String.split() in Rev. 900179

      was (Author: fmeschbe):
    Removed us of String.split() in Rev. 900179

  
> Make Web Console compatible with OSGi/Minimum-1.0 EE
> ----------------------------------------------------
>
>                 Key: FELIX-1957
>                 URL: https://issues.apache.org/jira/browse/FELIX-1957
>             Project: Felix
>          Issue Type: New Feature
>          Components: Web Console
>    Affects Versions: webconsole-2.0.4
>            Reporter: Valentin Valchev
>            Assignee: Felix Meschberger
>             Fix For: webconsole-2.0.6
>
>         Attachments: mathes-patch.patch
>
>
> Currently the Web Console requires some methods that are JDK 1.4+ specific.
> In some embedded JVM the methods are not available. 
> However, it's not needed to sync with each embedded JVM but make sure to run at least at OSGi/Minimum-1.0 Execution Environment.
> The problem methods are:
> String.matches(pattern);   (LicenseServlet & BundlesServlet)
> String.replaceAll();              (ConfigurationRender)
> String.split();                        (BundleRepositoryRender)
> The class LinkedHashMap is missing in OSGi/Minimum-1.0 EE but used in the ConfigurationListener.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (FELIX-1957) Make Web Console compatible with OSGi/Minimum-1.0 EE

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger resolved FELIX-1957.
--------------------------------------

    Resolution: Fixed

In Revs. 900182, 900191, 900192 fixed the other reported non-OSGi/Minimum-1.0 EE issues.

This should fix this issue now.

> Make Web Console compatible with OSGi/Minimum-1.0 EE
> ----------------------------------------------------
>
>                 Key: FELIX-1957
>                 URL: https://issues.apache.org/jira/browse/FELIX-1957
>             Project: Felix
>          Issue Type: New Feature
>          Components: Web Console
>    Affects Versions: webconsole-2.0.4
>            Reporter: Valentin Valchev
>            Assignee: Felix Meschberger
>             Fix For: webconsole-2.0.6
>
>         Attachments: mathes-patch.patch
>
>
> Currently the Web Console requires some methods that are JDK 1.4+ specific.
> In some embedded JVM the methods are not available. 
> However, it's not needed to sync with each embedded JVM but make sure to run at least at OSGi/Minimum-1.0 Execution Environment.
> The problem methods are:
> String.matches(pattern);   (LicenseServlet & BundlesServlet)
> String.replaceAll();              (ConfigurationRender)
> String.split();                        (BundleRepositoryRender)
> The class LinkedHashMap is missing in OSGi/Minimum-1.0 EE but used in the ConfigurationListener.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (FELIX-1957) Make Web Console compatible with OSGi/Minimum-1.0 EE

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-1957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12835409#action_12835409 ] 

Felix Meschberger edited comment on FELIX-1957 at 2/18/10 9:29 PM:
-------------------------------------------------------------------

This issue refers to a released version, I created a FELIX-2105  to track the followup problems....

      was (Author: fmeschbe):
    Oops, this issue refers to a released version, I created a FELIX-2105  to track the followup problems....
  
> Make Web Console compatible with OSGi/Minimum-1.0 EE
> ----------------------------------------------------
>
>                 Key: FELIX-1957
>                 URL: https://issues.apache.org/jira/browse/FELIX-1957
>             Project: Felix
>          Issue Type: New Feature
>          Components: Web Console
>    Affects Versions: webconsole-2.0.4
>            Reporter: Valentin Valchev
>            Assignee: Felix Meschberger
>             Fix For: webconsole-2.0.6
>
>         Attachments: mathes-patch.patch
>
>
> Currently the Web Console requires some methods that are JDK 1.4+ specific.
> In some embedded JVM the methods are not available. 
> However, it's not needed to sync with each embedded JVM but make sure to run at least at OSGi/Minimum-1.0 Execution Environment.
> The problem methods are:
> String.matches(pattern);   (LicenseServlet & BundlesServlet)
> String.replaceAll();              (ConfigurationRender)
> String.split();                        (BundleRepositoryRender)
> The class LinkedHashMap is missing in OSGi/Minimum-1.0 EE but used in the ConfigurationListener.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Reopened: (FELIX-1957) Make Web Console compatible with OSGi/Minimum-1.0 EE

Posted by "Valentin Valchev (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Valentin Valchev reopened FELIX-1957:
-------------------------------------


The latest changes to the webconsole makes it again incompatible with the OSGi/Minimum EE:

- UUID used in ConfigurationRender is missing in OSGi/Minimum-1.2
- Collections.list(Enumeration) used in ComponentsServlet & ComponentConfigurationPrinter is not support by OSGi/Minimum-1.1. Although it is added in OSGi/Minimum-1.2, it's better for wider compatibility to replace this method with own. Simple implementation is given below:
class WebConsoleUtil {
 ....
     /**
     * This method is the same as Collections#list(Enumeration). The reason to duplicate it here,
     * is that it is missing in OSGi/Minimum execution environment.
     * 
     * @param e the enumeration which to convert
     * @return the list containing all enumeration entries.
     */
    public static final ArrayList list( Enumeration e )
    {
        ArrayList l = new ArrayList();
        while ( e.hasMoreElements() )
            l.add( e.nextElement() );
        return l;
    }

}

- Locale.Locale( String ) constructor is not available in OSGi/Minimum-1.1 (though available in OSGi/Minimum-1.2). However, for better compatibility we should use another approach.
So instead of:
DEFAULT_LOCALE = new Locale( "" )

it can be
DEFAULT_LOCALE = Locale.getDefault();

or even better (since our default language translation is English):
DEFAULT_LOCALE = Locale().ENGLISH


> Make Web Console compatible with OSGi/Minimum-1.0 EE
> ----------------------------------------------------
>
>                 Key: FELIX-1957
>                 URL: https://issues.apache.org/jira/browse/FELIX-1957
>             Project: Felix
>          Issue Type: New Feature
>          Components: Web Console
>    Affects Versions: webconsole-2.0.4
>            Reporter: Valentin Valchev
>            Assignee: Felix Meschberger
>             Fix For: webconsole-2.0.6
>
>         Attachments: mathes-patch.patch
>
>
> Currently the Web Console requires some methods that are JDK 1.4+ specific.
> In some embedded JVM the methods are not available. 
> However, it's not needed to sync with each embedded JVM but make sure to run at least at OSGi/Minimum-1.0 Execution Environment.
> The problem methods are:
> String.matches(pattern);   (LicenseServlet & BundlesServlet)
> String.replaceAll();              (ConfigurationRender)
> String.split();                        (BundleRepositoryRender)
> The class LinkedHashMap is missing in OSGi/Minimum-1.0 EE but used in the ConfigurationListener.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (FELIX-1957) Make Web Console compatible with OSGi/Minimum-1.0 EE

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger updated FELIX-1957:
-------------------------------------

    Comment: was deleted

(was: This will probably a major overhaul of the internals of the Web Console an rewrite of some embedded plugins (though the API will remain backwards compatible). Therefore tentatively tagging this issue for a new major release.)

> Make Web Console compatible with OSGi/Minimum-1.0 EE
> ----------------------------------------------------
>
>                 Key: FELIX-1957
>                 URL: https://issues.apache.org/jira/browse/FELIX-1957
>             Project: Felix
>          Issue Type: New Feature
>          Components: Web Console
>    Affects Versions: webconsole-2.0.4
>            Reporter: Valentin Valchev
>            Assignee: Felix Meschberger
>             Fix For: webconsole-3.0.0
>
>         Attachments: mathes-patch.patch
>
>
> Currently the Web Console requires some methods that are JDK 1.4+ specific.
> In some embedded JVM the methods are not available. 
> However, it's not needed to sync with each embedded JVM but make sure to run at least at OSGi/Minimum-1.0 Execution Environment.
> The problem methods are:
> String.matches(pattern);   (LicenseServlet & BundlesServlet)
> String.replaceAll();              (ConfigurationRender)
> String.split();                        (BundleRepositoryRender)
> The class LinkedHashMap is missing in OSGi/Minimum-1.0 EE but used in the ConfigurationListener.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (FELIX-1957) Make Web Console compatible with OSGi/Minimum-1.0 EE

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger updated FELIX-1957:
-------------------------------------

    Affects Version/s: webconsole-2.0.4
        Fix Version/s: webconsole-2.0.6

> Make Web Console compatible with OSGi/Minimum-1.0 EE
> ----------------------------------------------------
>
>                 Key: FELIX-1957
>                 URL: https://issues.apache.org/jira/browse/FELIX-1957
>             Project: Felix
>          Issue Type: New Feature
>          Components: Web Console
>    Affects Versions: webconsole-2.0.4
>            Reporter: Valentin Valchev
>            Assignee: Felix Meschberger
>             Fix For: webconsole-2.0.6
>
>         Attachments: mathes-patch.patch
>
>
> Currently the Web Console requires some methods that are JDK 1.4+ specific.
> In some embedded JVM the methods are not available. 
> However, it's not needed to sync with each embedded JVM but make sure to run at least at OSGi/Minimum-1.0 Execution Environment.
> The problem methods are:
> String.matches(pattern);   (LicenseServlet & BundlesServlet)
> String.replaceAll();              (ConfigurationRender)
> String.split();                        (BundleRepositoryRender)
> The class LinkedHashMap is missing in OSGi/Minimum-1.0 EE but used in the ConfigurationListener.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (FELIX-1957) Make Web Console compatible with OSGi/Minimum-1.0 EE

Posted by "Valentin Valchev (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Valentin Valchev updated FELIX-1957:
------------------------------------

    Description: 
Currently the Web Console requires some methods that are JDK 1.4+ specific.
In some embedded JVM the methods are not available. 
However, it's not needed to sync with each embedded JVM but make sure to run at least at OSGi/Minimum-1.0 Execution Environment.

The problem methods are:
String.matches(pattern);   (LicenseServlet & BundlesServlet)
String.replaceAll();              (ConfigurationRender)
String.split();                        (BundleRepositoryRender)

The class LinkedHashMap is missing in OSGi/Minimum-1.0 EE but used in the ConfigurationListener.

  was:
Currently the Web Console requires some methods that are JDK 1.4+ specific.
In some embedded JVM the methods are not available. 
However, it's not needed to sync with each embedded JVM but make sure to run at least at OSGi/Minimum-1.0 Execution Environment.

The problem methods are:
String.matches(pattern);   (LicenseServlet & BundlesServlet)
String.replaceAll();              (ConfigurationRender)
String.split();                        (BundleRepositoryRender)



> Make Web Console compatible with OSGi/Minimum-1.0 EE
> ----------------------------------------------------
>
>                 Key: FELIX-1957
>                 URL: https://issues.apache.org/jira/browse/FELIX-1957
>             Project: Felix
>          Issue Type: New Feature
>            Reporter: Valentin Valchev
>         Attachments: mathes-patch.patch
>
>
> Currently the Web Console requires some methods that are JDK 1.4+ specific.
> In some embedded JVM the methods are not available. 
> However, it's not needed to sync with each embedded JVM but make sure to run at least at OSGi/Minimum-1.0 Execution Environment.
> The problem methods are:
> String.matches(pattern);   (LicenseServlet & BundlesServlet)
> String.replaceAll();              (ConfigurationRender)
> String.split();                        (BundleRepositoryRender)
> The class LinkedHashMap is missing in OSGi/Minimum-1.0 EE but used in the ConfigurationListener.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.