[MXS-4729] Rest API does not accept commands to modify Created: 2023-08-24 Updated: 2023-09-04 Resolved: 2023-08-25 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | REST-API |
| Affects Version/s: | 6.4.6 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Edward Stoever | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
| Description |
|
Rest API does not work according to documentation to change a server to maintenance state.
Test #2
These commands will work:
|
| Comments |
| Comment by markus makela [ 2023-08-25 ] |
|
The PATCH serves documentation states:
The state of a server is not a parameter as it is based on whether the server is up or not. On the same page there is documentation for the servers/:id/set endpoint that explains to modify the server state. This was never intended to work and is documented to not work. Making it work like this would make it so that a modification to a server's parameters could inadvertently roll back the server's state to an older one causing errors, potential loss of data or all sorts of other problems that happen when stuff gets routed to the wrong node. |