Projects tigase _server tigase-extras Issues #6
Cannot store token in database, UserNotFoundException (#6)
wojciech.kapcia@tigase.net opened 3 years ago

During registration there is an exception when trying to send confirmation email that the user doesn't exists. Though, it should be created before sending the email:

[2021-08-08 21:50:36:678] [FINEST  ] [jabber:iq:register-proc-0 ] EmailConfirmationSender.sendToken(): Sending token, jid:  cy…@tigase.im, timestamp: 8/8/21, 9:50 PM, to mail: nb…@….com 
[2021-08-08 21:50:36:681] [WARNING ] [jabber:iq:register-proc-0 ] EmailConfirmationSender.sendToken(): Cannot store token in database
tigase.db.UserNotFoundException: User does not exist:  cy…@tigase.im
	at tigase.db.jdbc.JDBCRepository.getUserUID(JDBCRepository.java:1195)
	at tigase.db.jdbc.JDBCRepository.setData(JDBCRepository.java:650)
	at tigase.db.jdbc.JDBCRepository.setData(JDBCRepository.java:700)
	at jdk.internal.reflect.GeneratedMethodAccessor29.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
	at tigase.stats.StatisticsInvocationHandler.invoke(StatisticsInvocationHandler.java:75)
	at com.sun.proxy.$Proxy42.setData(Unknown Source)
	at tigase.db.UserRepositoryMDImpl.setData(UserRepositoryMDImpl.java:353)
	at tigase.extras.emailconfirm.EmailConfirmationSender.sendToken(EmailConfirmationSender.java:121)
	at tigase.extras.emailconfirm.EmailConfirmationSender.sendAccountValidation(EmailConfirmationSender.java:88)
	at tigase.xmpp.impl.JabberIqRegister.createAccount(JabberIqRegister.java:464)
	at tigase.xmpp.impl.JabberIqRegister.doRegisterNewAccount(JabberIqRegister.java:713)
	at tigase.xmpp.impl.JabberIqRegister.process(JabberIqRegister.java:338)
	at tigase.server.xmppsession.SessionManager$ProcessorWorkerThread.process(SessionManager.java:2656)
	at tigase.util.processing.WorkerThread.run(WorkerThread.java:67)
wojciech.kapcia@tigase.net batch edited 6 months ago
Name Previous Value Current Value
Iterations
empty
Candidate for next minor release
issue 1 of 1
Type
Bug
Priority
Normal
Assignee
Version
Candidate for next minor release
Issue Votes (0)
Watchers (2)
Reference
tigase/_server/tigase-extras#6
Please wait...
Page is in error, reload to recover