dosubot[bot] commented on issue #34548: URL: https://github.com/apache/superset/issues/34548#issuecomment-3153806337
<!-- Answer --> This is a bug in Superset 5.0.0: the PUT /api/v1/rowlevelsecurity/{pk} endpoint returns a 201 status code on update, even though the API docs and REST standards say it should return 200. The code explicitly returns 201 on successful update, which is nonstandard and not intended behaviorĀ ([see source code](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/row_level_security/api.py)). There are no existing issues or fixes for this yet. As a workaround, you can treat both 200 and 201 as success for this endpoint in your automation scripts. This bug could affect other endpoints that use the same generic API base classes, so watch for similar patterns elsewhere. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/08acc199-51b4-4111-aee1-96f5ee7fde09?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/08acc199-51b4-4111-aee1-96f5ee7fde09?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/08acc199-51b4-4111-aee1-96f5ee7fde09?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/08acc199-51b4-4111-aee1-96f5ee7fde09?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/08acc199-51b4-4111-aee1-96f5ee7fde09?feedback_type=hallucination) | [Report š](https://app.dosu.dev/response-feedback/08acc199-51b4-4111-aee1-96f5ee7fde09?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/08acc199-51b4-4111-aee1-96f5ee7fde09?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=githu b) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/34548) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org