uPortal IRC Logs-2008-05-23

[01:17:29 EDT(-0400)] <EiNZTEiN> bedtime... off @sL33p
[01:18:52 EDT(-0400)] <EiNZTEiN> should do it only on the current network
[08:49:52 EDT(-0400)] * anastasiac (n=team@142.150.154.105) has joined ##uportal
[08:53:46 EDT(-0400)] * michelled (n=team@142.150.154.197) has joined ##uportal
[09:44:36 EDT(-0400)] * EiNZTEiN (n=einztein@205.241.143.4) has joined ##uportal
[10:05:01 EDT(-0400)] * colinclark (n=colin@bas1-toronto09-1279543721.dsl.bell.ca) has joined ##uportal
[10:14:46 EDT(-0400)] * EricDalquist (n=dalquist@bohemia.doit.wisc.edu) has joined ##uportal
[10:16:35 EDT(-0400)] * athena7 (n=athena7@c-24-2-189-230.hsd1.ct.comcast.net) has joined ##uportal
[10:21:12 EDT(-0400)] * colinclark (n=colin@bas1-toronto09-1279543721.dsl.bell.ca) has joined ##uportal
[10:21:13 EDT(-0400)] * grimesp (n=grimesp@134.250.4.177) has joined ##uportal
[10:27:55 EDT(-0400)] * holdorph (n=holdorph@ip72-201-251-192.ph.ph.cox.net) has joined ##uportal
[10:31:15 EDT(-0400)] * esm (n=esm@207-53-193-3.dynamic-dsl.qis.net) has joined ##uportal
[12:15:05 EDT(-0400)] <EricDalquist> ok ... so we just ran into a bug that shouldn
[12:15:09 EDT(-0400)] <EricDalquist> shouldn't be possible
[12:15:26 EDT(-0400)] <EricDalquist> so we have Apache -> mod_jk -> Tomcat -> uPortal
[12:16:03 EDT(-0400)] <EricDalquist> user A makes a request to a porlet in EXCLUSIVE mode (uses a download worker)
[12:16:20 EDT(-0400)] <EricDalquist> Apache logs this with a return code 200 and 550 bytes returned
[12:16:52 EDT(-0400)] <EricDalquist> Tomcat logs this with a return code 200 and 1154 bytes returned
[12:17:17 EDT(-0400)] <EricDalquist> within 2 seconds (log timestamps) user B makes a request to /portal/Login
[12:17:27 EDT(-0400)] <EricDalquist> Apache logs with with a return code 200 and 1154 bytes returned
[12:17:52 EDT(-0400)] <EricDalquist> Tomcat logs this with a return code 302 and no bytes returned (expected for 300 class return codes since they don't have bodies)
[12:18:16 EDT(-0400)] <EricDalquist> User B ends up seeing the results of User A's request
[12:18:45 EDT(-0400)] <EricDalquist> we know that User A's request made it to the portlet and the portlet correctly rendered its contents
[12:19:16 EDT(-0400)] <EricDalquist> we know that User B's request made it to the Login servlet (we have a stats event that corresponds to the log entries)
[12:19:47 EDT(-0400)] <EricDalquist> so somewhere after uPortal writes the content in the download worker and after the login servlet sends the redirect the content of the two responses gets swapped!
[12:19:59 EDT(-0400)] <EricDalquist> and I am at a COMPLETE loss as to what could be going on
[12:23:24 EDT(-0400)] <EricDalquist> quiet group today (smile)
[12:27:26 EDT(-0400)] <athena7> wow, that doesn't sound fun
[12:27:43 EDT(-0400)] <EricDalquist> yeah ....
[12:28:10 EDT(-0400)] <EricDalquist> how do you debug a rare race condition between 4 complex pieces of software ....
[12:28:22 EDT(-0400)] <athena7> dunno, eek
[12:28:31 EDT(-0400)] <athena7> is it specifically on login? or are you seeing this all over the place?
[12:28:48 EDT(-0400)] <EricDalquist> we have only ever had this reported twice
[12:29:13 EDT(-0400)] <EricDalquist> I'm putting together a script to search our apache logs for more instaces of the Login servlet getting hit and seeing a 200 response code
[12:29:38 EDT(-0400)] <EricDalquist> but we haven't heard of anything else even similar to this from any other location
[12:30:00 EDT(-0400)] <athena7> yeah, i um, haven't seen that one
[12:30:16 EDT(-0400)] <athena7> (on a complete tangent, lol: http://www.decorumcomics.com/comic.php?id=152)
[12:31:31 EDT(-0400)] <EricDalquist> lol
[12:31:39 EDT(-0400)] <athena7> this comic is really pretty funny
[12:31:59 EDT(-0400)] <athena7> it shares my love of terrible puns and geekiness (smile)
[12:32:20 EDT(-0400)] <EricDalquist> always good
[12:44:38 EDT(-0400)] * michelled (n=team@142.150.154.197) has left ##uportal
[13:52:20 EDT(-0400)] * deuce (n=deuce@uni1.unicon.net) has joined ##uportal
[14:05:10 EDT(-0400)] <deuce> eric?
[14:05:17 EDT(-0400)] <EricDalquist> hey deuce
[14:05:51 EDT(-0400)] <deuce> hey do you know if it's possible to create portlet overlays that incorporate property settings?
[14:06:26 EDT(-0400)] <EricDalquist> sure, you can add replace or exclude any file in the WAR
[14:07:35 EDT(-0400)] <deuce> is this part of the pluto assembler?
[14:07:43 EDT(-0400)] <EricDalquist> the war overlay?
[14:07:50 EDT(-0400)] <EricDalquist> no that is just part of the maven-war-plugin
[14:08:03 EDT(-0400)] <EricDalquist> http://maven.apache.org/plugins/maven-war-plugin/examples/war-overlay.html
[14:12:41 EDT(-0400)] <deuce> hmm.. the tokens that need replacement exist after the war plugin has been applied
[14:13:11 EDT(-0400)] <EricDalquist> so what exactly are you trying to do?
[14:13:48 EDT(-0400)] <deuce> released portlet war (that contains tokens) -> maven-pluto-plugin -> ear
[14:14:17 EDT(-0400)] <EricDalquist> still not sure
[14:14:21 EDT(-0400)] <deuce> and in the step where it re-assembles the pluto war I was hoping to apply the tokens
[14:14:47 EDT(-0400)] <EricDalquist> so you have some WAR that has some tokens you want to replace?
[14:14:51 EDT(-0400)] <deuce> yep
[14:14:55 EDT(-0400)] <EricDalquist> and you're thinking of using the overlay feature to do that replacement
[14:15:04 EDT(-0400)] <EricDalquist> has the war already been pluto-assembled
[14:15:06 EDT(-0400)] * jessm (n=Jess@cpe-069-134-127-060.nc.res.rr.com) has joined ##uportal
[14:15:13 EDT(-0400)] <EricDalquist> or does your overlay need to do that too?
[14:15:18 EDT(-0400)] <deuce> yeah it's pre-pluto-assembled
[14:15:34 EDT(-0400)] <EricDalquist> so you don't need to redo that
[14:15:42 EDT(-0400)] <EricDalquist> so what file are these tokens in?
[14:15:53 EDT(-0400)] <EricDalquist> the overlay stuff doesn't do filtering (I don't think)
[14:16:02 EDT(-0400)] <EricDalquist> just outright file addition/replacement/removal
[14:16:11 EDT(-0400)] <deuce> custom configuration files for the portlet
[14:16:38 EDT(-0400)] <EricDalquist> so your overlay would just depend on the assembled WAR artifact and include your custom config files ...
[14:17:16 EDT(-0400)] <EricDalquist> when it is packaged it would replace the config files from the WAR with those from your overlay project ...
[14:17:21 EDT(-0400)] <EricDalquist> or am I still missing something?
[14:17:29 EDT(-0400)] <deuce> hmm.. i would like to avoid having to manage the whole config files. having a simple properties file is much more desirable
[14:17:58 EDT(-0400)] <EricDalquist> I don't think that is possible
[14:18:03 EDT(-0400)] <deuce> i don't know.. maybe i'm not doing a good job describing the problem
[14:18:04 EDT(-0400)] <deuce> (smile)
[14:18:08 EDT(-0400)] <EricDalquist> all of the overlays we do in up3 are whole-file overlays
[14:18:29 EDT(-0400)] <EricDalquist> you can try filtering existing files
[14:19:07 EDT(-0400)] <EricDalquist> take a look at the filtering done for the CAS overlay in up3 for the general format of filtering for WARs, it is a bit weird as you define your filter file in one area and fitler pattern in another
[14:19:22 EDT(-0400)] <EricDalquist> it may filter the files from the pre-packaged WAR too
[14:19:43 EDT(-0400)] <deuce> ah cas.. yes
[14:20:45 EDT(-0400)] <deuce> oh well it's not a portlet, so it can use the war plugin
[14:21:32 EDT(-0400)] <EricDalquist> portlets use the WAR plugin ...
[14:21:40 EDT(-0400)] <EricDalquist> the pluto plugin does not do war packaging
[14:21:57 EDT(-0400)] <EricDalquist> it works on WAR artifact types to re-write the web.xml during packaging
[14:22:06 EDT(-0400)] <EricDalquist> the WAR plugin still does all of the work
[14:22:55 EDT(-0400)] <EricDalquist> you can use the WAR plugin on a portlet if it has been pluto assembled or not
[14:23:56 EDT(-0400)] <deuce> i'm confused. i thought the war plugin is for building a war. I'm starting out with a war
[14:24:16 EDT(-0400)] <EricDalquist> so WAR is an artifact type for Maven
[14:24:25 EDT(-0400)] <deuce> yes
[14:24:34 EDT(-0400)] <EricDalquist> when you have a pom.xml that specifies the WAR artifact type the maven-war-plugin is used for the package phase
[14:25:01 EDT(-0400)] <EricDalquist> if your WAR pom.xml specifies a dependency on another WAR artifact an 'overlay' is constructed
[14:25:14 EDT(-0400)] <deuce> oh. I'm sorry. I'm wearing my idiot hat today (smile)
[14:25:20 EDT(-0400)] <EricDalquist> where the WAR dependency is extracted, then copied into target
[14:25:31 EDT(-0400)] <EricDalquist> then the files in your WAR project are copied on top
[14:25:52 EDT(-0400)] <EricDalquist> the pluto plugin for maven simply hooks into the package phase of the maven-war-plugin and re-writes the web.xml
[14:25:54 EDT(-0400)] <deuce> it's in that step i can do my filtering
[14:26:04 EDT(-0400)] <EricDalquist> yes, you can try
[14:26:16 EDT(-0400)] <EricDalquist> I know the war plugin will filter resources in the local project when packaging them
[14:26:32 EDT(-0400)] <EricDalquist> what I do not know is if it will filter resources from a WAR dependency while packaging
[14:26:47 EDT(-0400)] <deuce> i guess I will find out
[14:26:49 EDT(-0400)] <EricDalquist> (smile)
[14:26:51 EDT(-0400)] <deuce> thx for the info
[14:27:04 EDT(-0400)] <EricDalquist> and the CAS overlay is a very good example of doing both an overlay and filtering
[14:27:25 EDT(-0400)] <EricDalquist> which I recommend looking at since figuring out war filtering is a bit of a pita
[14:27:42 EDT(-0400)] * colinclark (n=colin@bas1-toronto09-1279543721.dsl.bell.ca) has joined ##uportal
[14:39:44 EDT(-0400)] * apetro-_ (n=apetro@wsip-98-174-242-39.ph.ph.cox.net) has joined ##uportal
[14:47:48 EDT(-0400)] * EiNZTEiN (n=einztein@205.241.143.4) has joined ##uportal
[14:49:18 EDT(-0400)] <athena7> anyone know if it's possible to add hidden channels through the uportal ui?
[14:49:30 EDT(-0400)] <athena7> like how the login and footer channels are in the layout, but hidden
[14:49:37 EDT(-0400)] <EricDalquist> I don't think so
[14:49:51 EDT(-0400)] <athena7> any advice on how one might do it in the db?
[14:53:48 EDT(-0400)] <EricDalquist> not off the top of my head
[14:53:52 EDT(-0400)] <athena7> ok
[14:53:53 EDT(-0400)] <athena7> i'll try (smile)
[14:54:03 EDT(-0400)] <EricDalquist> right now I'm trying to figure out how to reproduce that weird issue we saw in a load test (tongue)
[14:54:32 EDT(-0400)] <apetro-_> random idea, athena7 , how about injecting channels by fname in the structure transform?
[14:55:11 EDT(-0400)] <athena7> trying to get around the guest fname instantiation stuff
[14:55:19 EDT(-0400)] <athena7> so i'm not sure that'd work
[14:56:14 EDT(-0400)] <athena7> i suspect finding the right entry and setting it to hidden=Y might though?
[14:58:12 EDT(-0400)] <athena7> or not.
[15:03:47 EDT(-0400)] * jessm (n=Jess@cpe-069-134-127-060.nc.res.rr.com) has joined ##uportal
[15:03:58 EDT(-0400)] * EiNZTEiN (n=einztein@205.241.143.4) has joined ##uportal
[15:05:40 EDT(-0400)] * jessm (n=Jess@cpe-069-134-127-060.nc.res.rr.com) has joined ##uportal
[15:27:39 EDT(-0400)] * michelled (n=team@142.150.154.197) has joined ##uportal
[17:02:43 EDT(-0400)] * michelled (n=team@142.150.154.197) has left ##uportal
[17:11:42 EDT(-0400)] * Lobotomie (n=Lobo@4be54-3-82-226-105-219.fbx.proxad.net) has joined ##uportal
[17:11:48 EDT(-0400)] <Lobotomie> hi
[17:20:19 EDT(-0400)] * EiNZTEiN (n=einztein@205.241.143.4) has joined ##uportal
[19:28:03 EDT(-0400)] * grimesp (n=grimesp@134.250.4.177) has left ##uportal
[20:43:57 EDT(-0400)] * EiNZTEiN (n=einztein@dsl-162.isunet.net) has joined ##uportal
[21:11:44 EDT(-0400)] * esm (n=esm@207-53-193-3.dynamic-dsl.qis.net) has joined ##uportal
[23:38:36 EDT(-0400)] * MarkRogers (n=MarkRoge@wnpgmb0804w-ad03-82-73.dynamic.mts.net) has joined ##uportal