Null principal provided for method... - Mailing list pgsql-sql

From Andreas Joseph Krogh
Subject Null principal provided for method...
Date
Msg-id VisenaEmail.4e.9034d3fd346fcc03.14de7ff3f4f@tc7-visena
Whole thread Raw
Responses Re: Null principal provided for method...
List 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
Attachment

pgsql-sql by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Renumber Primary Keys and Update the same as Foreign Keys
Next
From: Andreas Joseph Krogh
Date:
Subject: Re: Null principal provided for method...