You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@shindig.apache.org by "Igor Semenko (Created) (JIRA)" <ji...@apache.org> on 2011/10/05 09:17:34 UTC
[jira] [Created] (SHINDIG-1635) Broken javascript after proxy
Broken javascript after proxy
-----------------------------
Key: SHINDIG-1635
URL: https://issues.apache.org/jira/browse/SHINDIG-1635
Project: Shindig
Issue Type: Bug
Components: PHP
Affects Versions: 3.0.0
Reporter: Igor Semenko
Fix For: 3.0.0
I'm using google's gwt-gadgets library in gadget development. Generated javascript may contain construction like this:
{code}
$replace(SQUOT_RE, s, ''')
{code}
When this javascript is going thru proxy, it gets broken
{code}
$replace(SQUOT_RE, s, ''') // 3 apostrophes
{code}
The script is served as "text/javascript" content type.
What helped for me is disabling content modification in php/src/gadgets/MakeRequest.php line 119:
{code}
&& strpos($result->getContentType(), 'javascript') == false) {
{code}
--
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] (SHINDIG-1635) Broken javascript after proxy
Posted by "Ryan Baxter (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SHINDIG-1635?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13471982#comment-13471982 ]
Ryan Baxter commented on SHINDIG-1635:
--------------------------------------
Igor is this only a problem in the PHP version of Shindig?
> Broken javascript after proxy
> -----------------------------
>
> Key: SHINDIG-1635
> URL: https://issues.apache.org/jira/browse/SHINDIG-1635
> Project: Shindig
> Issue Type: Bug
> Components: PHP
> Affects Versions: 2.5.0-beta1
> Reporter: Igor Semenko
> Priority: Critical
> Labels: gwt-gadgets
> Fix For: 2.5.0
>
>
> I'm using google's gwt-gadgets library in gadget development. Generated javascript may contain construction like this:
> {code}
> $replace(SQUOT_RE, s, ''')
> {code}
> When this javascript is going thru proxy, it gets broken
> {code}
> $replace(SQUOT_RE, s, ''') // 3 apostrophes
> {code}
> The script is served as "text/javascript" content type.
> What helped for me is disabling content modification in php/src/gadgets/MakeRequest.php line 119:
> {code}
> && strpos($result->getContentType(), 'javascript') == false) {
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (SHINDIG-1635) Broken javascript after proxy
Posted by "Igor Semenko (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SHINDIG-1635?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Semenko updated SHINDIG-1635:
----------------------------------
Priority: Critical (was: Major)
> Broken javascript after proxy
> -----------------------------
>
> Key: SHINDIG-1635
> URL: https://issues.apache.org/jira/browse/SHINDIG-1635
> Project: Shindig
> Issue Type: Bug
> Components: PHP
> Affects Versions: 3.0.0
> Reporter: Igor Semenko
> Priority: Critical
> Labels: gwt-gadgets
> Fix For: 3.0.0
>
>
> I'm using google's gwt-gadgets library in gadget development. Generated javascript may contain construction like this:
> {code}
> $replace(SQUOT_RE, s, ''')
> {code}
> When this javascript is going thru proxy, it gets broken
> {code}
> $replace(SQUOT_RE, s, ''') // 3 apostrophes
> {code}
> The script is served as "text/javascript" content type.
> What helped for me is disabling content modification in php/src/gadgets/MakeRequest.php line 119:
> {code}
> && strpos($result->getContentType(), 'javascript') == false) {
> {code}
--
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