-
Notifications
You must be signed in to change notification settings - Fork 170
POST to loggers actuator fails if the base management path is / #467
Copy link
Copy link
Closed
Labels
Component/ManagementIssues related to Steeltoe Management (actuators)Issues related to Steeltoe Management (actuators)ReleaseLine/2.xIdentified as a feature/fix for the 2.x release lineIdentified as a feature/fix for the 2.x release lineReleaseLine/3.xIdentified as a feature/fix for the 3.x release lineIdentified as a feature/fix for the 3.x release lineType/bugSomething isn't workingSomething isn't working
Milestone
Description
Describe the bug
When posting to the loggers endpoint when using the dynamic logger to change the log level, the request fails with a 400 bad request if the management endpoints path is /.
Steps to reproduce
Steps to reproduce the behavior:
- Create a simple AspNet Core app and add Steeltoe Dynamic logging and Management Endpoints.
- Configure the management endpoints:
"Management": {
"Endpoints": {
"Path": "/",
"Actuator": {
"Exposure": {
"Include": [ "info", "health", "loggers" ]
}
}
}
}
- Attempt to change the level: POST https://localhost:5000/loggers/Microsoft
Expected behavior
The request to return a 200 OK and the level should be changed.
Environment (please complete the following information):
- Platform: Local
- OS: Windows 10
- .NET Version: Core 3.1
- Steeltoe Version 3.0 (also fails in 2.x line)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Component/ManagementIssues related to Steeltoe Management (actuators)Issues related to Steeltoe Management (actuators)ReleaseLine/2.xIdentified as a feature/fix for the 2.x release lineIdentified as a feature/fix for the 2.x release lineReleaseLine/3.xIdentified as a feature/fix for the 3.x release lineIdentified as a feature/fix for the 3.x release lineType/bugSomething isn't workingSomething isn't working