Thread: Null principal provided for method...

Null principal provided for method...

From
Andreas Joseph Krogh
Date:
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
Attachment

Re: Null principal provided for method...

From
Andreas Joseph Krogh
Date:
Sorry, wrong list..
 
--
Andreas Joseph Krogh
CTO / Partner - Visena AS
Mobile: +47 909 56 963
 
Attachment