Skip to content

/status url depends on controller-config.xml #7

@christophe-g

Description

@christophe-g

Hi, just tried out this nice app, thanks ; )
I came across an issue (because my controller-config.xml file is not standard : <root pattern="/app" path="xmldb:exist:///db/apps"/> ). Instead of requesting jmx status with urls like /localhost:8080/status/..., the app was sending /localhost:8080/exist/app/index.html/status/... .

changing the url para in (exadmin.js. line 90)

var url = location.pathname.replace(/^(.*)\/app\/.*$/, "$1");
        $.ajax({
            url:  url + "/status?c=instances&c=processes&c=locking&c=memory&c=caches&c=system",
            type: "GET",
            success: function(xml) {
                $("#jmx-system-info").each(function() {

to just (without the regex on the url - which is not adding much here) :

url:  "/status?c=instances&c=processes&c=locking&c=memory&c=caches&c=system",

made it back to work.

This might help make the app more robust when users do not have standard configs.
Cheers,
C.

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting responseMore information is needed in order to reproduce the issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions