uPortal IRC Logs-2008-02-25

[08:22:15 EST(-0500)] * colinclark (n=colin@bas1-toronto09-1279474975.dsl.bell.ca) has joined ##uportal
[09:08:56 EST(-0500)] * colinclark (n=colin@bas1-toronto09-1279474975.dsl.bell.ca) has joined ##uportal
[09:24:03 EST(-0500)] * jayshao (n=jayshao@campuseai.expedient.com) has joined ##uportal
[09:36:44 EST(-0500)] * EricDalquist (n=dalquist@bohemia.doit.wisc.edu) has joined ##uportal
[09:45:22 EST(-0500)] * anastasiac (n=chatzill@142.150.154.190) has joined ##uportal
[10:07:48 EST(-0500)] * athena7 (n=athena7@lumina.its.yale.edu) has joined ##uportal
[10:17:56 EST(-0500)] * colinclark (n=colin@bas1-toronto09-1279543452.dsl.bell.ca) has joined ##uportal
[10:37:52 EST(-0500)] * anastasiac (n=chatzill@142.150.154.190) has left ##uportal
[10:42:32 EST(-0500)] * anastasiac (n=anastasi@142.150.154.149) has joined ##uportal
[10:52:29 EST(-0500)] * colinclark (n=colin@142.150.154.101) has joined ##uportal
[11:58:04 EST(-0500)] * dstn (n=dstn@unaffiliated/dstn) has joined ##uportal
[12:16:05 EST(-0500)] * theclown (n=clown@142.150.154.101) has joined ##uportal
[14:00:39 EST(-0500)] * dstn (n=dstn@unaffiliated/dstn) has left ##uportal
[14:00:41 EST(-0500)] * anastasiac (n=anastasi@142.150.154.149) has left ##uportal
[14:05:22 EST(-0500)] <athena7> is there anyone around who can add jars to the jasig maven repo?
[14:05:34 EST(-0500)] <EricDalquist> yup
[14:07:07 EST(-0500)] <athena7> do you think you'd be able to add the ical4j beta4 jar for me?
[14:07:17 EST(-0500)] <athena7> we'd discussed doing it before, but it looks like i'm not in the right group
[14:08:15 EST(-0500)] <EricDalquist> sure
[14:08:37 EST(-0500)] <EricDalquist> can you post a link to or email me the jar with the groupid,artifactid and version you want for it?
[14:09:31 EST(-0500)] <athena7> sure
[14:10:01 EST(-0500)] <EricDalquist> thanks
[14:10:03 EST(-0500)] <athena7> http://sourceforge.net/project/showfiles.php?group_id=107024
[14:10:52 EST(-0500)] <athena7> group: ical4j, artifactId: ical4j, version: 1.0-beta4
[14:11:03 EST(-0500)] <athena7> that should keep us in line with the versions that are actually in repos
[14:11:17 EST(-0500)] <athena7> so that when the release goes up it'll be just a matter of changing the version
[14:11:22 EST(-0500)] <EricDalquist> cool
[14:12:51 EST(-0500)] <athena7> thanks!
[14:13:10 EST(-0500)] <EricDalquist> yup
[14:13:16 EST(-0500)] <EricDalquist> I'll let you know when it is there
[14:21:01 EST(-0500)] <athena7> thanks!
[14:21:33 EST(-0500)] <athena7> by the way, do you know what the best way to get the URL of a portlet is?
[14:21:39 EST(-0500)] <athena7> this is for the CAS proxy stuff
[14:21:55 EST(-0500)] <EricDalquist> the URL of a portlet?
[14:22:00 EST(-0500)] <athena7> i guess i can probably build it by grabbing the portletApplicationId
[14:22:03 EST(-0500)] <EricDalquist> like the raw servlet URL?
[14:22:11 EST(-0500)] <athena7> yeah
[14:22:24 EST(-0500)] <EricDalquist> do you have a specific servlet you need to target with the URL?
[14:22:35 EST(-0500)] <athena7> no, i think just the root of the application
[14:22:42 EST(-0500)] <athena7> that's how the up2.6 one works
[14:22:48 EST(-0500)] <athena7> although there you have to manually configure it
[14:23:15 EST(-0500)] <EricDalquist> PortletContext.getPortletContextName()
[14:23:22 EST(-0500)] <athena7> oh ok
[14:25:09 EST(-0500)] <athena7> the merging part is working at least
[14:31:21 EST(-0500)] <EricDalquist> http://developer.ja-sig.org/maven2/ical4j/ical4j/1.0-beta4/
[14:31:22 EST(-0500)] <EricDalquist> all set
[14:31:31 EST(-0500)] <EricDalquist> the pom even declares its dependencies
[14:35:17 EST(-0500)] <athena7> great, thanks!
[14:35:21 EST(-0500)] <EricDalquist> yup
[14:38:03 EST(-0500)] <athena7> ok, more casproxy-related questions
[14:38:11 EST(-0500)] <EricDalquist> ok (smile)
[14:38:37 EST(-0500)] <athena7> the 2.6 version grabs the IPerson from the channel static data, then gets the security contexts from that, and looks for the CAS security context
[14:38:57 EST(-0500)] <athena7> do you have a recommendation for getting a security context for the current user in a portlet user info service?
[14:39:03 EST(-0500)] <EricDalquist> sure
[14:39:38 EST(-0500)] <EricDalquist> you can take a look at ChannelRequestParameterProcessor
[14:39:48 EST(-0500)] <EricDalquist> oh wait
[14:39:50 EST(-0500)] <EricDalquist> sorry wrong class
[14:40:52 EST(-0500)] <EricDalquist> UserLayoutParameterProcessor
[14:41:07 EST(-0500)] <EricDalquist> final IUserInstance userInstance = this.userInstanceManager.getUserInstance(request);
[14:41:07 EST(-0500)] <EricDalquist> final IPerson person = userInstance.getPerson();
[14:41:29 EST(-0500)] <EricDalquist> the IUserInstanceManager is a spring managed bean now
[14:41:38 EST(-0500)] <EricDalquist> so injectable into your class
[14:41:51 EST(-0500)] <athena7> oh ok
[14:42:11 EST(-0500)] <EricDalquist> and IUserInstance is just a data structure now
[14:42:15 EST(-0500)] <athena7> so i can just inject the UserInstance bean into the UserInfoService and then get the person from it?
[14:42:28 EST(-0500)] <EricDalquist> there is aren't any functional methods in it any more
[14:42:39 EST(-0500)] <EricDalquist> inject the IUserInstanceManager
[14:42:58 EST(-0500)] <EricDalquist> and you can get the IUserInstance for the current request from that
[14:43:13 EST(-0500)] <athena7> ah ok
[14:43:13 EST(-0500)] <athena7> thanks
[14:43:24 EST(-0500)] <athena7> trying to get a handle around which things are springified now
[14:43:32 EST(-0500)] <athena7> i guess maybe it's safe to assume most of them are (smile)
[14:43:38 EST(-0500)] <EricDalquist> most of them
[14:43:42 EST(-0500)] <EricDalquist> and if they aren't we can make them
[14:43:59 EST(-0500)] <EricDalquist> my pattern to date is to leave things as they are until I need them in spring
[14:44:06 EST(-0500)] <EricDalquist> then I gut the factory class and deprecate it
[14:44:12 EST(-0500)] <EricDalquist> remove the properties from portal.properties
[14:44:16 EST(-0500)] <EricDalquist> and move the impl into Spring
[14:44:24 EST(-0500)] <EricDalquist> point the factory to the spring context to get the bean
[14:44:27 EST(-0500)] <EricDalquist> for legacy support
[14:44:29 EST(-0500)] <athena7> makes sense
[14:48:14 EST(-0500)] <athena7> great, this should be totally doable
[14:48:26 EST(-0500)] <EricDalquist> cool
[14:48:27 EST(-0500)] <EricDalquist> oh
[14:48:32 EST(-0500)] <EricDalquist> one more thing ... let me check ...
[14:48:44 EST(-0500)] <athena7> for the merging class what type of map should i use?
[14:49:07 EST(-0500)] <EricDalquist> if you look at PersonDirectoryUserInfoService.getUserInfo
[14:49:07 EST(-0500)] <athena7> i see the the persondirectoryuserinfoservice uses Map<String, String> but I wasn't sure I should count of that for all services
[14:49:10 EST(-0500)] <EricDalquist> you see the line:
[14:49:10 EST(-0500)] <EricDalquist> final HttpServletRequest httpServletRequest = PortletContainerUtils.getOriginalPortletAdaptorRequest(request);
[14:49:10 EST(-0500)] <EricDalquist>
[14:49:22 EST(-0500)] <athena7> yeah i found that (smile)
[14:49:23 EST(-0500)] <athena7> thanks!
[14:49:24 EST(-0500)] <EricDalquist> you'll probably need to do the same thing in your class before passing the request
[14:49:28 EST(-0500)] <athena7> yeah, i do
[14:49:40 EST(-0500)] <EricDalquist> yeah other wise the request you get is the one for the portlet
[14:49:42 EST(-0500)] <athena7> the getuserinstance method doesn't seem to take a portletrequest
[14:49:43 EST(-0500)] <EricDalquist> which doesn't help
[14:49:46 EST(-0500)] <athena7> yeah
[14:50:07 EST(-0500)] <EricDalquist> ah
[14:50:12 EST(-0500)] <EricDalquist> yeah it returns a Map<String, String>
[14:50:20 EST(-0500)] <EricDalquist> because that is what the portlet spec says the map should contain
[14:50:23 EST(-0500)] <athena7> will all user info services?
[14:50:24 EST(-0500)] <athena7> oh, great
[14:50:28 EST(-0500)] <EricDalquist> yup
[14:50:34 EST(-0500)] <EricDalquist> that is defined on the interface I believe
[14:50:36 EST(-0500)] <athena7> the interface left it ambiguous, so i wasn't sure if that was something i could count on
[14:50:42 EST(-0500)] <EricDalquist> oh yeah
[14:50:44 EST(-0500)] <athena7> great
[14:50:50 EST(-0500)] <EricDalquist> since Pluto 1.1 is JDK4 compatible
[14:51:04 EST(-0500)] <EricDalquist> yes you can assume Map<String, String>
[14:51:59 EST(-0500)] <athena7> great, thanks!
[15:01:51 EST(-0500)] <athena7> hmmm
[15:02:13 EST(-0500)] <athena7> so i'm wondering if we might want a way to enable/disable the cas ticket service for individual portlets
[15:02:38 EST(-0500)] <EricDalquist> is it going to be a bit of overhead?
[15:03:00 EST(-0500)] <athena7> i don't think it should be that bad - i just don't know if anyone will only want to make proxy tickets available to particular portlets
[15:03:10 EST(-0500)] <EricDalquist> one way would be to only honor requests for cas tickets if the portlet declares the 'cas ticket user attribute' in its portlet.xml
[15:03:32 EST(-0500)] <EricDalquist> which really it should be doing anyways
[15:03:50 EST(-0500)] <athena7> that's a good point
[15:36:25 EST(-0500)] * colinclark (n=colin@142.150.154.101) has joined ##uportal
[15:42:16 EST(-0500)] * anastasiac (n=anastasi@142.150.154.149) has joined ##uportal
[15:59:07 EST(-0500)] <athena7> i think this code is mostly there, but i'm going to need to find a good way to test it
[15:59:45 EST(-0500)] <EricDalquist> how much of it can be unit tested?
[16:00:38 EST(-0500)] <athena7> umm, not sure
[16:00:48 EST(-0500)] <athena7> i have to admit i'm not as up on unit testing as i should be
[16:00:56 EST(-0500)] <athena7> definitely not sure how to swing that with cas and such
[16:01:40 EST(-0500)] <EricDalquist> if you pastebin the code I could give you a few pointers
[16:02:18 EST(-0500)] <athena7> yeah maybe i'll try that later if i can't get my machine set up enough to really look at it
[16:02:37 EST(-0500)] <athena7> i can log in through CAS to my portal instance, but i don't get pgtIOUs
[16:03:19 EST(-0500)] <EricDalquist> ah yeah so the unit testing would help with the code itself but testing against an actual cas server would be rough
[16:03:25 EST(-0500)] <athena7> yeah
[16:03:39 EST(-0500)] <athena7> it at least goes and gets the context and checks for authentication correclty and all that
[16:03:44 EST(-0500)] <athena7> i just want to make sure it really works (smile)
[16:03:56 EST(-0500)] <EricDalquist> yeah
[16:03:58 EST(-0500)] <athena7> if i have to i could throw it up on our departmental server, probably
[16:04:13 EST(-0500)] <athena7> i'm guessing the problem is that i'm not running SSL?
[16:04:32 EST(-0500)] <EricDalquist> not sure ... I have no CAS experience
[16:04:41 EST(-0500)] <athena7> (smile)
[16:04:54 EST(-0500)] <athena7> i tend to forget this stuff because i just don't think about it very often
[16:05:14 EST(-0500)] <athena7> anyway, i think we're close, and hopefully i'll have something ready to commit once i find a good way to QA it
[16:06:02 EST(-0500)] <EricDalquist> cool
[16:06:28 EST(-0500)] <athena7> the ajax stuff is mostly done
[16:06:39 EST(-0500)] <athena7> except for the fact that i discovered the flyout menus don't work in IE
[16:06:51 EST(-0500)] <athena7> stupid broken browser
[16:06:51 EST(-0500)] <EricDalquist> :/
[16:07:04 EST(-0500)] <athena7> got bitten by that whole z-index/positioning bug
[16:07:05 EST(-0500)] <athena7> argh.
[16:07:19 EST(-0500)] <athena7> it's too bad, because i'd gotten it pared down to something sane!
[16:56:48 EST(-0500)] <athena7> internet explorer makes me feel bad about the world
[16:58:01 EST(-0500)] <EricDalquist> lol
[19:33:14 EST(-0500)] * athena7 (n=athena7@c-24-2-189-230.hsd1.ct.comcast.net) has joined ##uportal