History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: UP-1586
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Dan Ellentuck
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
uPortal

CWebProxy should check for empty (as well as null) param values for cw_xsl and cw_xslTitle

Created: 28/Sep/06 04:25 PM   Updated: 03/Oct/07 12:22 PM
Component/s: WebProxy Channels
Affects Version/s: 2.6.0 M1, 2.5.3 GA, 2.6.0 RC1, 2.6.0 RC2, 2.6.0 GA, 2.6.1 RC1, 2.6.1 RC2
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment: tomcat 5.5.17, Sybase


 Description  « Hide
With Sybase, when you insert an empty string in a field and retrieve it, you get back an empty string. With most other rdbms, you get back a null. This affects CWebProxy channel parameters cw_xslTitle and cw_xsl, which along with cw_ssl, are used to derive the URI of the stylesheet used in the transform. When the value of cw_xslTitle is an empty String as opposed to a null, the attempt to locate the CWebProxy stylesheet list fails with an NPE even if cw_xsl has a valid value...and the channel fails to render.

Fix: In addition to checking for cw_xslTitle==null before it sets this value on ChannelState, CWebProxy.setStaticData() should also check for cw_xsl and cw_xslTitle equals() an empty String, as it does for a number of other params. See: CWebProxy.setStaticData() line 446.

This may only show up with Sybase.


 All   Comments   Work Log   Change History   FishEye      Sort Order:
There are no comments yet on this issue.