You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Moritz Gmelin (JIRA)" <de...@tapestry.apache.org> on 2008/01/28 15:39:38 UTC

[jira] Created: (TAPESTRY-2095) createActionLink fails to return URL usable in images when no parameter is given

createActionLink fails to return URL usable in images when no parameter is given
--------------------------------------------------------------------------------

                 Key: TAPESTRY-2095
                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2095
             Project: Tapestry
          Issue Type: Bug
          Components: Core Components
    Affects Versions: 5.0.9, 5.0.8
         Environment: MacOS X, Jetty, Eclipse
            Reporter: Moritz Gmelin



I have a dynamically created image from a service on my page.

The method to create the link is as follows
	 public Link getBPURL(){
       	return getResources().createActionLink("BPGraph", false, new Object[] { });
	}
		
This is how the .tml part looks
  	<img id="bpimg" class="dia_img" src="${BPURL}" width="800" height="400"/>

And this is the resulting html code
	<img class="dia_img" height="400" id="bpimg" src="databp:BPGraph" width="800">

The browser refuses to render an image since it considers the URL "databp:BPGraph" as invalid (which I can somehow understand).

If I add a dummy parameter in the method that creates the Link
	public Link getBPURL(){
       	return getResources().createActionLink("BPGraph", false, new Object[] { 1 });
	}
the rendered html looks like this
	<img class="dia_img" height="400" id="bpimg" src="./databp:BPGraph/1" width="800">

This is OK for my browser. But I would consider it a but in the way tapestry (since 5.0.8) shortens the URLs.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Commented: (TAPESTRY-2095) createActionLink fails to return URL usable in images when no parameter is given

Posted by "Moritz Gmelin (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-2095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12565538#action_12565538 ] 

Moritz Gmelin commented on TAPESTRY-2095:
-----------------------------------------

I'd say #1, src="databp:BPGraph" is not a valid URL in my Opinion. And none of the browsers I used to test can render it. 

URL ./databp:BPGraph are accepted by Firefox and Safari although I think it is very optimistic to think that all browsers will render this correctly.




> createActionLink fails to return URL usable in images when no parameter is given
> --------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-2095
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2095
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Core Components
>    Affects Versions: 5.0.8, 5.0.9
>         Environment: MacOS X, Jetty, Eclipse
>            Reporter: Moritz Gmelin
>
> I have a dynamically created image from a service on my page.
> The method to create the link is as follows
> 	 public Link getBPURL(){
>        	return getResources().createActionLink("BPGraph", false, new Object[] { });
> 	}
> 		
> This is how the .tml part looks
>   	<img id="bpimg" class="dia_img" src="${BPURL}" width="800" height="400"/>
> And this is the resulting html code
> 	<img class="dia_img" height="400" id="bpimg" src="databp:BPGraph" width="800">
> The browser refuses to render an image since it considers the URL "databp:BPGraph" as invalid (which I can somehow understand).
> If I add a dummy parameter in the method that creates the Link
> 	public Link getBPURL(){
>        	return getResources().createActionLink("BPGraph", false, new Object[] { 1 });
> 	}
> the rendered html looks like this
> 	<img class="dia_img" height="400" id="bpimg" src="./databp:BPGraph/1" width="800">
> This is OK for my browser. But I would consider it a but in the way tapestry (since 5.0.8) shortens the URLs.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-2095) Incorrect optimization for requests that contain a colon but do not contain a slash

Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-2095?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship updated TAPESTRY-2095:
-------------------------------------------

    Summary: Incorrect optimization for requests that contain a colon but do not contain a slash  (was: createActionLink fails to return URL usable in images when no parameter is given)

> Incorrect optimization for requests that contain a colon but do not contain a slash
> -----------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-2095
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2095
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Core Components
>    Affects Versions: 5.0.8, 5.0.9
>         Environment: MacOS X, Jetty, Eclipse
>            Reporter: Moritz Gmelin
>             Fix For: 5.0.10
>
>
> I have a dynamically created image from a service on my page.
> The method to create the link is as follows
> 	 public Link getBPURL(){
>        	return getResources().createActionLink("BPGraph", false, new Object[] { });
> 	}
> 		
> This is how the .tml part looks
>   	<img id="bpimg" class="dia_img" src="${BPURL}" width="800" height="400"/>
> And this is the resulting html code
> 	<img class="dia_img" height="400" id="bpimg" src="databp:BPGraph" width="800">
> The browser refuses to render an image since it considers the URL "databp:BPGraph" as invalid (which I can somehow understand).
> If I add a dummy parameter in the method that creates the Link
> 	public Link getBPURL(){
>        	return getResources().createActionLink("BPGraph", false, new Object[] { 1 });
> 	}
> the rendered html looks like this
> 	<img class="dia_img" height="400" id="bpimg" src="./databp:BPGraph/1" width="800">
> This is OK for my browser. But I would consider it a but in the way tapestry (since 5.0.8) shortens the URLs.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-2095) createActionLink fails to return URL usable in images when no parameter is given

Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-2095?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship updated TAPESTRY-2095:
-------------------------------------------

    Comment: was deleted

