-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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
Endpoint exposure patterns do not work with dashed IDs #20997
Comments
@gi122281742 I've tested with a small sample and couldn't reproduce the problem. Can you please share a small sample that reproduces the problem you've described? Either update my app or share your own (a zip or a link to a github repo). Thanks |
sconfig-server.zip |
it need from a property value, not annotation |
it call EndpointId.fromPropertyValue。it need from a property value, not annotation, thanks |
What does that mean? It is a property value
Sorry but I don't know what that means. Can we take a step back and can you please share something I can run that reproduces the problem? If the config server has to be involved for the problem to happen, then please share a sample that I can run myself to actually see the problem. I don't need your app by the way so all the extra config is not necessary. |
My application is a simple config server and springcloud bus, and then I want to just open the bus-refresh endpoint, but I’can‘t. |
I want to open the bus-refresh endpoint of the config server, but the configuration as "bus-refresh" is invalid and must be configured as "*"。 |
By the way, regarding only bus-refresh, the same configuration file, the springcloud version Hoxton.SR1 can work normally, but Hoxton.SR3 can not. |
That's a lot to digest and I still don't know how to reproduce the problem. You shared no instructions so I ran your app but there is no configuration with the default profile. If I activate the I am going to close this now as there is no indication of a problem in Spring Boot. If you provide the exact steps to reproduce the problem, I am happy to reopen and have another look. |
this is my project git: https://github.com/gi122281742/springcloud-bus-test.git.
post: http://localhost:7070/actuator/bus-refresh
{
"timestamp": "2020-04-19T01:50:37.635+0000",
"status": 405,
"error": "Method Not Allowed",
"message": "Request method 'POST' not supported",
"path": "/actuator/bus-refresh"
} POST: http://localhost:7081/actuator/bus-refresh
{
"timestamp": "2020-04-19T01:50:34.243+0000",
"status": 404,
"error": "Not Found",
"message": "No message available",
"path": "/actuator/bus-refresh"
} This does not refresh the configuration, but if I modify the configuration of the relevant files in the project as follows management:
endpoints:
web:
exposure:
include: "*" In this case, after requesting / actuator / bus-refresh, you will get an empty body.
And can get the value of the modified configuration file. My English is poor, but I hope you can understand. <spring-cloud.version>Hoxton.SR1</spring-cloud.version> Last but not least, thank you for your reply. But this is really a problem, I think he has not been closed. |
@gi122281742 Thanks for the additional instructions. This turned out to be a bug in our filtering logic. It should be fixed in the next release. As a workaround, I think using the following will work with the release that you're on: management:
endpoints:
web:
exposure:
include: busrefresh |
Thank you for your reply, I am very honored to be able to suggest something useful! |
But this configuration still can not use bus-refreh endpoint, but it does not matter, I can also use "*" to replace it temporarily, or downgrade to use "Hoxton.SR1" version of spingcloud. |
Reopening because we have a similar issue in |
Actually, |
springboot version : 2.2.6.RELEASE
springcloud version: Hoxton.SR3
When I use the bus-fresh endpoint, I find it does not work
my yml is :
But I tried to use * instead of bus-refresh, it started working,for example:
This prevents me from just opening the bus-refresh endpoint。
when i checked source code , i found the reason,in org.springframework.boot.actuate.endpoint.EndpointId, line 145
bus-refresh is replaced with busrefresh, which cannot be matched。
please help me, How to expose only bus-refresh endpoint?
Please forgive me for my poor English, tks
The text was updated successfully, but these errors were encountered: