You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@shindig.apache.org by "Chirag Shah (JIRA)" <ji...@apache.org> on 2010/02/23 00:32:28 UTC

[jira] Created: (SHINDIG-1293) Issue taming gadgets.io.encodeValues

Issue taming gadgets.io.encodeValues
------------------------------------

                 Key: SHINDIG-1293
                 URL: https://issues.apache.org/jira/browse/SHINDIG-1293
             Project: Shindig
          Issue Type: Bug
            Reporter: Chirag Shah
             Fix For: 1.1-BETA6


gadgets.io.encodeValues appends the following string to its response: "FROZEN___=%5Bobject%20Object%5D&TAMED_TWIN___=%5Bobject%20Object%5D"

Here's a sample application that exhibits this behavior:
<?xml version="1.0" encoding="UTF-8"?>
<Module>
 <ModulePrefs title="test">
 <Require feature="caja"/>
 </ModulePrefs>
 <Content type="html">
<![CDATA[
<div id="test"></div>
<script>
    var postdata = {};
    postdata = gadgets.io.encodeValues(postdata);
    document.getElementById('test').innerHTML = postdata;
</script>  
]]>
  </Content>
</Module>


We're seeing this in the latest version of Shindig.
Here is the cajoler information:
      'cajolerName': 'com.google.caja',
      'cajolerVersion': '3948:3950',
      'cajoledDate': 1264020785928


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


[jira] Updated: (SHINDIG-1293) Issue taming gadgets.io.encodeValues

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

Chirag Shah updated SHINDIG-1293:
---------------------------------

    Attachment: SHINDIG-1293.patch.diff

Here's a patch that fixes this issue.

> Issue taming gadgets.io.encodeValues
> ------------------------------------
>
>                 Key: SHINDIG-1293
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-1293
>             Project: Shindig
>          Issue Type: Bug
>            Reporter: Chirag Shah
>             Fix For: 1.1-BETA6
>
>         Attachments: SHINDIG-1293.patch.diff
>
>
> gadgets.io.encodeValues appends the following string to its response: "FROZEN___=%5Bobject%20Object%5D&TAMED_TWIN___=%5Bobject%20Object%5D"
> Here's a sample application that exhibits this behavior:
> <?xml version="1.0" encoding="UTF-8"?>
> <Module>
>  <ModulePrefs title="test">
>  <Require feature="caja"/>
>  </ModulePrefs>
>  <Content type="html">
> <![CDATA[
> <div id="test"></div>
> <script>
>     var postdata = {};
>     postdata = gadgets.io.encodeValues(postdata);
>     document.getElementById('test').innerHTML = postdata;
> </script>  
> ]]>
>   </Content>
> </Module>
> We're seeing this in the latest version of Shindig.
> Here is the cajoler information:
>       'cajolerName': 'com.google.caja',
>       'cajolerVersion': '3948:3950',
>       'cajoledDate': 1264020785928

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


[jira] Commented: (SHINDIG-1293) Issue taming gadgets.io.encodeValues

Posted by "Chirag Shah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SHINDIG-1293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12842322#action_12842322 ] 

Chirag Shah commented on SHINDIG-1293:
--------------------------------------

Could I apply this patch in as an interim solution?

> Issue taming gadgets.io.encodeValues
> ------------------------------------
>
>                 Key: SHINDIG-1293
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-1293
>             Project: Shindig
>          Issue Type: Bug
>            Reporter: Chirag Shah
>             Fix For: 1.1-BETA6
>
>         Attachments: SHINDIG-1293.patch.diff
>
>
> gadgets.io.encodeValues appends the following string to its response: "FROZEN___=%5Bobject%20Object%5D&TAMED_TWIN___=%5Bobject%20Object%5D"
> Here's a sample application that exhibits this behavior:
> <?xml version="1.0" encoding="UTF-8"?>
> <Module>
>  <ModulePrefs title="test">
>  <Require feature="caja"/>
>  </ModulePrefs>
>  <Content type="html">
> <![CDATA[
> <div id="test"></div>
> <script>
>     var postdata = {};
>     postdata = gadgets.io.encodeValues(postdata);
>     document.getElementById('test').innerHTML = postdata;
> </script>  
> ]]>
>   </Content>
> </Module>
> We're seeing this in the latest version of Shindig.
> Here is the cajoler information:
>       'cajolerName': 'com.google.caja',
>       'cajolerVersion': '3948:3950',
>       'cajoledDate': 1264020785928

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


[jira] Commented: (SHINDIG-1293) Issue taming gadgets.io.encodeValues

Posted by "Paul Lindner (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SHINDIG-1293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12837798#action_12837798 ] 

