tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jochen Kemnade (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TAP5-2456) Make URL generation of ZoneRefresh configurable concerning relative vs. absolute URLs
Date Wed, 08 Apr 2015 06:37:13 GMT

    [ https://issues.apache.org/jira/browse/TAP5-2456?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14484822#comment-14484822
] 

Jochen Kemnade commented on TAP5-2456:
--------------------------------------

[~hlship], I think this should be resolved as "Closed" with a Fix version of "5.4". If I'm
wrong, I'd like to know why.

> Make URL generation of ZoneRefresh configurable concerning relative vs. absolute URLs
> -------------------------------------------------------------------------------------
>
>                 Key: TAP5-2456
>                 URL: https://issues.apache.org/jira/browse/TAP5-2456
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3.8
>            Reporter: Daniel Hiller
>
> *As* ZoneRefresh mixin user
> *I want to* have an optional boolean parameter {{createRelativeURI}}
> *to* be able to make ZoneRefresh generate a relative event link URI
> *Problem*
> When the web application is behind a proxy, i.e. Firefox prevents zone reloads from {{ZoneRefresh}}
mixin because the Javascript-generated URI differs from the proxy URI. 
> *Error message*
> Firefox error message from developer console (Firefox Version 35.0.1 /Ubuntu LTS 14.01):
> {quote}
> Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource
at http://*absolute-non-proxy-uri* . This can be fixed by moving the resource to the same
domain or enabling CORS.
> {quote}
> *Quick fix*
> Use {{link.toURI()}} instead of {{link.toAbsoluteURI()}} in Line 94 of method {{ZoneRefresh.createEventLink()}}
mixin.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message