Null principal provided for method...

Поиск
Список
Период
Сортировка
От Andreas Joseph Krogh
Тема Null principal provided for method...
Дата
Msg-id VisenaEmail.4e.9034d3fd346fcc03.14de7ff3f4f@tc7-visena
обсуждение исходный текст
Ответы Re: Null principal provided for method...
Список pgsql-sql
Hi.
 
I'm unable to make Milton call my getMeeting controller-method with a @Principal. My method is like this:
 
@ChildOf
public Meeting getMeeting(Calendar cal, String uid, @Principal User user) {   Meeting foundMeeting = cal.user.getMeetings().stream().filter(x -> x.getName().equals(uid)).findFirst().orElse(null);   log.debug("Getting meeting as " + user + ": Found meeting: " + foundMeeting);   return foundMeeting;
}
 
But "user" is always NULL and the log reports::
 
AnnotationResourceFactory - Null principal provided for method: public com.visena.test.caldav.milton.Meeting com.visena.test.caldav.milton.
CalDavController.getMeeting(com.visena.test.caldav.milton.Calendar,java.lang.String,com.visena.test.caldav.milton.User) CalDavController - Getting meeting as null: Found meeting: com.visena.test.caldav.milton.Meeting@4af7b475
 
Any idea how to make Milton fill in the "user" argument?
 
Thanks.
 
--
Andreas Joseph Krogh
CTO / Partner - Visena AS
Mobile: +47 909 56 963
Вложения

В списке pgsql-sql по дате отправления:

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Renumber Primary Keys and Update the same as Foreign Keys
Следующее
От: Andreas Joseph Krogh
Дата:
Сообщение: Re: Null principal provided for method...