Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
christophe-g opened this issue Jun 20, 2014 · 1 comment
Open

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

christophe-g opened this issue Jun 20, 2014 · 1 comment
Labels
awaiting response More information is needed in order to reproduce the issue.

Comments

@christophe-g
Copy link

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.

@joewiz
Copy link
Member

joewiz commented Mar 13, 2017

@christophe-g Are you still using this patch to monex? If so, would you consider filing a PR? Looks like a change that would work and make monex useful outside of eXist's default URL spaces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting response More information is needed in order to reproduce the issue.
Projects
None yet
Development

No branches or pull requests

3 participants