An Authentication object was not found in the SecurityContext

froue44
Messages : 2
Inscription : lun. févr. 22, 2016 9:11 am

An Authentication object was not found in the SecurityContext

Message par froue44 »

Bonjour,
Après installation de de squash-tm 1.13.2 en faisant une extraction du tgz d'installation
sur du Debian et mysql
mysql> SHOW VARIABLES LIKE "%version%";
+-------------------------+------------------+
| Variable_name | Value |
+-------------------------+------------------+
| innodb_version | 5.5.46 |
| protocol_version | 10 |
| slave_type_conversions | |
| version | 5.5.46-0+deb8u1 |
| version_comment | (Debian) |
| version_compile_machine | x86_64 |
| version_compile_os | debian-linux-gnu |
+-------------------------+------------------+
Paramétrage du startup.sh
et squash.tm.cfg.properties et de squash.tm.cfg-mysql.properties
# EMBEDDED SERVER CONFIGURATION
###############################
spring.profiles.active=mysql
server.session-timeout=3600
server.tomcat.access-log-enabled=true
server.tomcat.basedir=${squash.path.root}/tomcat-work

Pourquoi config pour spring.config.location=../config il n'y a aucun répertoire qui s'appelle config dans l'insatlaltion ?
La variable ${squash.path.root} est déclarée où exactement?

L'application se lance correctement maais dès que je veux créer une campagne par exemple en cliquant sur le bouton + :
1°) il est grisé et il ne se passe rien dans l'appli

Par en log
[16-02-22 11:33:54.943] SquashTM - 25582 INFO [http-nio-8080-exec-7] []--- org.squashtest.tm.web.internal.security.authentication.BugTrackerAutoconnectCallback: Autologging against known bugtrackers...
[16-02-22 11:33:54.945] SquashTM - 25582 INFO [squashtest.tm.service.ThreadPoolTaskScheduler-1] []--- org.springframework.boot.actuate.audit.listener.AuditListener: AuditEvent [timestamp=Mon Feb 22 11:33:54 CET 2016, principal=, type=AUTHENTICATION_FAILURE, data={message=An Authentication object was not found in the SecurityContext, type=org.springframework.security.authentication.AuthenticationCredentialsNotFoundException}]
[16-02-22 11:33:54.946] SquashTM - 25582 ERROR [squashtest.tm.service.ThreadPoolTaskScheduler-1] []--- org.springframework.scheduling.support.TaskUtils$LoggingErrorHandler: Unexpected error occurred in scheduled task.
org.springframework.security.authentication.AuthenticationCredentialsNotFoundException: An Authentication object was not found in the SecurityContext
at org.springframework.security.access.intercept.AbstractSecurityInterceptor.credentialsNotFound(AbstractSecurityInterceptor.java:339)
at org.springframework.security.access.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:198)
at org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:60)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)

Avez-vous une idée ?
cpandya
Messages : 7
Inscription : lun. mai 09, 2016 11:00 am

An Authentication object was not found in the SecurityContext

Message par cpandya »

I am also facing the same issue? Any solution for this?
Répondre

Revenir à « Installation & Base de données / Installation & Database »