> createActionLink fails to return URL usable in images when no parameter is given
> --------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-2095
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2095
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Core Components
>    Affects Versions: 5.0.8, 5.0.9
>         Environment: MacOS X, Jetty, Eclipse
>            Reporter: Moritz Gmelin
>
> I have a dynamically created image from a service on my page.
> The method to create the link is as follows
> 	 public Link getBPURL(){
>        	return getResources().createActionLink("BPGraph", false, new Object[] { });
> 	}
> 		
> This is how the .tml part looks
>   	<img id="bpimg" class="dia_img" src="${BPURL}" width="800" height="400"/>
> And this is the resulting html code
> 	<img class="dia_img" height="400" id="bpimg" src="databp:BPGraph" width="800">
> The browser refuses to render an image since it considers the URL "databp:BPGraph" as invalid (which I can somehow understand).
> If I add a dummy parameter in the method that creates the Link
> 	public Link getBPURL(){
>        	return getResources().createActionLink("BPGraph", false, new Object[] { 1 });
> 	}
> the rendered html looks like this
> 	<img class="dia_img" height="400" id="bpimg" src="./databp:BPGraph/1" width="800">
> This is OK for my browser. But I would consider it a but in the way tapestry (since 5.0.8) shortens the URLs.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Closed: (TAPESTRY-2095) Incorrect optimization for requests that contain a colon but do not contain a slash

Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-2095?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship closed TAPESTRY-2095.
------------------------------------------

       Resolution: Fixed
    Fix Version/s: 5.0.10
         Assignee: Howard M. Lewis Ship

> Incorrect optimization for requests that contain a colon but do not contain a slash
> -----------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-2095
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2095
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Core Components
>    Affects Versions: 5.0.8, 5.0.9
>         Environment: MacOS X, Jetty, Eclipse
>            Reporter: Moritz Gmelin
>            Assignee: Howard M. Lewis Ship
>             Fix For: 5.0.10
>
>
> I have a dynamically created image from a service on my page.
> The method to create the link is as follows
> 	 public Link getBPURL(){
>        	return getResources().createActionLink("BPGraph", false, new Object[] { });
> 	}
> 		
> This is how the .tml part looks
>   	<img id="bpimg" class="dia_img" src="${BPURL}" width="800" height="400"/>
> And this is the resulting html code
> 	<img class="dia_img" height="400" id="bpimg" src="databp:BPGraph" width="800">
> The browser refuses to render an image since it considers the URL "databp:BPGraph" as invalid (which I can somehow understand).
> If I add a dummy parameter in the method that creates the Link
> 	public Link getBPURL(){
>        	return getResources().createActionLink("BPGraph", false, new Object[] { 1 });
> 	}
> the rendered html looks like this
> 	<img class="dia_img" height="400" id="bpimg" src="./databp:BPGraph/1" width="800">
> This is OK for my browser. But I would consider it a but in the way tapestry (since 5.0.8) shortens the URLs.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Commented: (TAPESTRY-2095) createActionLink fails to return URL usable in images when no parameter is given

Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-2095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12564887#action_12564887 ] 

Howard M. Lewis Ship commented on TAPESTRY-2095:
------------------------------------------------

Are you saying

1) The URL is incorrect

2) The URL is valid, but the browser refuses to use it

3) The browser sends the request for the URL but does not render the result


I think I can rule out #1, but from your description it isn't clear whether the problem is #2 or #3.

> createActionLink fails to return URL usable in images when no parameter is given
> --------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-2095
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2095
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Core Components
>    Affects Versions: 5.0.8, 5.0.9
>         Environment: MacOS X, Jetty, Eclipse
>            Reporter: Moritz Gmelin
>
> I have a dynamically created image from a service on my page.
> The method to create the link is as follows
> 	 public Link getBPURL(){
>        	return getResources().createActionLink("BPGraph", false, new Object[] { });
> 	}
> 		
> This is how the .tml part looks
>   	<img id="bpimg" class="dia_img" src="${BPURL}" width="800" height="400"/>
> And this is the resulting html code
> 	<img class="dia_img" height="400" id="bpimg" src="databp:BPGraph" width="800">
> The browser refuses to render an image since it considers the URL "databp:BPGraph" as invalid (which I can somehow understand).
> If I add a dummy parameter in the method that creates the Link
> 	public Link getBPURL(){
>        	return getResources().createActionLink("BPGraph", false, new Object[] { 1 });
> 	}
> the rendered html looks like this
> 	<img class="dia_img" height="400" id="bpimg" src="./databp:BPGraph/1" width="800">
> This is OK for my browser. But I would consider it a but in the way tapestry (since 5.0.8) shortens the URLs.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Commented: (TAPESTRY-2095) createActionLink fails to return URL usable in images when no parameter is given

Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-2095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12566834#action_12566834 ] 

