You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Justin Bertram (Jira)" <ji...@apache.org> on 2021/09/17 13:10:00 UTC

[jira] [Resolved] (ARTEMIS-3485) Custom web context path doesn't work

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

Justin Bertram resolved ARTEMIS-3485.
-------------------------------------
    Fix Version/s: 2.19.0
       Resolution: Fixed

> Custom web context path doesn't work
> ------------------------------------
>
>                 Key: ARTEMIS-3485
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-3485
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>            Reporter: Domenico Francesco Bruscino
>            Assignee: Domenico Francesco Bruscino
>            Priority: Minor
>             Fix For: 2.19.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> I am trying to expose the web console at https://companyhostname/artemis. Basically i want the context of the web console to start with /artemis. I changed my bootstrap.xml as follow:
> <broker xmlns="http://activemq.org/schema">
>    <jaas-security domain="activemq"/>
>    <server configuration="file:/C:/Users/nle/ActiveMQ/mybroker2/etc//broker.xml"/>
>    <web bind="http://0.0.0.0:8161" path="web">
>        <app url="artemis/activemq-branding" war="activemq-branding.war"/>
>        <app url="artemis/artemis-plugin" war="artemis-plugin.war"/>
>        <app url="artemis/console" war="console.war"/>
>    </web>
> </broker>
> Running this on localhost for testing, when I hit 
> http://localhost:8161/artemis/console/
> I got redirected to the login screen which means the context of the console app has been prefixed with /artemis correctly.
> However, i see that all the css from artemis-branding and js from artemis-plugin are missing and the request for artemisPlugin.js does not start with /artemis as i set in my bootstrap.xml. I believe the cause of this is from the return of the http://localhost:8161/artemis/console/plugin (io.hawt.web.plugin.PluginServlet):
> {code:json}
> {
>    "artemis-plugin":{
>       "Context":"\/artemis-plugin",
>       "Scripts":[
>          "plugin\/js\/artemisHelpers.js",
>          "plugin\/js\/artemisPlugin.js",
>          "plugin\/js\/components\/addressSendMessage.js",
>          "plugin\/js\/components\/addresses.js",
>          "plugin\/js\/components\/browse.js",
>          "plugin\/js\/components\/connections.js",
>          "plugin\/js\/components\/consumers.js",
>          "plugin\/js\/components\/createAddress.js",
>          "plugin\/js\/components\/createQueue.js",
>          "plugin\/js\/components\/deleteAddress.js",
>          "plugin\/js\/components\/deleteQueue.js",
>          "plugin\/js\/components\/diagram.js",
>          "plugin\/js\/components\/help.js",
>          "plugin\/js\/components\/navigation.js",
>          "plugin\/js\/components\/preferences.js",
>          "plugin\/js\/components\/producers.js",
>          "plugin\/js\/components\/queues.js",
>          "plugin\/js\/components\/sendMessage.js",
>          "plugin\/js\/components\/sessions.js",
>          "plugin\/js\/components\/status.js",
>          "plugin\/js\/components\/tree.js",
>          "plugin\/js\/services\/pagination.js",
>          "plugin\/js\/services\/resource.js",
>          "plugin\/js\/services\/sendMessageService.js",
>          "plugin\/js\/services\/toolbar.js"
>       ],
>       "Domain":null,
>       "Name":"artemis-plugin"
>    },
>    "activemq-branding":{
>       "Context":"\/activemq-branding",
>       "Scripts":[
>          "plugin\/js\/brandingPlugin.js"
>       ],
>       "Domain":null,
>       "Name":"activemq-branding"
>    }
> }
> {code}
> I think there is some script that reads this json and issues the resource requests but it does not seem to take into account the context i put in the bootstrap.xml.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)