Issue 225 in uda: Breadcrumb user name in first load (UDA v2.4.4)

5 views
Skip to first unread message

u...@googlecode.com

unread,
Jan 19, 2015, 7:27:55 AM1/19/15
to uda-...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 225 by Diego...@gmail.com: Breadcrumb user name in first load
(UDA v2.4.4)
https://code.google.com/p/uda/issues/detail?id=225

What steps will reproduce the problem?
1.Access initial url with spring security authentication activated.

What is the expected output? What do you see instead?
I expected seeing after login the user name in the breadcrumb.
The user name is not loaded until navegation to another page or refresh.

What version of the product are you using? On what operating system?
UDA 4.4.2

Please provide any additional information below.
Posible solution:
Change autogenerated base-includes.jsp

//LOGGED_USER = '${!empty
sessionScope.SPRING_SECURITY_CONTEXT.authentication.principal ?
sessionScope.SPRING_SECURITY_CONTEXT.authentication.credentials.fullName :
sessionScope.userData.fullName}',
LOGGED_USER = '${!empty
sessionScope.SPRING_SECURITY_CONTEXT.authentication.principal ?
sessionScope.SPRING_SECURITY_CONTEXT.authentication.credentials.fullName :
sessionScope.fullName}',




--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

u...@googlecode.com

unread,
Feb 24, 2015, 9:21:35 AM2/24/15
to uda-...@googlegroups.com
Updates:
Status: Verified

Comment #1 on issue 225 by serg...@gmail.com: Breadcrumb user name in first
Hola,

En la siguiente versión de UDA el generador de código producirá la
siguiente sentencia para inicializar la variable LOGGED_USER.

LOGGED_USER = "${udaAuthenticationProvider.userCredentials.fullName}"

De este modo se normaliza la obtención del nombre del usuario que hace
login.

El bean udaAuthenticationProvider se expone a la jsp mediante la siguiente
configuración existente en el fichero mvc-config.xml:

<bean id="viewResolver"
class="com.ejie.x38.control.view.UdaViewResolver">
<property name="viewClass"
value="com.ejie.x38.control.view.UdaTilesView"/>
<property name="exposedContextBeanNames" >
<list>
<value>localeResolver</value>
<value>mvcInterceptor</value>
<value>udaAuthenticationProvider</value>
</list>
</property>
</bean>



Un saludo,

UDA
Reply all
Reply to author
Forward
0 new messages