Paul Lindner commented on SHINDIG-1293:
---------------------------------------

Jasvir, thoughts on this one?


> Issue taming gadgets.io.encodeValues
> ------------------------------------
>
>                 Key: SHINDIG-1293
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-1293
>             Project: Shindig
>          Issue Type: Bug
>            Reporter: Chirag Shah
>             Fix For: 1.1-BETA6
>
>         Attachments: SHINDIG-1293.patch.diff
>
>
> gadgets.io.encodeValues appends the following string to its response: "FROZEN___=%5Bobject%20Object%5D&TAMED_TWIN___=%5Bobject%20Object%5D"
> Here's a sample application that exhibits this behavior:
> <?xml version="1.0" encoding="UTF-8"?>
> <Module>
>  <ModulePrefs title="test">
>  <Require feature="caja"/>
>  </ModulePrefs>
>  <Content type="html">
> <![CDATA[
> <div id="test"></div>
> <script>
>     var postdata = {};
>     postdata = gadgets.io.encodeValues(postdata);
>     document.getElementById('test').innerHTML = postdata;
> </script>  
> ]]>
>   </Content>
> </Module>
> We're seeing this in the latest version of Shindig.
> Here is the cajoler information:
>       'cajolerName': 'com.google.caja',
>       'cajolerVersion': '3948:3950',
>       'cajoledDate': 1264020785928

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


[jira] Resolved: (SHINDIG-1293) Issue taming gadgets.io.encodeValues

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

Chirag Shah resolved SHINDIG-1293.
----------------------------------

    Resolution: Fixed

> Issue taming gadgets.io.encodeValues
> ------------------------------------
>
>                 Key: SHINDIG-1293
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-1293
>             Project: Shindig
>          Issue Type: Bug
>            Reporter: Chirag Shah
>             Fix For: 1.1-BETA6
>
>         Attachments: SHINDIG-1293.patch.diff
>
>
> gadgets.io.encodeValues appends the following string to its response: "FROZEN___=%5Bobject%20Object%5D&TAMED_TWIN___=%5Bobject%20Object%5D"
> Here's a sample application that exhibits this behavior:
> <?xml version="1.0" encoding="UTF-8"?>
> <Module>
>  <ModulePrefs title="test">
>  <Require feature="caja"/>
>  </ModulePrefs>
>  <Content type="html">
> <![CDATA[
> <div id="test"></div>
> <script>
>     var postdata = {};
>     postdata = gadgets.io.encodeValues(postdata);
>     document.getElementById('test').innerHTML = postdata;
> </script>  
> ]]>
>   </Content>
> </Module>
> We're seeing this in the latest version of Shindig.
> Here is the cajoler information:
>       'cajolerName': 'com.google.caja',
>       'cajolerVersion': '3948:3950',
>       'cajoledDate': 1264020785928

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

        

[jira] Commented: (SHINDIG-1293) Issue taming gadgets.io.encodeValues

Posted by "Jasvir Nagra (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SHINDIG-1293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12837944#action_12837944 ] 

Jasvir Nagra commented on SHINDIG-1293:
---------------------------------------

If someone can point me at where in Shindig features get concatenated and minified, I'd be happy to produce a more general patch that applies the innocent code transformer on all such for..in loops.

> Issue taming gadgets.io.encodeValues
> ------------------------------------
>
>                 Key: SHINDIG-1293
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-1293
>             Project: Shindig
>          Issue Type: Bug
>            Reporter: Chirag Shah
>             Fix For: 1.1-BETA6
>
>         Attachments: SHINDIG-1293.patch.diff
>
>
> gadgets.io.encodeValues appends the following string to its response: "FROZEN___=%5Bobject%20Object%5D&TAMED_TWIN___=%5Bobject%20Object%5D"
> Here's a sample application that exhibits this behavior:
> <?xml version="1.0" encoding="UTF-8"?>
> <Module>
>  <ModulePrefs title="test">
>  <Require feature="caja"/>
>  </ModulePrefs>
>  <Content type="html">
> <![CDATA[
> <div id="test"></div>
> <script>
>     var postdata = {};
>     postdata = gadgets.io.encodeValues(postdata);
>     document.getElementById('test').innerHTML = postdata;
> </script>  
> ]]>
>   </Content>
> </Module>
> We're seeing this in the latest version of Shindig.
> Here is the cajoler information:
>       'cajolerName': 'com.google.caja',
>       'cajolerVersion': '3948:3950',
>       'cajoledDate': 1264020785928

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


[jira] Commented: (SHINDIG-1293) Issue taming gadgets.io.encodeValues

Posted by "Jasvir Nagra (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SHINDIG-1293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12842347#action_12842347 ] 

