Null principal provided for method...

From: Andreas Joseph Krogh <andreas(at)visena(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Null principal provided for method...
Date: 2015-06-12 13:42:25
Message-ID: VisenaEmail.4e.9034d3fd346fcc03.14de7ff3f4f@tc7-visena
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(dot)visena(dot)test(dot)caldav(dot)milton(dot)Meeting(at)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
andreas(at)visena(dot)com <mailto:andreas(at)visena(dot)com>
www.visena.com <https://www.visena.com>
<https://www.visena.com>

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Andreas Joseph Krogh 2015-06-12 13:47:52 Re: Null principal provided for method...
Previous Message Adrian Klaver 2015-06-11 20:24:40 Re: Renumber Primary Keys and Update the same as Foreign Keys