
| Key: |
UP-1586
|
| Type: |
Bug
|
| Status: |
Open
|
| Priority: |
Major
|
| Assignee: |
Unassigned
|
| Reporter: |
Dan Ellentuck
|
| Votes: |
0
|
| Watchers: |
0
|
|
If you were logged in you would be able to see more operations.
|
|
|
|
Original Estimate:
|
Unknown
|
Remaining Estimate:
|
Unknown
|
Time Spent:
|
Unknown
|
|
Environment:
|
tomcat 5.5.17, Sybase
|
|
|
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.
|
|
Description
|
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.
|
Show » |
| There are no comments yet on this issue.
|
|