Title: Message Title
|
|
This is still broken for our Shib environment in 3.2, and I'm reopening because I sort of feel like we should replace the rather hard-to-maintain do/while + indexOf loop with a nice simple: {code} String values = findAttribute(request, name); if (values == null) return null; // Shibboleth attributes are separated by semicolons (and semicolons are // escaped with a backslash). So here we will scan through the string and // split on any unescaped semicolons. values = values.replaceAll("\\\\;", ";"); String[] valueArray = values.split(";"); List<String> valueList = Arrays.asList(valueArray); return valueList; } {code}
|
|
|
|
|
When Shibboleth returns multiple values for a header, such as SHIB-SCOPED-AFFILIATION, it delimits the values with semicolons. The code in org.dspace.authenticate.ShibAuthentication.findMultipleHeaders does not correctly handle such values, due to a minor logic error. I have a patch which I have confirmed fixes this issue (thanks to Mark Wood for his help...
|
|
|
|
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Dspace-devel mailing list
Dspace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-devel