Jasvir Nagra commented on SHINDIG-1293:
---------------------------------------

LGTM

> Issue taming gadgets.io.encodeValues
> ------------------------------------
>
>                 Key: SHINDIG-1293
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-1293
>             Project: Shindig
>          Issue Type: Bug
>            Reporter: Chirag Shah
>             Fix For: 1.1-BETA6
>
>         Attachments: SHINDIG-1293.patch.diff
>
>
> gadgets.io.encodeValues appends the following string to its response: "FROZEN___=%5Bobject%20Object%5D&TAMED_TWIN___=%5Bobject%20Object%5D"
> Here's a sample application that exhibits this behavior:
> <?xml version="1.0" encoding="UTF-8"?>
> <Module>
>  <ModulePrefs title="test">
>  <Require feature="caja"/>
>  </ModulePrefs>
>  <Content type="html">
> <![CDATA[
> <div id="test"></div>
> <script>
>     var postdata = {};
>     postdata = gadgets.io.encodeValues(postdata);
>     document.getElementById('test').innerHTML = postdata;
> </script>  
> ]]>
>   </Content>
> </Module>
> We're seeing this in the latest version of Shindig.
> Here is the cajoler information:
>       'cajolerName': 'com.google.caja',
>       'cajolerVersion': '3948:3950',
>       'cajoledDate': 1264020785928

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


[jira] Commented: (SHINDIG-1293) Issue taming gadgets.io.encodeValues

Posted by "Paul Lindner (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SHINDIG-1293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12855809#action_12855809 ] 

Paul Lindner commented on SHINDIG-1293:
---------------------------------------

can this be marked resolved now that the code has been committed?


> Issue taming gadgets.io.encodeValues
> ------------------------------------
>
>                 Key: SHINDIG-1293
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-1293
>             Project: Shindig
>          Issue Type: Bug
>            Reporter: Chirag Shah
>             Fix For: 1.1-BETA6
>
>         Attachments: SHINDIG-1293.patch.diff
>
>
> gadgets.io.encodeValues appends the following string to its response: "FROZEN___=%5Bobject%20Object%5D&TAMED_TWIN___=%5Bobject%20Object%5D"
> Here's a sample application that exhibits this behavior:
> <?xml version="1.0" encoding="UTF-8"?>
> <Module>
>  <ModulePrefs title="test">
>  <Require feature="caja"/>
>  </ModulePrefs>
>  <Content type="html">
> <![CDATA[
> <div id="test"></div>
> <script>
>     var postdata = {};
>     postdata = gadgets.io.encodeValues(postdata);
>     document.getElementById('test').innerHTML = postdata;
> </script>  
> ]]>
>   </Content>
> </Module>
> We're seeing this in the latest version of Shindig.
> Here is the cajoler information:
>       'cajolerName': 'com.google.caja',
>       'cajolerVersion': '3948:3950',
>       'cajoledDate': 1264020785928

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

        

[jira] Commented: (SHINDIG-1293) Issue taming gadgets.io.encodeValues

Posted by "Chirag Shah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SHINDIG-1293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12837949#action_12837949 ] 

Chirag Shah commented on SHINDIG-1293:
--------------------------------------

Shindig features get minified at build time by yuicompressor-maven-plugin.

At runtime, features are either
- Inlined and concatenated by RenderingGadgetRewriter (look for inlineResources)
- Externalized and served by JsServlet.  

> Issue taming gadgets.io.encodeValues
> ------------------------------------
>
>                 Key: SHINDIG-1293
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-1293
>             Project: Shindig
>          Issue Type: Bug
>            Reporter: Chirag Shah
>             Fix For: 1.1-BETA6
>
>         Attachments: SHINDIG-1293.patch.diff
>
>
> gadgets.io.encodeValues appends the following string to its response: "FROZEN___=%5Bobject%20Object%5D&TAMED_TWIN___=%5Bobject%20Object%5D"
> Here's a sample application that exhibits this behavior:
> <?xml version="1.0" encoding="UTF-8"?>
> <Module>
>  <ModulePrefs title="test">
>  <Require feature="caja"/>
>  </ModulePrefs>
>  <Content type="html">
> <![CDATA[
> <div id="test"></div>
> <script>
>     var postdata = {};
>     postdata = gadgets.io.encodeValues(postdata);
>     document.getElementById('test').innerHTML = postdata;
> </script>  
> ]]>
>   </Content>
> </Module>
> We're seeing this in the latest version of Shindig.
> Here is the cajoler information:
>       'cajolerName': 'com.google.caja',
>       'cajolerVersion': '3948:3950',
>       'cajoledDate': 1264020785928

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