uPortal IRC Logs-2009-10-16

[05:13:23 EDT(-0400)] * higmad (n=chatzill@pcit-8752.HIG.SE) has joined ##uportal
[08:10:46 EDT(-0400)] * tsnfoo (n=tsnfoo@cpe-173-88-27-191.columbus.res.rr.com) has joined ##uportal
[09:11:35 EDT(-0400)] * jayshao_ (n=jayshao@69.115.19.12) has joined ##uportal
[09:38:35 EDT(-0400)] * michelled (n=michelle@142.150.154.193) has joined ##uportal
[09:46:56 EDT(-0400)] * michelled (n=team@142.150.154.193) has joined ##uportal
[09:51:14 EDT(-0400)] * tsnfoo (n=tsnfoo@140.141.15.78) has joined ##uportal
[09:54:50 EDT(-0400)] * EricDalquist (n=dalquist@bohemia.doit.wisc.edu) has joined ##uportal
[10:06:07 EDT(-0400)] * athena (n=athena@adsl-75-58-127-15.dsl.wlfrct.sbcglobal.net) has joined ##uportal
[10:07:50 EDT(-0400)] * jessm (n=Jess@c-71-232-1-65.hsd1.ma.comcast.net) has joined ##uportal
[10:40:25 EDT(-0400)] * lennard1 (n=sparhk@ip68-98-56-21.ph.ph.cox.net) has joined ##uportal
[10:50:57 EDT(-0400)] * colinclark (n=colin@142.150.154.101) has joined ##uportal
[12:14:56 EDT(-0400)] * colinclark (n=colin@142.150.154.101) has joined ##uportal
[12:36:41 EDT(-0400)] * Sememmon (n=Sememmon@wsip-72-215-204-133.ph.ph.cox.net) has joined ##uportal
[13:01:13 EDT(-0400)] <EricDalquist> athena: I was thinking about the portlet manager slowness a bit more
[13:01:23 EDT(-0400)] <EricDalquist> I think we need to generate a portlet manager specific JSON feed
[13:01:24 EDT(-0400)] <athena> which slowness?
[13:01:29 EDT(-0400)] <EricDalquist> the initial load
[13:01:31 EDT(-0400)] <athena> ah
[13:01:33 EDT(-0400)] <EricDalquist> due to the XML formatting
[13:01:39 EDT(-0400)] <EricDalquist> I think json may be faster
[13:01:44 EDT(-0400)] <athena> i think it actually feels faster than it used to, but that may just be my imagination
[13:01:51 EDT(-0400)] <athena> hang on, phone
[13:01:55 EDT(-0400)] <EricDalquist> and I think we could make JSON be ok if we just generated the data needed
[13:01:55 EDT(-0400)] <EricDalquist> k
[13:04:28 EDT(-0400)] <athena> ok, back for now
[13:04:43 EDT(-0400)] <EricDalquist> so really the portlet manager UI needs what
[13:04:53 EDT(-0400)] <athena> so we were planning to do JSON eventually, but use XML for now so that i didn't have to rewrite the javascript
[13:04:57 EDT(-0400)] <EricDalquist> id, name, desc, type, workflow state?
[13:05:07 EDT(-0400)] <EricDalquist> yeah I just don't want to dump everything in the XML into json
[13:05:14 EDT(-0400)] <EricDalquist> since that includes things like channel parameters
[13:05:14 EDT(-0400)] <athena> the portlet manager, yes, i think that's true
[13:05:20 EDT(-0400)] <EricDalquist> which could have sensitive data
[13:05:45 EDT(-0400)] <EricDalquist> and that same json format is probably good enough for the add portlet dialog
[13:05:46 EDT(-0400)] <athena> the channel adding UI does actually potentially need those parameters
[13:05:52 EDT(-0400)] <EricDalquist> ah
[13:05:59 EDT(-0400)] <EricDalquist> for allowing overrides?
[13:06:04 EDT(-0400)] <athena> at least at one point i'd added support for setting those in the UI, though it's possible that doesn't still work
[13:06:04 EDT(-0400)] <athena> yes
[13:06:12 EDT(-0400)] <athena> had tried to be compatible w/ that feature
[13:06:19 EDT(-0400)] <EricDalquist> so parameters marked 'user editable'
[13:06:34 EDT(-0400)] <athena> do you have an example of something that remotely access JSON, by the way?
[13:06:38 EDT(-0400)] <athena> would like to try it out and see
[13:07:32 EDT(-0400)] <EricDalquist> http://docs.jquery.com/Release:jQuery_1.2/Ajax#Cross-Domain_getJSON_.28using_JSONP.29
[13:08:15 EDT(-0400)] <athena> thanks
[13:08:37 EDT(-0400)] <athena> doesn't that require the server to actually implement JSONP rather than just JSON though?
[13:08:44 EDT(-0400)] <EricDalquist> right
[13:08:48 EDT(-0400)] <EricDalquist> so I believe it works
[13:08:54 EDT(-0400)] <EricDalquist> by writing a <script> tag to the dom
[13:09:01 EDT(-0400)] <EricDalquist> pointing to the json URL
[13:09:28 EDT(-0400)] <EricDalquist> since json is valid JS
[13:09:33 EDT(-0400)] <EricDalquist> it loads correctly
[13:09:47 EDT(-0400)] <EricDalquist> I think the concept behind it is something like that
[13:09:49 EDT(-0400)] <EricDalquist> so the thing to remember
[13:09:54 EDT(-0400)] <EricDalquist> is that if you expose data as JSON
[13:10:06 EDT(-0400)] <EricDalquist> anyone anywhere can read it via CSRF
[13:10:25 EDT(-0400)] <EricDalquist> so we just need to be careful that the json data available doesn't expose anything too interesting
[13:10:49 EDT(-0400)] <athena> which is actually really irritating
[13:10:50 EDT(-0400)] <EricDalquist> like knowing the list of portlets in the portal by title & defid hopefully wouldn't be a problem
[13:11:29 EDT(-0400)] <athena> but knowing the hierarchy of users and groups is less good
[13:11:32 EDT(-0400)] * athena sighs
[13:11:42 EDT(-0400)] <EricDalquist> yeah
[13:11:54 EDT(-0400)] <EricDalquist> so for a lot of stuff XML is safer
[13:13:09 EDT(-0400)] <EricDalquist> does jquery make dealing with xml fairly reasonable?
[13:13:17 EDT(-0400)] <athena> it's not unreasonable
[13:13:18 EDT(-0400)] <athena> it's like HTML
[13:13:30 EDT(-0400)] <athena> but much less convenient if you actually want exactly the objects the server spits out
[13:13:40 EDT(-0400)] <EricDalquist> yeah
[13:13:43 EDT(-0400)] <EricDalquist> need something like perl
[13:13:43 EDT(-0400)] <athena> ugh, i'm having a bizarre issue with the jsonview
[13:13:48 EDT(-0400)] <EricDalquist> to convert xml -> hash
[13:22:32 EDT(-0400)] <athena> hm.
[13:22:41 EDT(-0400)] <athena> it looks like it's some spring binding that's screwing up my ajax call
[13:55:27 EDT(-0400)] * colinclark (n=colin@142.150.154.101) has joined ##uportal
[15:01:30 EDT(-0400)] <athena> so somehow a org.springframework.validation.BeanPropertyBindingResult is getting into the view's model and JSONView is trying to serialize it to JSON
[15:01:33 EDT(-0400)] <athena> and is breaking on that
[15:01:39 EDT(-0400)] <athena> you haven't seen that happen have you EricDalquist?
[15:01:53 EDT(-0400)] <EricDalquist> hrm
[15:01:55 EDT(-0400)] <EricDalquist> no
[15:02:05 EDT(-0400)] <EricDalquist> but I've never used the json support with spring's form binding support
[15:02:08 EDT(-0400)] <athena> i'm not quite sure why that's being added to the view
[15:02:14 EDT(-0400)] <athena> i'm not using it
[15:02:17 EDT(-0400)] <athena> at least, not intentionally
[17:49:41 EDT(-0400)] * tsnfoo (n=tsnfoo@cpe-173-88-27-191.columbus.res.rr.com) has joined ##uportal
[20:22:39 EDT(-0400)] * tsnfoo (n=tsnfoo@cpe-173-88-27-191.columbus.res.rr.com) has joined ##uportal