You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (Jira)" <ji...@apache.org> on 2022/09/05 08:24:00 UTC

[jira] [Updated] (KARAF-7536) jolokia-access.xml stopped working in 4.4.1

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

Jean-Baptiste Onofré updated KARAF-7536:
----------------------------------------
    Affects Version/s: 4.4.1

> jolokia-access.xml stopped working in 4.4.1
> -------------------------------------------
>
>                 Key: KARAF-7536
>                 URL: https://issues.apache.org/jira/browse/KARAF-7536
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.4.1
>            Reporter: Rastislav Papp
>            Assignee: Jean-Baptiste Onofré
>            Priority: Critical
>
> We use jolokia-osgi with access restricted via jolokia-access.xml, specifying that only localhost (or 127.0.0.1) is allowed.
> After upgrading to karaf 4.4.1, all jolokia requests return http 403, because {{getRemoteHost}} method of {{org.ops4j.pax.web.service.spi.servlet.OsgiHttpServletRequestWrapper}} now returns {{"[127.0.0.1]"}} instead of {{"127.0.0.1"}}. A hotfix was to add new entries to jolokia-access.xml, with the IPs wrapped with [], but I suspect other functionality might be broken because of this.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)