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

Guangya Liu commented on MESOS-3833:
------------------------------------

[~bmahler] The /help/master works well and it will list all master related 
endpoints:
{code}
/master/api/v1/scheduler
/master/flags
/master/frameworks
/master/health
/master/machine/down
/master/machine/up
/master/maintenance/schedule
/master/maintenance/status
/master/observe
/master/redirect
/master/reserve
/master/roles
/master/roles.json
/master/slaves
/master/state
/master/state-summary
/master/state.json
/master/tasks
/master/tasks.json
/master/teardown
/master/unreserve
{code}

But when click the links for master which has more than two strings, the mesos 
will report error.

The reason is that the current 
https://github.com/apache/mesos/blob/master/3rdparty/libprocess/src/help.cpp#L120-L127
 logic can only handle three strings (/help/master/xxxx) in an endpoint, but 
for four or bigger string endpoint (/help/master/xxx/xxx), the mesos will 
report error. Comments?

> /help endpoints do not work for nested paths
> --------------------------------------------
>
>                 Key: MESOS-3833
>                 URL: https://issues.apache.org/jira/browse/MESOS-3833
>             Project: Mesos
>          Issue Type: Bug
>          Components: HTTP API
>            Reporter: Anand Mazumdar
>            Assignee: Guangya Liu
>            Priority: Minor
>              Labels: mesosphere, newbie
>
> Mesos displays the list of all supported endpoints starting at a given path 
> prefix using the {{/help}} suffix, e.g. {{master:5050/help}}.
> It seems that the {{help}} functionality is broken for URL's having nested 
> paths e.g. {{master:5050/help/master/machine/down}}. The response returned is:
> {quote}
> Malformed URL, expecting '/help/id/name/'
> {quote}



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

Reply via email to