agora inbox for pgsql-sql@postgresql.org  
help / color / mirror / Atom feed
From: Andreas Joseph Krogh <andreas@visena.com>
To: pgsql-sql@postgresql.org
Subject: Null principal provided for method...
Date: Fri, 12 Jun 2015 15:42:25 +0200 (CEST)
Message-ID: <VisenaEmail.4e.9034d3fd346fcc03.14de7ff3f4f@tc7-visena> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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;

view thread (2+ messages)  latest in thread

Message-ID: <VisenaEmail.4e.9034d3fd346fcc03.14de7ff3f4f@tc7-visena>
Permalink:  ../VisenaEmail.4e.9034d3fd346fcc03.14de7ff3f4f@tc7-visena/
Also on:    postgresql.org/message-id/VisenaEmail.4e.9034d3fd346fcc03.14de7ff3f4f@tc7-visena

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: andreas@visena.com
  Subject: Re: Null principal provided for method...
  In-Reply-To: <VisenaEmail.4e.9034d3fd346fcc03.14de7ff3f4f@tc7-visena>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox