You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Alex Alvarez (JIRA)" <ji...@apache.org> on 2012/05/10 21:50:51 UTC

[jira] [Created] (WICKET-4553) BlobImageResource used on a Bookmarkable page generates invalid URL

Alex Alvarez created WICKET-4553:
------------------------------------

             Summary: BlobImageResource used on a Bookmarkable page generates invalid URL
                 Key: WICKET-4553
                 URL: https://issues.apache.org/jira/browse/WICKET-4553
             Project: Wicket
          Issue Type: Bug
          Components: site
    Affects Versions: 6.0.0-beta1
         Environment: JBoss 7
            Reporter: Alex Alvarez


I replicated the example in   https://cwiki.apache.org/WICKET/how-to-load-an-external-image.html and I noticed that the generated URL when using:

ResourceReference imageResource = new SharedResourceReference("documentResource");
String url=RequestCycle.get().urlFor(imageResource, new PageParameters())+"?id="+"1";

on a bookmarkable page causes a  "java.lang.ClassNotFoundException: resource"

Generated URL on a bookmarkable page:

http://localhost:8080/app/wicket/bookmarkable/resource/org.apache.wicket.Application/documentResource?id=1

on a non-bookmarkable page:

http://localhost:8080/nflows/wicket/resource/org.apache.wicket.Application/documentResource?id=1

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (WICKET-4553) BlobImageResource used on a Bookmarkable page generates invalid URL

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-4553?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov resolved WICKET-4553.
-------------------------------------

    Resolution: Cannot Reproduce
    
> BlobImageResource used on a Bookmarkable page generates invalid URL
> -------------------------------------------------------------------
>
>                 Key: WICKET-4553
>                 URL: https://issues.apache.org/jira/browse/WICKET-4553
>             Project: Wicket
>          Issue Type: Bug
>          Components: site
>    Affects Versions: 6.0.0-beta1
>         Environment: JBoss 7
>            Reporter: Alex Alvarez
>
> I replicated the example in   https://cwiki.apache.org/WICKET/how-to-load-an-external-image.html and I noticed that the generated URL when using:
> ResourceReference imageResource = new SharedResourceReference("documentResource");
> String url=RequestCycle.get().urlFor(imageResource, new PageParameters())+"?id="+"1";
> on a bookmarkable page causes a  "java.lang.ClassNotFoundException: resource"
> Generated URL:   ./resource/org.apache.wicket.Application/documentResource?id=1
> added to a bookmarkable page:
> http://localhost:8080/app/wicket/bookmarkable/resource/org.apache.wicket.Application/documentResource?id=1
> on a non-bookmarkable page:
> http://localhost:8080/nflows/wicket/resource/org.apache.wicket.Application/documentResource?id=1

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WICKET-4553) BlobImageResource used on a Bookmarkable page generates invalid URL

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-4553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13273102#comment-13273102 ] 

Martin Grigorov commented on WICKET-4553:
-----------------------------------------

Can you attach a quickstart application please?
                
> BlobImageResource used on a Bookmarkable page generates invalid URL
> -------------------------------------------------------------------
>
>                 Key: WICKET-4553
>                 URL: https://issues.apache.org/jira/browse/WICKET-4553
>             Project: Wicket
>          Issue Type: Bug
>          Components: site
>    Affects Versions: 6.0.0-beta1
>         Environment: JBoss 7
>            Reporter: Alex Alvarez
>
> I replicated the example in   https://cwiki.apache.org/WICKET/how-to-load-an-external-image.html and I noticed that the generated URL when using:
> ResourceReference imageResource = new SharedResourceReference("documentResource");
> String url=RequestCycle.get().urlFor(imageResource, new PageParameters())+"?id="+"1";
> on a bookmarkable page causes a  "java.lang.ClassNotFoundException: resource"
> Generated URL:   ./resource/org.apache.wicket.Application/documentResource?id=1
> added to a bookmarkable page:
> http://localhost:8080/app/wicket/bookmarkable/resource/org.apache.wicket.Application/documentResource?id=1
> on a non-bookmarkable page:
> http://localhost:8080/nflows/wicket/resource/org.apache.wicket.Application/documentResource?id=1

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (WICKET-4553) BlobImageResource used on a Bookmarkable page generates invalid URL

Posted by "Alex Alvarez (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-4553?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Alvarez updated WICKET-4553:
---------------------------------

    Description: 
I replicated the example in   https://cwiki.apache.org/WICKET/how-to-load-an-external-image.html and I noticed that the generated URL when using:

ResourceReference imageResource = new SharedResourceReference("documentResource");
String url=RequestCycle.get().urlFor(imageResource, new PageParameters())+"?id="+"1";

on a bookmarkable page causes a  "java.lang.ClassNotFoundException: resource"

Generated URL:   ./resource/org.apache.wicket.Application/documentResource?id=1

added to a bookmarkable page:

http://localhost:8080/app/wicket/bookmarkable/resource/org.apache.wicket.Application/documentResource?id=1

on a non-bookmarkable page:

http://localhost:8080/nflows/wicket/resource/org.apache.wicket.Application/documentResource?id=1

  was:
I replicated the example in   https://cwiki.apache.org/WICKET/how-to-load-an-external-image.html and I noticed that the generated URL when using:

ResourceReference imageResource = new SharedResourceReference("documentResource");
String url=RequestCycle.get().urlFor(imageResource, new PageParameters())+"?id="+"1";

on a bookmarkable page causes a  "java.lang.ClassNotFoundException: resource"

Generated URL on a bookmarkable page:

http://localhost:8080/app/wicket/bookmarkable/resource/org.apache.wicket.Application/documentResource?id=1

on a non-bookmarkable page:

http://localhost:8080/nflows/wicket/resource/org.apache.wicket.Application/documentResource?id=1

    
> BlobImageResource used on a Bookmarkable page generates invalid URL
> -------------------------------------------------------------------
>
>                 Key: WICKET-4553
>                 URL: https://issues.apache.org/jira/browse/WICKET-4553
>             Project: Wicket
>          Issue Type: Bug
>          Components: site
>    Affects Versions: 6.0.0-beta1
>         Environment: JBoss 7
>            Reporter: Alex Alvarez
>
> I replicated the example in   https://cwiki.apache.org/WICKET/how-to-load-an-external-image.html and I noticed that the generated URL when using:
> ResourceReference imageResource = new SharedResourceReference("documentResource");
> String url=RequestCycle.get().urlFor(imageResource, new PageParameters())+"?id="+"1";
> on a bookmarkable page causes a  "java.lang.ClassNotFoundException: resource"
> Generated URL:   ./resource/org.apache.wicket.Application/documentResource?id=1
> added to a bookmarkable page:
> http://localhost:8080/app/wicket/bookmarkable/resource/org.apache.wicket.Application/documentResource?id=1
> on a non-bookmarkable page:
> http://localhost:8080/nflows/wicket/resource/org.apache.wicket.Application/documentResource?id=1

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WICKET-4553) BlobImageResource used on a Bookmarkable page generates invalid URL

Posted by "Alex Alvarez (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-4553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13274621#comment-13274621 ] 

Alex Alvarez commented on WICKET-4553:
--------------------------------------

was unable to replicate in a standalone project.  Managed to work around the issue by checking the generated URL and adding an additional  dot  ( going from ./   to ../ )  to the generated URL if needed.
                
> BlobImageResource used on a Bookmarkable page generates invalid URL
> -------------------------------------------------------------------
>
>                 Key: WICKET-4553
>                 URL: https://issues.apache.org/jira/browse/WICKET-4553
>             Project: Wicket
>          Issue Type: Bug
>          Components: site
>    Affects Versions: 6.0.0-beta1
>         Environment: JBoss 7
>            Reporter: Alex Alvarez
>
> I replicated the example in   https://cwiki.apache.org/WICKET/how-to-load-an-external-image.html and I noticed that the generated URL when using:
> ResourceReference imageResource = new SharedResourceReference("documentResource");
> String url=RequestCycle.get().urlFor(imageResource, new PageParameters())+"?id="+"1";
> on a bookmarkable page causes a  "java.lang.ClassNotFoundException: resource"
> Generated URL:   ./resource/org.apache.wicket.Application/documentResource?id=1
> added to a bookmarkable page:
> http://localhost:8080/app/wicket/bookmarkable/resource/org.apache.wicket.Application/documentResource?id=1
> on a non-bookmarkable page:
> http://localhost:8080/nflows/wicket/resource/org.apache.wicket.Application/documentResource?id=1

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira