Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-2105

Make Web Console compatible with OSGi/Minimum-1.1 EE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • webconsole-3.0.0
    • webconsole-3.0.0
    • Web Console
    • None

    Description

      Initially reported in 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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              fmeschbe Felix Meschberger
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: