openwhisk-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [openwhisk] markusthoemmes commented on a change in pull request #4709: Extend the SPI entitlement interface
Date Tue, 05 Nov 2019 11:01:15 GMT
markusthoemmes commented on a change in pull request #4709: Extend the SPI entitlement interface
URL: https://github.com/apache/openwhisk/pull/4709#discussion_r342501051
 
 

 ##########
 File path: core/controller/src/main/scala/org/apache/openwhisk/core/entitlement/Entitlement.scala
 ##########
 @@ -295,6 +310,12 @@ protected[core] abstract class EntitlementProvider(
             if (failedResources.isEmpty) Future.successful(())
             else Future.failed(unauthorizedOn(failedResources.map(_._1)))
           })
+          .recoverWith {
+            case e =>
+              logging
+                .info(this, s"failed to check resources: ${e.getMessage}")
+              Future.failed(checkAuthorizationFailureOn(resources))
 
 Review comment:
   What do we currently respond with if an inner authorization call fails? Just a generic
error?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message