You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Miroslav Genov (JIRA)" <de...@myfaces.apache.org> on 2008/02/27 19:35:51 UTC
[jira] Created: (ORCHESTRA-16) Rendering Problem
Rendering Problem
-----------------
Key: ORCHESTRA-16
URL: https://issues.apache.org/jira/browse/ORCHESTRA-16
Project: MyFaces Orchestra
Issue Type: Bug
Environment: Spring, Apache Orchestra, JSF RI 1.2, Custom Components
Reporter: Miroslav Genov
It seems that there is a problem when any control is trying to access servlet for rendering of an image. I have an image verification component which is rendered as:
<img id="loginForm:verification_image" src="/jadm-web/resourceServlet;jsessionid=CB3A2751A2FEF9823DE59A281AFA1BF0?imgId=14590567251000&conversationContext=1" alt="" height="40" width="100" />
Any idea why orchestra places ";" after servlet name.?
This is the code which I'm using to render the image element.
String src = "/" + ResourceServlet.RESOURCE_SERVLET_MAPPING
+ "?imgId=" + id;
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (ORCHESTRA-16) Rendering Problem
Posted by "Mario Ivankovits (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/ORCHESTRA-16?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12574249#action_12574249 ]
Mario Ivankovits commented on ORCHESTRA-16:
-------------------------------------------
What I said ...
You should see it only on the first response which happens after the session has been created. Tomcat then encodes the URL _and_ sets the cookie. With the next request both will be sent back to tomcat (given cookies are enabled with the broswer) and the ;jsessionid will no longer be added to the link.
Given the bug reporter didn't provide any new information I am going to close this bug.
> Rendering Problem
> -----------------
>
> Key: ORCHESTRA-16
> URL: https://issues.apache.org/jira/browse/ORCHESTRA-16
> Project: MyFaces Orchestra
> Issue Type: Bug
> Environment: Spring, Apache Orchestra, JSF RI 1.2, Custom Components
> Reporter: Miroslav Genov
>
> It seems that there is a problem when any control is trying to access servlet for rendering of an image. I have an image verification component which is rendered as:
> <img id="loginForm:verification_image" src="/jadm-web/resourceServlet;jsessionid=CB3A2751A2FEF9823DE59A281AFA1BF0?imgId=14590567251000&conversationContext=1" alt="" height="40" width="100" />
> Any idea why orchestra places ";" after servlet name.?
> This is the code which I'm using to render the image element.
> String src = "/" + ResourceServlet.RESOURCE_SERVLET_MAPPING
> + "?imgId=" + id;
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (ORCHESTRA-16) Rendering Problem
Posted by "Mario Ivankovits (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/ORCHESTRA-16?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12573021#action_12573021 ]
Mario Ivankovits commented on ORCHESTRA-16:
-------------------------------------------
This has nothing to do with orchestra. The ;jsessionid will be added by the servlet container (tomcat) on the first response or always if cookies are disabled (either server side or client side).
HttpServletResponse.encodeUrl [1] is responsible for this.
Ciao,
Mario
[1] http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/http/HttpServletResponse.html#encodeURL(java.lang.String)
> Rendering Problem
> -----------------
>
> Key: ORCHESTRA-16
> URL: https://issues.apache.org/jira/browse/ORCHESTRA-16
> Project: MyFaces Orchestra
> Issue Type: Bug
> Environment: Spring, Apache Orchestra, JSF RI 1.2, Custom Components
> Reporter: Miroslav Genov
>
> It seems that there is a problem when any control is trying to access servlet for rendering of an image. I have an image verification component which is rendered as:
> <img id="loginForm:verification_image" src="/jadm-web/resourceServlet;jsessionid=CB3A2751A2FEF9823DE59A281AFA1BF0?imgId=14590567251000&conversationContext=1" alt="" height="40" width="100" />
> Any idea why orchestra places ";" after servlet name.?
> This is the code which I'm using to render the image element.
> String src = "/" + ResourceServlet.RESOURCE_SERVLET_MAPPING
> + "?imgId=" + id;
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (ORCHESTRA-16) Rendering Problem
Posted by "Simon Kitching (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/ORCHESTRA-16?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12574242#action_12574242 ]
Simon Kitching commented on ORCHESTRA-16:
-----------------------------------------
That ";jsessionid" stuff is standard tomcat behaviour when an http session is needed but the server thinks that the browser cannot accept cookies (or the webapp does not want to use cookies for some reason).
However there does seem to be something funny with Orchestra in this regard. I've seen the jsessionid value being appended to the url when using the example app; it is there for a few pages then disappears. Maybe Orchestra is trying to build a url before it has caused an http session cookie to be written to the stream, and tomcat is interpreting that as meaning that we want an http session but do not want to use cookies? Needs more investigation I think, but anyway it isn't exactly a bug...just an alternate form of representing the session.
> Rendering Problem
> -----------------
>
> Key: ORCHESTRA-16
> URL: https://issues.apache.org/jira/browse/ORCHESTRA-16
> Project: MyFaces Orchestra
> Issue Type: Bug
> Environment: Spring, Apache Orchestra, JSF RI 1.2, Custom Components
> Reporter: Miroslav Genov
>
> It seems that there is a problem when any control is trying to access servlet for rendering of an image. I have an image verification component which is rendered as:
> <img id="loginForm:verification_image" src="/jadm-web/resourceServlet;jsessionid=CB3A2751A2FEF9823DE59A281AFA1BF0?imgId=14590567251000&conversationContext=1" alt="" height="40" width="100" />
> Any idea why orchestra places ";" after servlet name.?
> This is the code which I'm using to render the image element.
> String src = "/" + ResourceServlet.RESOURCE_SERVLET_MAPPING
> + "?imgId=" + id;
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.