Mercurial > dive4elements > river
changeset 3524:2c306a3dacef
Use xml namespace for XPath query to get the accout name attribute.
flys-client/trunk@5323 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Bjoern Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Fri, 31 Aug 2012 08:29:07 +0000 |
parents | 6626ed6e3511 |
children | b67af5b44d68 |
files | flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/server/auth/UserClient.java |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-client/ChangeLog Fri Aug 31 07:50:51 2012 +0000 +++ b/flys-client/ChangeLog Fri Aug 31 08:29:07 2012 +0000 @@ -1,3 +1,8 @@ +2012-08-31 Björn Ricks <bjoern.ricks@intevation.de> + + * src/main/java/de/intevation/flys/client/server/auth/UserClient.java: + User xml namespace for XPath attribute query. + 2012-08-31 Björn Ricks <bjoern.ricks@intevation.de> * src/main/webapp/WEB-INF/web.xml:
--- a/flys-client/src/main/java/de/intevation/flys/client/server/auth/UserClient.java Fri Aug 31 07:50:51 2012 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/server/auth/UserClient.java Fri Aug 31 08:29:07 2012 +0000 @@ -36,7 +36,7 @@ if (user == null) { return false; } - String XPATH_USERACCOUNT = "/art:user/art:account/@name"; + String XPATH_USERACCOUNT = "/art:user/art:account/@art:name"; String account = XMLUtils.xpathString( data, XPATH_USERACCOUNT, ArtifactNamespaceContext.INSTANCE);