Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Reconvert shibboleth attribute only if it is neither null nor empty.

  • Loading branch information...
commit c6016c830437c367551fc7f4b7e27011eec13c9d 1 parent 7e6b805
@pnbecker pnbecker authored
View
2  dspace-api/src/main/java/org/dspace/authenticate/ShibAuthentication.java
@@ -1102,7 +1102,7 @@ private String findAttribute(HttpServletRequest request, String name) {
"reconvert.attributes",
false);
- if (reconvertAttributes)
+ if (!StringUtils.isEmpty(value) && reconvertAttributes)
{
try {
value = new String(value.getBytes("ISO-8859-1"), "UTF-8");
Please sign in to comment.
Something went wrong with that request. Please try again.