[ 
https://issues.apache.org/jira/browse/MESOS-2748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14550809#comment-14550809
 ] 

Michael Lunøe edited comment on MESOS-2748 at 5/19/15 5:25 PM:
---------------------------------------------------------------

[~haosd...@gmail.com] Yes, the problem is exactly the use of absolute paths. 
{{/mesos/help}} works (showing a page with urls), but the urls listed are 
absolute paths, i.e. {{/help/metrics}} or {{/help/\_\_processess\_\_}}. If it 
were to use relative paths, so they would show correct paths: 
{{/mesos/help/metrics}} and  {{/mesos/help/\_\_processess\_\_}} in stead. Does 
that answer your question?


was (Author: mlunoe):
[~haosd...@gmail.com] Yes, the problem is exactly the use of absolute paths. 
{{/mesos/help}} works (showing a page with urls), but the urls listed are 
absolute paths, i.e. {{/help/metrics}} or {{/help/__processes__}}. If it were 
to use relative paths, so they would show correct paths: 
{{/mesos/help/metrics}} and  {{/mesos/help/__processes__}} in stead. Does that 
answer your question?

> /help generated links point to wrong URLs
> -----------------------------------------
>
>                 Key: MESOS-2748
>                 URL: https://issues.apache.org/jira/browse/MESOS-2748
>             Project: Mesos
>          Issue Type: Bug
>    Affects Versions: 0.22.1
>            Reporter: Marco Massenzio
>            Priority: Minor
>
> As reported by Michael Lunøe <mlu...@mesosphere.io> (see also MESOS-329 and 
> MESOS-913 for background):
> {quote}
> In {{mesos/3rdparty/libprocess/src/help.cpp}} a markdown file is created, 
> which is then converted to html through a javascript library 
> All endpoints point to {{/help/...}}, they need to work dynamically for 
> reverse proxy to do its thing. {{/mesos/help}} works, and displays the 
> endpoints, but they each need to go to their respective {{/help/...}} 
> endpoint. 
> Note that this needs to work both for master, and for slaves. I think the 
> route to slaves help is something like this: 
> {{/mesos/slaves/20150518-210216-1695027628-5050-1366-S0/help}}, but please 
> double check this.
> {quote}
> The fix appears to be not too complex (as it would require to simply 
> manipulate the generated URL) but a quick skim of the code would suggest that 
> something more substantial may be desirable too.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to