Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

[13:47:33 CDT(-0500)] <drewwills> trying that

[13:49:27 CDT(-0500)] <drewwills> i bet a java API (as a PortletContext attr) would cover most use cases if it just had user attributes, groups, permissions

[14:04:47 CDT(-0500)] <athena> that seems plausible

[14:05:00 CDT(-0500)] <EricDalquist> yeah and will be easier if I can get time to finish this spring-portlet contrib work

[14:05:08 CDT(-0500)] <EricDalquist> that would fit well into the new portlet-application level context config

[14:05:15 CDT(-0500)] <EricDalquist> since we would have the PortletContext availble there

[14:09:38 CDT(-0500)] <mmoayyed> Hi everyone. I am experiencing a strange issue. Working on an instance of the email-preview portlet, for some reason the USER_INFO map is completely empty. Any ideas?

[14:10:26 CDT(-0500)] <EricDalquist> you have user attributes configured in portlet.xml?

[14:11:30 CDT(-0500)] <mmoayyed> I have the user attribute entries defined for both password and user.login.id. I have configured clearpass and I do see the log entry that indicates psw is being retrieved. I have also added the 'cachedPasswordUserInfoService' bean into the context

[14:11:46 CDT(-0500)] <mmoayyed> still, isEmpty() returns true

[14:11:51 CDT(-0500)] <EricDalquist> weird

[14:16:17 CDT(-0500)] <mmoayyed> I had no values for attributes, that would have been slightly better. But a completely empty map makes very suspicious. javadocs say the attribute needs to be supported by the current runtime system. Is there any other configuration that I should add?

[14:16:27 CDT(-0500)] <mmoayyed> *if I had...

[14:16:55 CDT(-0500)] <athena> that does seem odd - maybe set a breakpoint in CachedPasswordUserInfoService?

[14:17:07 CDT(-0500)] <athena> make sure it' sgetting called, retrieving successfully, etc.

[14:17:35 CDT(-0500)] <EricDalquist> so the parts that need to match are:

[14:17:35 CDT(-0500)] <EricDalquist> the attribute(s) are needed in portlet.xml

[14:17:35 CDT(-0500)] <EricDalquist> the same attribute(s) need to exist in personDirectory

[14:17:35 CDT(-0500)] <EricDalquist> the exception to the previous point are "special" attribute names for things like the cached password or CAS PGT

[14:27:22 CDT(-0500)] <mmoayyed> I definitely have uid, username and user.login.id defined in person-dir. This particular user does exist inside UP_USER. my person directory config for uPortalJdbcUserSource and uPortalAccountUserSource is identical to the copy of the file on github

[14:29:08 CDT(-0500)] <mmoayyed> just one thing though. I dont have to do anything special for CachedPasswordUserInfoService to kick in right? user info beans are all loaded by type?

[14:29:22 CDT(-0500)] <EricDalquist> I believe so

[14:29:29 CDT(-0500)] <mmoayyed> 'cause the documentation suggested that it needed to be added to somewhere else, but I suspect that's old

[14:29:33 CDT(-0500)] <EricDalquist> @Autowired

[14:29:33 CDT(-0500)] <EricDalquist> public void setUserInfoServices(Set<UserInfoService> userInfoServices) {

[14:29:37 CDT(-0500)] <EricDalquist> looks like it

[14:41:55 CDT(-0500)] <mmoayyed> does UP has a logging aspect, such that if I turn up the TRACE level, I'd be able to review method arguments on entering and exiting methods?

[14:42:56 CDT(-0500)] <EricDalquist> no

[14:43:03 CDT(-0500)] <EricDalquist> would be a nice thing to add

[14:43:05 CDT(-0500)] <mmoayyed> I am working on a remote linux server, and it's hooked up in a way that makes the build very difficult locally. If it's possibly, I'd rather debug the issue through logs

[14:43:24 CDT(-0500)] <mmoayyed> This is what CAS does:

[14:43:25 CDT(-0500)] <mmoayyed> http://grepcode.com/file/repo1.maven.org/maven2/org.jasig.cas/cas-server-core/3.4.11/org/jasig/cas/aspect/LogAspect.java#LogAspect

[14:44:01 CDT(-0500)] <mmoayyed> should be able to use the same exact code, with very little changes

[14:44:42 CDT(-0500)] <EricDalquist> yeah

[14:50:09 CDT(-0500)] <EricDalquist> athena: what was that JS templating library you were looking at?

[15:00:56 CDT(-0500)] <athena> backbone.js

[15:01:00 CDT(-0500)] <athena> builds on jQuery and underscore

[15:01:20 CDT(-0500)] <athena> been getting a lot of use on other projects at unicon - seems to have a pretty good reputation

[15:01:26 CDT(-0500)] <athena> playing with it right now, actually

[15:03:42 CDT(-0500)] <athena> has templating, events, some nice stuff

[15:04:09 CDT(-0500)] <EricDalquist> cool

[15:04:14 CDT(-0500)] <EricDalquist> just passed it on to nick

[15:04:29 CDT(-0500)] <EricDalquist> he was complaining about mockup up a week view of a calendar in html

[15:04:33 CDT(-0500)] <athena> i'm certainly not an expert, but people like matt have been doing a lot of work with it

[15:04:33 CDT(-0500)] <EricDalquist> (smile)

[15:04:58 CDT(-0500)] <athena> trying it out on the news portlet right now

[15:05:20 CDT(-0500)] <EricDalquist> cool