[08:35:29 EDT(-0400)] * athena7 (n=athena7@c-24-2-189-230.hsd1.mn.comcast.net) has joined ##uportal
[09:00:13 EDT(-0400)] * EricDalquist (n=dalquist@bohemia.doit.wisc.edu) has joined ##uportal
[09:00:25 EDT(-0400)] <athena7> good morning
[09:01:15 EDT(-0400)] <EricDalquist> hello
[09:10:30 EDT(-0400)] <athena7> do you have any thoughts on the cannouncements changes?
[09:10:53 EDT(-0400)] <EricDalquist> no, I never got to reading that whole email
[09:11:07 EDT(-0400)] <athena7> ok
[09:11:13 EDT(-0400)] <athena7> it's not urgent
[09:11:31 EDT(-0400)] <athena7> i just wanted to make sure that i wasn't going to break anything in pre-up3 versions
[09:11:39 EDT(-0400)] <athena7> how long have we had commons logging in uportal?
[09:12:19 EDT(-0400)] <EricDalquist> long time
[09:12:28 EDT(-0400)] <EricDalquist> at least 2.4
[09:12:34 EDT(-0400)] <athena7> ok
[09:12:40 EDT(-0400)] <athena7> i think everything should be fine then
[09:12:50 EDT(-0400)] <athena7> basically i changed the logging to use commons logging instead of LogService
[09:12:58 EDT(-0400)] <athena7> and switch to the getResourceFromStream method
[09:13:07 EDT(-0400)] <EricDalquist> sounds good
[09:13:10 EDT(-0400)] <athena7> so it sounds like there's no reason to have to create a whole new branch
[09:13:15 EDT(-0400)] <athena7> which makes things easier
[09:13:18 EDT(-0400)] <EricDalquist> I can't wait until all of these channels get portlet counterparts
[09:13:26 EDT(-0400)] <athena7>
[09:14:03 EDT(-0400)] <athena7> i'm still not sure i'm convinced that announcements is that radically different than the notifications portlet
[09:14:26 EDT(-0400)] <athena7> andrew said they had different feature sets, but i kind of wonder if whatever's missing from notifications could just be added
[09:15:02 EDT(-0400)] <EricDalquist> yeah
[09:15:12 EDT(-0400)] <EricDalquist> one of these many things that gets re-implemented everywhere
[09:15:37 EDT(-0400)] <EricDalquist> and we really need to pull all the disparate instances together and make the uber-announcements-notifications portlet
[09:16:48 EDT(-0400)] <athena7> yes
[09:17:04 EDT(-0400)] <athena7> actually i think we'd benefit from having that conversation about our portlet collection in general
[09:17:13 EDT(-0400)] <athena7> email and rss is suffering from the same problem
[09:17:33 EDT(-0400)] <EricDalquist> yup
[09:17:43 EDT(-0400)] <athena7> i'd kind of like to re-architect the duke tabbed mail portlet and then integrate in any missing features from the toro email preview portlet project
[09:17:47 EDT(-0400)] <EricDalquist> hopefully the mentoring/incubation work will move in that direction
[09:18:04 EDT(-0400)] <EricDalquist> as we've talked about before getting more of jasig into collaborative portlet development would be great
[09:18:08 EDT(-0400)] <athena7> yeah
[09:18:16 EDT(-0400)] <EricDalquist> especially with the framework maturing more and becoming more pluggable
[09:18:17 EDT(-0400)] <athena7> more configration, less duplication
[09:18:20 EDT(-0400)] <athena7> yeah
[09:18:39 EDT(-0400)] <athena7> i like the model of the tabbed portlets, just because it makes it a little easier to have different configrations
[09:19:12 EDT(-0400)] <athena7> i think anthony colebourne recycled the calendar portlet code to make a rss portlet where you can similarly configure multiple feeds
[09:19:25 EDT(-0400)] <EricDalquist> nice
[09:19:51 EDT(-0400)] <athena7> it would be really easy to take something like that and add a configuration hook that let you decide whether they should be displayed sorted by date in one list like he did, or in a tabbed UI like the duke portlet
[09:19:54 EDT(-0400)] <EricDalquist> maybe jasig can get a grant from Sun or something to help kickstart this incubation work
[09:20:02 EDT(-0400)] <athena7> that'd be very cool
[09:20:19 EDT(-0400)] <athena7> i'd love to see more portlets that don't depend on a particular portal framework
[09:20:22 EDT(-0400)] <EricDalquist> yup
[09:20:33 EDT(-0400)] <athena7> oh, i got the facebook portlet working
[09:20:35 EDT(-0400)] <EricDalquist> which sadly there aren't many right now
[09:20:41 EDT(-0400)] <EricDalquist> through the servlet trick?
[09:20:45 EDT(-0400)] <athena7> i gave up and put the action url in the session
[09:20:51 EDT(-0400)] <EricDalquist>
[09:20:52 EDT(-0400)] <athena7> it seems that double escaping the url just wasn't working very well
[09:20:53 EDT(-0400)] <athena7> yeah
[09:21:12 EDT(-0400)] <EricDalquist> so one thing to be careful of is making sure your servlet can't be used to redirect to anywhere
[09:21:33 EDT(-0400)] <EricDalquist> and just will do redirect for that one url and fail for users w/o sessions
[09:21:49 EDT(-0400)] <athena7> yeah that sounds like a good check
[09:22:17 EDT(-0400)] <athena7> hmm
[09:22:55 EDT(-0400)] <athena7> got any recommendations? match on the first part of the url or something?
[09:23:19 EDT(-0400)] <EricDalquist> well, you may be ok already
[09:23:31 EDT(-0400)] <EricDalquist> the servlet is getting the ActionURL String from the session right?
[09:23:46 EDT(-0400)] <EricDalquist> and just replacing part of it with some string that comes as a request parameter?
[09:24:02 EDT(-0400)] <athena7> yes
[09:24:23 EDT(-0400)] <EricDalquist> then you should be ok because there shouldn't be a way for someone to inject their own url String
[09:24:26 EDT(-0400)] <athena7> yeah
[09:24:30 EDT(-0400)] <EricDalquist> since it is coming from the session object
[09:24:46 EDT(-0400)] <athena7> could mess with the request parameter i guess, but you'd be able to do that anyway
[09:24:58 EDT(-0400)] <EricDalquist> yeah
[09:25:09 EDT(-0400)] <EricDalquist> and as long as you URLEncode the parameter value before doing the replace
[09:25:12 EDT(-0400)] <EricDalquist> you'll be ok there
[09:26:10 EDT(-0400)] <athena7> yeah
[09:26:16 EDT(-0400)] <athena7> i'm not sure why the url encoding wasn't working
[09:26:44 EDT(-0400)] <EricDalquist> url encoding a full url is a pita
[09:26:48 EDT(-0400)] <athena7> yeah
[09:26:53 EDT(-0400)] <EricDalquist> portlet parameters in 2.4 were done that way
[09:26:56 EDT(-0400)] <athena7> especially if you do it more than once
[09:27:05 EDT(-0400)] <EricDalquist> and it was very painful
[09:27:17 EDT(-0400)] <athena7> i bet
[09:29:27 EDT(-0400)] <athena7> i'd love to try some of the jasig portlets on another portal sometime
[09:29:36 EDT(-0400)] <athena7> although i don't exactly have other portals lying around
[09:37:57 EDT(-0400)] <athena7> ah!! laptop in state!
[09:38:31 EDT(-0400)] <EricDalquist> ?
[09:38:42 EDT(-0400)] <athena7> been waiting for the new laptop to arrive
[09:38:49 EDT(-0400)] * anastasia (n=team@142.150.154.105) has joined ##uportal
[09:38:57 EDT(-0400)] <athena7> i looked at the tracking last night and thought i probably wouldn't get it till tomorrow
[09:39:03 EDT(-0400)] <athena7> but it's on it's way to my apartment!
[09:39:19 EDT(-0400)] <EricDalquist> yay
[09:39:22 EDT(-0400)] <athena7> now i wish i'd prepared a drive clone last night!
[09:39:30 EDT(-0400)] <athena7> i wonder how long that will take
[09:58:24 EDT(-0400)] <Tuomaz> Now I'm testing UBC Webmail in uPortal 3. Got it to run after some patching of CAS related code. The preferences don't work, though: om-primula-export.primula_befattning_key=/data/kk/current/omuser/.ssh/
[09:58:30 EDT(-0400)] <Tuomaz> oops
[09:58:33 EDT(-0400)] <Tuomaz> "java.sql.SQLException: No datasource available"
[09:59:01 EDT(-0400)] <EricDalquist> Any idea how it is trying to get access to the DataSource?
[09:59:09 EDT(-0400)] <Tuomaz> No
[09:59:18 EDT(-0400)] <EricDalquist> can you pastebin the full stack trace?
[09:59:19 EDT(-0400)] <Tuomaz> Is it rewritten in 3?
[09:59:33 EDT(-0400)] <EricDalquist> well it isn't in JNDI anymore
[09:59:43 EDT(-0400)] <EricDalquist> but that shouldn't break the portlet
[09:59:45 EDT(-0400)] <EricDalquist> er channel
[10:00:38 EDT(-0400)] <Tuomaz> http://uportal.pastebin.com/m6b14b334
[10:01:22 EDT(-0400)] <EricDalquist> can you look in ca.ubc.itservices.channels.webmail.UserPreferencesDB.getConnection and see how it is trying to get the connection?
[10:01:28 EDT(-0400)] <Tuomaz> yes
[10:03:45 EDT(-0400)] <Tuomaz> it does ds.getConnection() (ds is of type javax.sql.DataSource)
[10:04:45 EDT(-0400)] <EricDalquist> where does it get the ds from?
[10:05:11 EDT(-0400)] <Tuomaz> ds = (DataSource) ctx.lookup(datasourceName);
[10:05:15 EDT(-0400)] <Tuomaz> in the constructor
[10:05:19 EDT(-0400)] <EricDalquist> yeah ... it is using JNDI
[10:05:22 EDT(-0400)] <EricDalquist> which it shouldn't be
[10:05:22 EDT(-0400)] <Tuomaz> Context ctx = new InitialContext();
[10:06:17 EDT(-0400)] <EricDalquist> so the easy (but deprecated) way to fix it is replace that ds = line with
[10:06:18 EDT(-0400)] <Tuomaz> Can you say approx. how much it is to change?
[10:06:24 EDT(-0400)] <EricDalquist> RDBMServices.getDataSource()
[10:06:24 EDT(-0400)] <Tuomaz> ok
[10:06:36 EDT(-0400)] <EricDalquist> and just remove all the Context related stuff
[10:07:51 EDT(-0400)] <EricDalquist> the 'correct' way would be to get a reference to the portal's ApplicationContext and lookup the DataSource bean
[10:08:16 EDT(-0400)] <EricDalquist> to do that you would do:
[10:08:33 EDT(-0400)] <EricDalquist> final ApplicationContext applicationContext = PortalApplicationContextLocator.getApplicationContext();
[10:08:33 EDT(-0400)] <EricDalquist> final DataSource dataSource = (DataSource)applicationContext.getBean("PortalDb", DataSource.class);
[10:08:43 EDT(-0400)] <EricDalquist> so I guess that isn't much harder
[10:09:19 EDT(-0400)] <Tuomaz> ok, your first example works
[10:09:50 EDT(-0400)] <Tuomaz> thanks
[10:10:03 EDT(-0400)] <EricDalquist> you probably want to use the second example actually
[10:10:07 EDT(-0400)] <EricDalquist> since that method is not deprecated
[10:10:13 EDT(-0400)] <Tuomaz> I understand, will try that on too
[10:10:17 EDT(-0400)] <Tuomaz> one
[10:10:21 EDT(-0400)] <EricDalquist> ok
[10:10:36 EDT(-0400)] <EricDalquist> just don't want you to be stuck fixing it again when RDBMServices goes away some day in the future
[10:10:43 EDT(-0400)] <Tuomaz> no
[10:11:17 EDT(-0400)] <Tuomaz> our UBC is based on 3.1
[10:11:38 EDT(-0400)] <Tuomaz> this can be changed in current release already...
[10:11:53 EDT(-0400)] <Tuomaz> didn't think of that
[10:15:20 EDT(-0400)] <Tuomaz> its not fixed
[10:25:32 EDT(-0400)] <Tuomaz> is PortalApplicationContextLocator a uPortal class?
[10:26:47 EDT(-0400)] <EricDalquist> yup
[10:27:08 EDT(-0400)] <Tuomaz> found it
[10:27:15 EDT(-0400)] <EricDalquist> it provides access to the portals Spring ApplicationContext both when running as a webapp and running command line tools
[10:27:28 EDT(-0400)] <EricDalquist> do you use an IDE for editing code?
[10:29:59 EDT(-0400)] <Tuomaz> When I code Java I use Eclipse, but now when I'm just fixing things with vim
[10:30:08 EDT(-0400)] <Tuomaz>
[10:30:20 EDT(-0400)] <Tuomaz> would be easier to open up Eclipse i guess
[10:30:54 EDT(-0400)] <EricDalquist> just curious when you were talking about finding the class
[10:33:57 EDT(-0400)] <athena7> argh
[10:34:06 EDT(-0400)] <athena7> something is screwed up with this such that I can't do an svn commit
[10:34:11 EDT(-0400)] <athena7> i'm getting a checksum mismatch
[10:34:33 EDT(-0400)] <Tuomaz> EricDalquist: it works (you second method)
[10:34:36 EDT(-0400)] <EricDalquist> try "svn cleanup' in your local code
[10:34:41 EDT(-0400)] <EricDalquist> Tuomaz: great
[10:35:29 EDT(-0400)] <athena7> didn't help :/
[10:35:36 EDT(-0400)] <athena7> i've never seen this one before
[10:41:22 EDT(-0400)] <Tuomaz> What's best: a note in the wiki or a jira report if I want to share my changes to fix UBC Webmail i uP3?
[10:43:06 EDT(-0400)] <EricDalquist> perhaps a 'recipe' page in the wiki
[10:43:22 EDT(-0400)] <EricDalquist> like "howto make ubc webmail work in up3"
[10:43:33 EDT(-0400)] <EricDalquist> then that can possibly make it into a future release
[10:44:53 EDT(-0400)] <Tuomaz> I can't figure out how to make a new page in the wiki!
[10:45:01 EDT(-0400)] <Tuomaz> I have logged in
[10:52:17 EDT(-0400)] <EricDalquist> where do you want to create it under?
[10:54:00 EDT(-0400)] <EricDalquist> actually a child of http://ja-sig.org/wiki/display/CHN/UBC+Webmail would probably be good
[10:54:27 EDT(-0400)] * MarkRogers (n=MarkRoge@addhcp129.cc.umanitoba.ca) has joined ##uportal
[10:54:34 EDT(-0400)] <EricDalquist> when you're logged in you should see a "Add Page" link
[11:01:16 EDT(-0400)] <Tuomaz> I cant see it
[11:01:19 EDT(-0400)] <Tuomaz> ??
[11:02:50 EDT(-0400)] <MarkRogers> Should be on the right hand side, near the top, beside "Browse Space" ?
[11:03:17 EDT(-0400)] <EricDalquist> you may not have permissions
[11:03:28 EDT(-0400)] <EricDalquist> there are some issues right now as we're mid-migration of services
[11:03:37 EDT(-0400)] <EricDalquist> give me just a minute ....
[11:04:33 EDT(-0400)] <EricDalquist> ok
[11:04:35 EDT(-0400)] <EricDalquist> refresh the page
[11:05:54 EDT(-0400)] <Tuomaz> ahh
[11:06:08 EDT(-0400)] <Tuomaz> now I have it
[11:12:21 EDT(-0400)] <MarkRogers> was it rights, Eric?
[11:12:48 EDT(-0400)] <MarkRogers> permissions, that is.
[11:13:04 EDT(-0400)] <EricDalquist> MarkRogers: yeah, the problem is I've done a few test migrations of Jira
[11:13:32 EDT(-0400)] <EricDalquist> since we're using Crowd for SSO and identity/group management now anyone that had a jira id but no wiki id can now log into the wiki
[11:13:36 EDT(-0400)] <EricDalquist> but isn't in the confluence-users grou
[11:13:53 EDT(-0400)] <EricDalquist> the temporary fix is adding the jira-users group as a sibling of confluence-users
[11:14:10 EDT(-0400)] <EricDalquist> but any space that has had its permissions modified has to have this added as well as the global permissions no longer apply there
[11:14:34 EDT(-0400)] <EricDalquist> hopefully life will slow down enough some time in the near future to really do the migration and merge the group information
[11:15:47 EDT(-0400)] <MarkRogers> we use Bugzilla, but I suppose JIRA gives you something beyond what Bugzilla offers
[11:16:35 EDT(-0400)] <EricDalquist> from using both extensively Jira as a much nicer interface and better project/issue management features
[11:17:49 EDT(-0400)] <MarkRogers> understood. we are looking at wikis and are seeing the same thing with Confluence (being so much nicer than most of the others)
[11:18:00 EDT(-0400)] <EricDalquist> yeah
[11:18:06 EDT(-0400)] <MarkRogers> but it'll cost you
[11:18:10 EDT(-0400)] <EricDalquist> and the price point of both makes it easier
[11:18:16 EDT(-0400)] <EricDalquist> we use both jira and confluence internally at UW
[11:18:50 EDT(-0400)] <MarkRogers> thx
[11:33:09 EDT(-0400)] <EricDalquist> anyone here know if Spring can set static properties on a bean?
[11:33:52 EDT(-0400)] <athena7> oh hm, i don't know . . .
[11:34:00 EDT(-0400)] <athena7> not sure that i've ever tried
[11:34:22 EDT(-0400)] <EricDalquist> well I'll let you know when I try running this then
[11:35:12 EDT(-0400)] <athena7> please do! i'm all curious now
[11:35:48 EDT(-0400)] <EricDalquist> just did a search ... looks like it doesn't
[11:35:49 EDT(-0400)] <EricDalquist> oh well
[11:36:14 EDT(-0400)] <athena7> aw
[11:36:20 EDT(-0400)] * athena7 makes a sad face
[11:36:30 EDT(-0400)] <athena7> i guess it's not surprising though
[11:36:41 EDT(-0400)] <EricDalquist> I'm sure you could fake it through a methodinvokingbean
[11:37:13 EDT(-0400)] <athena7> yeah
[11:55:36 EDT(-0400)] <athena7> trying to add a page to the calendar portlet for time zone preferences
[11:58:12 EDT(-0400)] * holdorph (n=holdorph@wsip-98-174-242-39.ph.ph.cox.net) has joined ##uportal
[12:12:04 EDT(-0400)] * EiNZTEiN (n=einztein@205.241.143.4) has joined ##uportal
[12:17:34 EDT(-0400)] <athena7> i'm off to buy a new hard drive!!
[12:17:38 EDT(-0400)] <athena7> see you all shortly
[12:26:19 EDT(-0400)] <holdorph> heh, i just did that last night, of course I just ordered mine
General
Content
Integrations