IevgenTarasov closed pull request #34: [Fediz 1.4] Allow empty roles
URL: https://github.com/apache/cxf-fediz/pull/34
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git
a/plugins/core/src/main/java/org/apache/cxf/fediz/core/processor/AbstractFedizProcessor.java
b/plugins/core/src/main/java/org/apache/cxf/fediz/core/processor/AbstractFedizProcessor.java
index 0c035df0..eb05f371 100644
---
a/plugins/core/src/main/java/org/apache/cxf/fediz/core/processor/AbstractFedizProcessor.java
+++
b/plugins/core/src/main/java/org/apache/cxf/fediz/core/processor/AbstractFedizProcessor.java
@@ -129,7 +129,7 @@ protected String extractFullContextPath(HttpServletRequest
request) throws Malfo
@SuppressWarnings("unchecked")
List<String> values = (List<String>) oValue;
roles = Collections.unmodifiableList(values);
- } else if (!((oValue instanceof String) || (oValue instanceof
List<?>))) {
+ } else if (!((oValue instanceof String) || (oValue instanceof
List<?>) || (oValue == null))) {
LOG.error("Unsupported value type of Claim value");
throw new IllegalStateException("Unsupported value type of
Claim value");
}
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services