Menu

#52 ChartImgTag forces inclusion of ;JSESSIONID parameter

cewolf-0.10
closed-fixed
TagLibrary (33)
7
2015-01-27
2004-08-06
No

The ChartImgTag class (corresponding to the
<cewolf:img> tag manually appends a semicolon, the
SESSIONID_KEY and the session ID to the img URL. This
causes the url to break when using IIS as a web server,
since it cannot handle the semicolon. My app works
just fine by storing the JSESSIONID in a cookie.

According to the J2EE docs, response.encodeURL() will
put the JSESSIONID into the URL if it needs to.
There's a javadoc comment on the function that reads:

To enable further server side scriptings on JSP output
the session ID is always encoded into the image URL
even if cookies are enabled on the client side.

I'm not sure what "further server side scriptings on
JSP output" is supposed to mean.

I've modified my local copy of cewolf to just comment
out lines 143-147 in ChartImgTag.java, and everything
works beautifully, using the cookie.

Discussion

  • Brian Fox

    Brian Fox - 2004-08-08
    • assigned_to: nobody --> brianfox
     
  • Brian Fox

    Brian Fox - 2004-08-08

    Logged In: YES
    user_id=805618

    Will look into it.

     
  • Guido Laures

    Guido Laures - 2004-08-09

    Logged In: YES
    user_id=574032

    With "further server side scriptings on
    JSP output" (bad Englisch indeed, sorry) was meant that
    Cewolf can be used outside a servlet container.
    The special requirments arised from the JasperReports
    project who wanted to use Cewolf for reports and do not have
    a cooky mechnism.

    We should make this configurable as an attribute in the img tag.

    Regards,
    Guido

     
  • Brian Fox

    Brian Fox - 2005-02-25
    • priority: 5 --> 7
     
  • Philippe Mouawad

    Logged In: YES
    user_id=987953

    I encountered another problem due to the presence of
    jsession id in the url:
    We are in a load balanced environment where an apache server
    load balances on 2 Oracle Application Servers.
    The presence of this parameter breaks the load balancer and
    a switch occurs on the rendering.
    I removed the code in lines 143-147 and it worked fine, so
    I'm waiting impatiently your patch.

     
  • Philippe Mouawad

    Logged In: YES
    user_id=987953

    I joined a correction to this bug in the patches with id
    1345158.

     
  • Ulf Dittmer

    Ulf Dittmer - 2015-01-27
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB