[ 
https://issues.apache.org/jira/browse/ARTEMIS-3485?focusedWorklogId=652256&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-652256
 ]

ASF GitHub Bot logged work on ARTEMIS-3485:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 17/Sep/21 10:09
            Start Date: 17/Sep/21 10:09
    Worklog Time Spent: 10m 
      Work Description: brusdev opened a new pull request #3757:
URL: https://github.com/apache/activemq-artemis/pull/3757


   Support custom web plugin contexts defined with the `url` attribute
   of the `app` element in bootstrap.xml.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

            Worklog Id:     (was: 652256)
    Remaining Estimate: 0h
            Time Spent: 10m

> 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
>          Time Spent: 10m
>  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)

Reply via email to