Howard M. Lewis Ship commented on TAPESTRY-2095:
------------------------------------------------

Found a bug where a path without a slash will not be prefixed with "./" even if it contains a colon.

> createActionLink fails to return URL usable in images when no parameter is given
> --------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-2095
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2095
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Core Components
>    Affects Versions: 5.0.8, 5.0.9
>         Environment: MacOS X, Jetty, Eclipse
>            Reporter: Moritz Gmelin
>
> I have a dynamically created image from a service on my page.
> The method to create the link is as follows
> 	 public Link getBPURL(){
>        	return getResources().createActionLink("BPGraph", false, new Object[] { });
> 	}
> 		
> This is how the .tml part looks
>   	<img id="bpimg" class="dia_img" src="${BPURL}" width="800" height="400"/>
> And this is the resulting html code
> 	<img class="dia_img" height="400" id="bpimg" src="databp:BPGraph" width="800">
> The browser refuses to render an image since it considers the URL "databp:BPGraph" as invalid (which I can somehow understand).
> If I add a dummy parameter in the method that creates the Link
> 	public Link getBPURL(){
>        	return getResources().createActionLink("BPGraph", false, new Object[] { 1 });
> 	}
> the rendered html looks like this
> 	<img class="dia_img" height="400" id="bpimg" src="./databp:BPGraph/1" width="800">
> This is OK for my browser. But I would consider it a but in the way tapestry (since 5.0.8) shortens the URLs.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Commented: (TAPESTRY-2095) createActionLink fails to return URL usable in images when no parameter is given

Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-2095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12566830#action_12566830 ] 

Howard M. Lewis Ship commented on TAPESTRY-2095:
------------------------------------------------

This is fixed by TAPESTRY-2033.

> createActionLink fails to return URL usable in images when no parameter is given
> --------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-2095
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2095
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Core Components
>    Affects Versions: 5.0.8, 5.0.9
>         Environment: MacOS X, Jetty, Eclipse
>            Reporter: Moritz Gmelin
>
> I have a dynamically created image from a service on my page.
> The method to create the link is as follows
> 	 public Link getBPURL(){
>        	return getResources().createActionLink("BPGraph", false, new Object[] { });
> 	}
> 		
> This is how the .tml part looks
>   	<img id="bpimg" class="dia_img" src="${BPURL}" width="800" height="400"/>
> And this is the resulting html code
> 	<img class="dia_img" height="400" id="bpimg" src="databp:BPGraph" width="800">
> The browser refuses to render an image since it considers the URL "databp:BPGraph" as invalid (which I can somehow understand).
> If I add a dummy parameter in the method that creates the Link
> 	public Link getBPURL(){
>        	return getResources().createActionLink("BPGraph", false, new Object[] { 1 });
> 	}
> the rendered html looks like this
> 	<img class="dia_img" height="400" id="bpimg" src="./databp:BPGraph/1" width="800">
> This is OK for my browser. But I would consider it a but in the way tapestry (since 5.0.8) shortens the URLs.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Issue Comment Edited: (TAPESTRY-2095) createActionLink fails to return URL usable in images when no parameter is given

Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-2095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12566830#action_12566830 ] 

hlship edited comment on TAPESTRY-2095 at 2/7/08 2:50 PM:
------------------------------------------------------------------------

This is fixed by TAPESTRY-2057.

      was (Author: hlship):
    This is fixed by TAPESTRY-2033.
  
> createActionLink fails to return URL usable in images when no parameter is given
> --------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-2095
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2095
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Core Components
>    Affects Versions: 5.0.8, 5.0.9
>         Environment: MacOS X, Jetty, Eclipse
>            Reporter: Moritz Gmelin
>
> I have a dynamically created image from a service on my page.
> The method to create the link is as follows
> 	 public Link getBPURL(){
>        	return getResources().createActionLink("BPGraph", false, new Object[] { });
> 	}
> 		
> This is how the .tml part looks
>   	<img id="bpimg" class="dia_img" src="${BPURL}" width="800" height="400"/>
> And this is the resulting html code
> 	<img class="dia_img" height="400" id="bpimg" src="databp:BPGraph" width="800">
> The browser refuses to render an image since it considers the URL "databp:BPGraph" as invalid (which I can somehow understand).
> If I add a dummy parameter in the method that creates the Link
> 	public Link getBPURL(){
>        	return getResources().createActionLink("BPGraph", false, new Object[] { 1 });
> 	}
> the rendered html looks like this
> 	<img class="dia_img" height="400" id="bpimg" src="./databp:BPGraph/1" width="800">
> This is OK for my browser. But I would consider it a but in the way tapestry (since 5.0.8) shortens the URLs.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org