agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedNull principal provided for method...
2+ messages / 1 participants
[nested] [flat]
* Null principal provided for method...
@ 2015-06-12 13:42 Andreas Joseph Krogh <andreas@visena.com>
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Joseph Krogh @ 2015-06-12 13:42 UTC (permalink / raw)
To: 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
andreas@visena.com <mailto:andreas@visena.com>
www.visena.com <https://www.visena.com;
<https://www.visena.com;
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Null principal provided for method...
@ 2015-06-12 13:47 Andreas Joseph Krogh <andreas@visena.com>
parent: Andreas Joseph Krogh <andreas@visena.com>
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Joseph Krogh @ 2015-06-12 13:47 UTC (permalink / raw)
To: pgsql-sql
Sorry, wrong list..
-- Andreas Joseph Krogh
CTO / Partner - Visena AS
Mobile: +47 909 56 963
andreas@visena.com <mailto:andreas@visena.com>
www.visena.com <https://www.visena.com;
<https://www.visena.com;
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2015-06-12 13:47 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-06-12 13:42 Null principal provided for method... Andreas Joseph Krogh <andreas@visena.com>
2015-06-12 13:47 ` Andreas Joseph Krogh <andreas@visena.com>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox