Versions Compared

Key

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

[07:16:35 EDT(-0400)] * jessm (~Jess@c-71-232-3-151.hsd1.ma.comcast.net) has joined ##uportal
[08:37:00 EDT(-0400)] * lfuller (~sparhk@ip68-98-56-21.ph.ph.cox.net) has joined ##uportal
[09:45:17 EDT(-0400)] * colinclark (~colin@bas2-toronto09-2925337536.dsl.bell.ca) has joined ##uportal
[09:53:19 EDT(-0400)] * EricDalquist (~dalquist@2607:f388:e:0:221:9bff:fe37:e768) has joined ##uportal
[09:53:54 EDT(-0400)] * michelled (~michelled@142.150.154.141) has joined ##uportal
[09:58:32 EDT(-0400)] * michelled_ (~michelled@142.150.154.101) has joined ##uportal
[10:50:37 EDT(-0400)] * michelled (~michelled@142.150.154.141) has joined ##uportal
[10:53:44 EDT(-0400)] * athena (~athena@c-76-121-97-221.hsd1.wa.comcast.net) has joined ##uportal
[10:55:10 EDT(-0400)] <athena> morning EricDalquist
[10:55:16 EDT(-0400)] <EricDalquist> good morning athena
[10:55:22 EDT(-0400)] <athena> would you expect the ajax portlet stuff to work in config mode?
[10:55:32 EDT(-0400)] <EricDalquist> nope
[10:55:36 EDT(-0400)] <athena> ah ok (smile)
[10:55:41 EDT(-0400)] <athena> i suspected that might be the case
[10:55:50 EDT(-0400)] <EricDalquist> I spent a few days digging into it
[10:55:50 EDT(-0400)] <athena> something to think about
[10:55:53 EDT(-0400)] <athena> and sad (smile)
[10:55:56 EDT(-0400)] <athena> gotcha
[10:55:57 EDT(-0400)] <EricDalquist> there isn't a way to implement it in 168
[10:56:03 EDT(-0400)] <athena> well, we can at least document that for now
[10:56:09 EDT(-0400)] <athena> 286 work?
[10:56:58 EDT(-0400)] <EricDalquist> yeah
[10:57:00 EDT(-0400)] <EricDalquist> using resource urls
[10:57:04 EDT(-0400)] <EricDalquist> it should work in 286
[10:57:12 EDT(-0400)] <EricDalquist> the problem isn't config mode itself
[10:57:19 EDT(-0400)] <EricDalquist> it is config mode nested in a webflow portlet
[10:57:58 EDT(-0400)] <athena> yeah, i suspected that might be the case
[10:58:00 EDT(-0400)] <EricDalquist> since webflow doesn't like it if you do an action that results in a redirect and continue with the flow
[10:58:05 EDT(-0400)] <athena> yeah
[10:58:11 EDT(-0400)] <athena> and then you get all the can't set a parameter errors
[10:58:13 EDT(-0400)] <athena> oh well (smile)
[10:58:24 EDT(-0400)] <athena> i've decided my use case can just use regular ajax
[10:58:24 EDT(-0400)] <EricDalquist> yup
[10:58:55 EDT(-0400)] <athena> so it's so wet here today that the raw sugar at the coffeeshop solidified into a rock (tongue)
[10:59:41 EDT(-0400)] * holdorph (~holdorph@wsip-72-215-204-133.ph.ph.cox.net) has joined ##uportal
[11:24:59 EDT(-0400)] <EricDalquist> lol
[11:25:05 EDT(-0400)] <EricDalquist> welcome to the PNW
[11:25:27 EDT(-0400)] <athena> yep (tongue)
[11:25:31 EDT(-0400)] <athena> just kind of funny
[11:25:48 EDT(-0400)] <athena> i mean it's rained every day, but "rain" here often just means sprinkles
[11:26:24 EDT(-0400)] <athena> YAY i finally got this working how i want
[11:26:35 EDT(-0400)] <athena> so i've set up the CMS portlet to do an AJAX call when you finish editing
[11:26:48 EDT(-0400)] <athena> so that you can get a more realistic preview of what your content will actually look like
[11:26:49 EDT(-0400)] <EricDalquist> nice
[11:27:04 EDT(-0400)] <EricDalquist> another thing we used to have here that folks want back is PREVIEW
[11:27:05 EDT(-0400)] <athena> so that way if you add an iframe and your security rules don't allow them you'll know right away (smile)
[11:27:23 EDT(-0400)] <EricDalquist> like CONFIG it would only be used during publishing
[11:27:31 EDT(-0400)] <EricDalquist> but lets a portlet render a preview of what it will look like
[11:27:35 EDT(-0400)] <athena> yeah so right now you go to config mode and click on the rich text stuff
[11:27:40 EDT(-0400)] <athena> and you see a preview of the content in a box
[11:27:47 EDT(-0400)] <EricDalquist> oi ... just had fun tracking down an issue that turned out to be regex
[11:27:50 EDT(-0400)] <athena> to edit it, you just click on it and that transitions to the CK editor
[11:27:57 EDT(-0400)] <EricDalquist> ncie
[11:28:14 EDT(-0400)] <athena> when you're done, you click preview and it shows the preview window again - now with the content appropriately stripped down according to the security rules
[11:28:20 EDT(-0400)] <athena> and then when you're happy w/ it you just hit save
[11:28:25 EDT(-0400)] <athena> what was the issue?
[11:28:35 EDT(-0400)] <athena> the only thing that doesn't work right now is adding javascript to the content
[11:29:28 EDT(-0400)] <EricDalquist> so the JS builds a list that looks like: u12l1n11=true,u12l1n9=false,u12l1n10=true,u12l1n8=true
[11:29:39 EDT(-0400)] <EricDalquist> it uses a regex to make sure it doesn't add nodes more than once
[11:29:47 EDT(-0400)] <EricDalquist> but the regex was just "nodeId"
[11:30:00 EDT(-0400)] <EricDalquist> so we ran into a case where one portlet on a tab couldn't be hidden
[11:30:07 EDT(-0400)] <EricDalquist> turns out it was u12l1n1
[11:30:15 EDT(-0400)] <EricDalquist> which matched u12l1n10
[11:30:59 EDT(-0400)] <athena> oh (smile)
[11:34:05 EDT(-0400)] * jessm (~Jess@c-71-232-3-151.hsd1.ma.comcast.net) has joined ##uportal
[11:44:40 EDT(-0400)] * awills (~awills@ip68-3-25-57.ph.ph.cox.net) has joined ##uportal
[11:45:07 EDT(-0400)] <athena> i should really probably record a demo of this portlet
[11:45:16 EDT(-0400)] <EricDalquist> (smile)
[11:45:52 EDT(-0400)] <awills> having trouble on 3.2.x due to o.j.p.ChannelDefinition -> o.j.p.channel.IChannelDefinition
[11:46:04 EDT(-0400)] <awills> http://uportal.pastebin.com/fhSEmQAY
[11:46:46 EDT(-0400)] <EricDalquist> are you using the data that ships with 3.2?
[11:46:47 EDT(-0400)] <awills> the set of entity types (DB) still lists the old location, but the bottom line in that stack passes the new loc to GaP
[11:46:50 EDT(-0400)] <awills> yep
[11:47:15 EDT(-0400)] <EricDalquist> hrm, I thought we had fixed it in the entities
[11:47:17 EDT(-0400)] <athena> me too
[11:47:21 EDT(-0400)] <EricDalquist> because if we hadn't 3.2 shouldn't work at all
[11:47:30 EDT(-0400)] <athena> it's listed correctly in my db
[11:48:11 EDT(-0400)] <athena> hm.
[11:48:15 EDT(-0400)] <awills> https://www.ja-sig.org/svn/uPortal/branches/rel-3-2-patches/uportal-impl/src/main/resources/properties/db/entities/entity-type/org.jasig.portal.ChannelDefinition.entity-type
[11:48:22 EDT(-0400)] <athena> it does seem to be wrong in svn though
[11:48:22 EDT(-0400)] <athena> yeah
[11:48:30 EDT(-0400)] <athena> how is my database creating it correctly, i wonder?
[11:50:27 EDT(-0400)] <athena> i am really quite confused now
[11:50:31 EDT(-0400)] <awills> did it go out as o.j.p.ChannelDef in 3.2.0?
[11:50:52 EDT(-0400)] <awills> if so, it feels like we shouldn't change it w/in 3.2.x
[11:51:12 EDT(-0400)] <athena> so awills the really weird thing is that it's right in my database
[11:51:42 EDT(-0400)] <EricDalquist> awills: yes o.j.p.ChannelDef did not exist in 3.2.0
[11:51:45 EDT(-0400)] <athena> which has recently been initportal'd from the tip of the 3.2 branch
[11:51:51 EDT(-0400)] <EricDalquist> it was switched before that release
[11:52:33 EDT(-0400)] <athena> but it looks like the entity type file wasn't switched
[11:52:46 EDT(-0400)] <awills> hmmm
[11:53:25 EDT(-0400)] <athena> what's throwing that error?
[11:56:03 EDT(-0400)] <athena> ok, cms screenshots
[11:56:04 EDT(-0400)] <athena> http://qwertied.com/stuff/cms-preview.png
[11:56:09 EDT(-0400)] <athena> http://qwertied.com/stuff/cms-edit.png
[11:56:29 EDT(-0400)] <EricDalquist> ohh
[11:56:30 EDT(-0400)] <EricDalquist> pretty
[11:56:48 EDT(-0400)] <athena> if anyone wants to test it out, it'd be great to have some feedback (smile)
[11:57:31 EDT(-0400)] <awills> nice... and that's config mode?
[11:58:16 EDT(-0400)] <athena> yep
[11:58:29 EDT(-0400)] <athena> should be interesting when combined w/ the delegated admin and lifecycle stuff, i think?
[11:58:44 EDT(-0400)] <EricDalquist> yup
[11:58:59 EDT(-0400)] <EricDalquist> I'm also hoping to eventually integrate config mode in the standard UI
[11:59:07 EDT(-0400)] <EricDalquist> so as an admin you can just config a portlet in the layout
[11:59:14 EDT(-0400)] <EricDalquist> no need to go to portlet admin
[11:59:16 EDT(-0400)] <athena> neat (smile)
[11:59:42 EDT(-0400)] <awills> yeah that would be great
[12:07:28 EDT(-0400)] <awills> athena my 3.2 DB has the correct value too... strange
[12:07:39 EDT(-0400)] <athena> yeah i don't know where that's coming from
[12:07:40 EDT(-0400)] <athena> confused
[12:08:14 EDT(-0400)] <athena> though that probably explains why the entity-type files didn't get updated though, if the right data appeared in the db
[12:08:20 EDT(-0400)] <awills> might be getting updated by like a v2-6 -> v3-2 transform
[12:09:01 EDT(-0400)] <athena> maybe
[12:09:11 EDT(-0400)] <athena> i ran a grep through the db files and didn't see anything though
[12:09:38 EDT(-0400)] <awills> it is: http://uportal.pastebin.com/6FBiEZyg
[12:09:53 EDT(-0400)] <awills> so i have no idea how i'm getting that stack trace
[12:13:46 EDT(-0400)] <EricDalquist> what is the full trace for: http://uportal.pastebin.com/fhSEmQAY
[12:15:59 EDT(-0400)] <athena> and what are you doing to get it?
[12:16:15 EDT(-0400)] <awills> this is the full: http://uportal.pastebin.com/wwT1uFKn
[12:16:23 EDT(-0400)] <awills> guest layout fails
[12:17:12 EDT(-0400)] <awills> tomcat restart "fixed" it
[12:17:39 EDT(-0400)] <athena> huh.
[12:32:59 EDT(-0400)] <awills> could it be a fluke of concurrency? multipple threads trying ti initialize the EntityTypes collection at the same time... perhaps hitting this method (multiple times) at th same time? http://uportal.pastebin.com/q5zBCUwi
[12:34:16 EDT(-0400)] <awills> seems like you could end up making a copy, as you were adding, that didn't include stuff you already added... b/c another thread was also making copies and replacing the collection
[12:37:47 EDT(-0400)] <athena> try fixing the entity-type file and see if that fixes it?
[12:37:56 EDT(-0400)] <athena> probably have to fix some other files too
[12:38:09 EDT(-0400)] <awills> the .entity-type file?
[12:38:14 EDT(-0400)] <athena> yes
[12:38:21 EDT(-0400)] <awills> i should think that would have no effect
[12:38:38 EDT(-0400)] <awills> i'm pretty sure it's correct in the DB for that server too
[12:38:47 EDT(-0400)] <athena> ok
[12:39:22 EDT(-0400)] <awills> i think the entity type def was just (somehow) absent from the collection when GaP inquired about it
[12:39:49 EDT(-0400)] <awills> that it could have been any type... didn't have to be the chan def one
[12:40:21 EDT(-0400)] <awills> one server of a multi-server deployment was hosed... others worked just fine... and the broken one worked on restart
[12:40:32 EDT(-0400)] <awills> makes me think some bootstrapping failure
[12:40:45 EDT(-0400)] <awills> probably long odds too
[13:27:46 EDT(-0400)] * Sememmon (~Sememmon@unaffiliated/sememmon) has joined ##uportal
[13:35:43 EDT(-0400)] <athena> hmm :/
[13:35:53 EDT(-0400)] <athena> i have almost everything working to optionally allow javascript in the cms portlet
[13:36:11 EDT(-0400)] <athena> except antisamy appears to add a cdata block around the JS each time you run it through the scanner
[13:37:22 EDT(-0400)] <athena> probably because it's not really meant to allow js