You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Niels Schroeter (JIRA)" <ji...@apache.org> on 2016/08/24 13:37:21 UTC

[jira] [Created] (FELIX-5333) Saving the Web Console configuration makes the Console unaccessible

Niels Schroeter created FELIX-5333:
--------------------------------------

             Summary: Saving the Web Console configuration makes the Console unaccessible
                 Key: FELIX-5333
                 URL: https://issues.apache.org/jira/browse/FELIX-5333
             Project: Felix
          Issue Type: Bug
          Components: Web Console
    Affects Versions: webconsole-4.2.16
         Environment: Ubuntu 16.04.1
            Reporter: Niels Schroeter


We have a very basis configuration:

{panel:title=org.apache.felix.webconsole.internal.servlet.OsgiManager.cfg}
manager.root=/system/console
username=admin
password = \{sha-56\}jGl25bVBBBW96Qi9Te4V37Fnqchz/Eu4qB9vKrRIqRg=
{panel}

If you open the configuration in the Web Console and press save (without editing it), the default values for properties that did not exist in the basis configuration will be added, after hitting save the configuration looks like this:

{panel:title=org.apache.felix.webconsole.internal.servlet.OsgiManager.cfg}
manager.root=/system/console
username=admin
password = \{sha-256\}jGl25bVBBBW96Qi9Te4V37Fnqchz/Eu4qB9vKrRIqRg=
loglevel=2
category = Main
default.render = 
http.service.filter = 
locale = 
realm = OSGi Management Console
plugins = [org.apache.felix.webconsole.internal.compendium.LogServlet, org.apache.felix.webconsole.internal.configuration.ConfigManager, org.apache.felix.webconsole.internal.core.BundlesServlet, org.apache.felix.webconsole.internal.core.ServicesServlet, org.apache.felix.webconsole.internal.misc.LicenseServlet, org.apache.felix.webconsole.internal.system.VMStatPlugin]
{panel}

If you restart the felix framework and try to access $HOST/system/console, you will be redirected to $HOST/system/console/bundles - even if {{default.render}} is not set, as above. 
The redirect then fails with a 404 and the error message
{quote}
The requested page was not found. If you are not forwarded in 3 seconds to the Web Console, please click here
{quote}

The only way to get back to the Web Console is to delete the last line in the cfg file (starting with {{plugins=}})

If the framework runs on a production system and you don't have ssh access, it makes the system basically unconfigurable.





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)