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

Management web endpoint with base-path=/ not working with SpringBoot 2.0.4 #14236

Closed
endSly opened this issue Aug 29, 2018 · 1 comment
Closed
Labels
status: duplicate A duplicate of another issue

Comments

@endSly
Copy link

endSly commented Aug 29, 2018

Management endpoint has stopped working since 2.0.4.RELEASE when the base-path is set to "/".

With the following config:

management:
  server.port: 10011
  endpoints.web:
    base-path: '/'
    exposure.include: jolokia

it returns 404 with spring boot 2.0.4:

curl http://127.0.0.1:10011/jolokia
{"timestamp":"2018-08-29T10:15:25.249+0000","status":404,"error":"Not Found","message":"No message available","path":"/jolokia"}

curl http://127.0.0.1:10011/jolokia/
{"timestamp":"2018-08-29T10:15:30.709+0000","status":404,"error":"Not Found","message":"No message available","path":"/jolokia/"}

but it worked with 2.0.3.RELEASE:

curl http://127.0.0.1:10011/jolokia 
{"request":{"type":"version"},"value":{"agent":"1.6.0","protocol":"7.2","config":{"listenForHttpService":"true","authIgnoreCerts":"false","agentId":"192.168.104.67-30932-555e866c-servlet","debug":"false","agentType":"servlet","policyLocation":"classpath:\/jolokia-access.xml","agentContext":"\/jolokia","serializeException":"false","mimeType":"text\/plain","dispatcherClasses":"org.jolokia.http.Jsr160ProxyNotEnabledByDefaultAnymoreDispatcher","authMode":"basic","streaming":"true","canonicalNaming":"true","historyMaxEntries":"10","allowErrorDetails":"true","allowDnsReverseLookup":"true","realm":"jolokia","includeStackTrace":"true","useRestrictorService":"false","debugMaxEntries":"100"},"info":{"product":"tomcat","vendor":"Apache","version":"8.5.31"}},"timestamp":1535537652,"status":200}      

it works as expected with a different base path

Could it be related with #13921 ?

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 29, 2018
@snicoll
Copy link
Member

snicoll commented Aug 29, 2018

Duplicate of #13964

@snicoll snicoll marked this as a duplicate of #13964 Aug 29, 2018
@snicoll snicoll closed this as completed Aug 29, 2018
@snicoll snicoll added status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged labels Aug 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

3 participants