You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/04/18 05:44:42 UTC

[GitHub] [apisix] soulbird commented on a diff in pull request #6859: fix: do not expose internal errors to the client

soulbird commented on code in PR #6859:
URL: https://github.com/apache/apisix/pull/6859#discussion_r851893152


##########
apisix/plugins/wolf-rbac.lua:
##########
@@ -284,7 +283,8 @@ function _M.rewrite(conf, ctx)
 
     local consumer_conf = consumer.plugin(plugin_name)
     if not consumer_conf then
-        return 401, fail_response("Missing related consumer")
+        core.log.warn("Missing related consumer")
+        return 401, fail_response("Invalid user authorization")

Review Comment:
   I'll reset this modification



-- 
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-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org