You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Kasun Indrasiri (JIRA)" <ji...@apache.org> on 2010/04/21 17:53:49 UTC

[jira] Created: (SYNAPSE-624) Some characters of Local text entries with lengthy strings are lost after the serialization

Some characters of Local text entries with lengthy strings are lost after the serialization 
--------------------------------------------------------------------------------------------

                 Key: SYNAPSE-624
                 URL: https://issues.apache.org/jira/browse/SYNAPSE-624
             Project: Synapse
          Issue Type: Bug
          Components: Core
            Reporter: Kasun Indrasiri


When we use a local text entry with a lengthy string (500+ characters), then some portion of the entry is truncated. 

-- 
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@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


[jira] Commented: (SYNAPSE-624) Some characters of Local text entries with lengthy strings are lost after the serialization

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SYNAPSE-624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12863008#action_12863008 ] 

Andreas Veithen commented on SYNAPSE-624:
-----------------------------------------

Please note that there have been requests to make Synapse preserve CDATA sections (see SYNAPSE-280). Therefore we should try to make sure that the code actually continues to work in non coalescing mode. Did you replace the usage of OMText#getText by OMElement#getText()?

> Some characters of Local text entries with lengthy strings are lost after the serialization 
> --------------------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-624
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-624
>             Project: Synapse
>          Issue Type: Bug
>          Components: Core
>            Reporter: Kasun Indrasiri
>            Assignee: Hiranya Jayathilaka
>             Fix For: 2.0
>
>         Attachments: SYNAPSE-624.patch
>
>
> When we use a local text entry with a lengthy string (500+ characters), then some portion of the entry is truncated. 

-- 
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@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


[jira] Commented: (SYNAPSE-624) Some characters of Local text entries with lengthy strings are lost after the serialization

Posted by "Kasun Indrasiri (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SYNAPSE-624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12862577#action_12862577 ] 

Kasun Indrasiri commented on SYNAPSE-624:
-----------------------------------------

I've attached the patch which resolves this issue. Please review and apply.

> Some characters of Local text entries with lengthy strings are lost after the serialization 
> --------------------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-624
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-624
>             Project: Synapse
>          Issue Type: Bug
>          Components: Core
>            Reporter: Kasun Indrasiri
>         Attachments: SYNAPSE-624.patch
>
>
> When we use a local text entry with a lengthy string (500+ characters), then some portion of the entry is truncated. 

-- 
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@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


[jira] Assigned: (SYNAPSE-624) Some characters of Local text entries with lengthy strings are lost after the serialization

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

Hiranya Jayathilaka reassigned SYNAPSE-624:
-------------------------------------------

    Assignee: Hiranya Jayathilaka

> Some characters of Local text entries with lengthy strings are lost after the serialization 
> --------------------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-624
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-624
>             Project: Synapse
>          Issue Type: Bug
>          Components: Core
>            Reporter: Kasun Indrasiri
>            Assignee: Hiranya Jayathilaka
>         Attachments: SYNAPSE-624.patch
>
>
> When we use a local text entry with a lengthy string (500+ characters), then some portion of the entry is truncated. 

-- 
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@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


[jira] Reopened: (SYNAPSE-624) Some characters of Local text entries with lengthy strings are lost after the serialization

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

Hiranya Jayathilaka reopened SYNAPSE-624:
-----------------------------------------


> Some characters of Local text entries with lengthy strings are lost after the serialization 
> --------------------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-624
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-624
>             Project: Synapse
>          Issue Type: Bug
>          Components: Core
>            Reporter: Kasun Indrasiri
>            Assignee: Hiranya Jayathilaka
>             Fix For: 2.0
>
>         Attachments: SYNAPSE-624.patch
>
>
> When we use a local text entry with a lengthy string (500+ characters), then some portion of the entry is truncated. 

-- 
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@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


[jira] Commented: (SYNAPSE-624) Some characters of Local text entries with lengthy strings are lost after the serialization

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SYNAPSE-624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12863001#action_12863001 ] 

Hiranya Jayathilaka commented on SYNAPSE-624:
---------------------------------------------

Having looked into this issue, I have realized that the existing logic in Synapse is actually correct. The problem reported here occurs only in the non-coalescing mode, which we are not using in Synapse.

> Some characters of Local text entries with lengthy strings are lost after the serialization 
> --------------------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-624
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-624
>             Project: Synapse
>          Issue Type: Bug
>          Components: Core
>            Reporter: Kasun Indrasiri
>            Assignee: Hiranya Jayathilaka
>         Attachments: SYNAPSE-624.patch
>
>
> When we use a local text entry with a lengthy string (500+ characters), then some portion of the entry is truncated. 

-- 
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@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


[jira] Commented: (SYNAPSE-624) Some characters of Local text entries with lengthy strings are lost after the serialization

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SYNAPSE-624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12862601#action_12862601 ] 

Hiranya Jayathilaka commented on SYNAPSE-624:
---------------------------------------------

I just checked in a new test case which can be used to reproduce this scenario. See the LocalEntryConfigurationTest#testLargeTextEntry. I have left this method commented out for the moment since it is failing.

> Some characters of Local text entries with lengthy strings are lost after the serialization 
> --------------------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-624
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-624
>             Project: Synapse
>          Issue Type: Bug
>          Components: Core
>            Reporter: Kasun Indrasiri
>            Assignee: Hiranya Jayathilaka
>         Attachments: SYNAPSE-624.patch
>
>
> When we use a local text entry with a lengthy string (500+ characters), then some portion of the entry is truncated. 

-- 
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@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


[jira] Updated: (SYNAPSE-624) Some characters of Local text entries with lengthy strings are lost after the serialization

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

Kasun Indrasiri updated SYNAPSE-624:
------------------------------------

    Attachment: SYNAPSE-624.patch

Attaching the fix.

> Some characters of Local text entries with lengthy strings are lost after the serialization 
> --------------------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-624
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-624
>             Project: Synapse
>          Issue Type: Bug
>          Components: Core
>            Reporter: Kasun Indrasiri
>         Attachments: SYNAPSE-624.patch
>
>
> When we use a local text entry with a lengthy string (500+ characters), then some portion of the entry is truncated. 

-- 
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@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


[jira] Commented: (SYNAPSE-624) Some characters of Local text entries with lengthy strings are lost after the serialization

Posted by "Kasun Indrasiri (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SYNAPSE-624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12862608#action_12862608 ] 

Kasun Indrasiri commented on SYNAPSE-624:
-----------------------------------------

Hi Hiranya,

I think we have used non-coalescing ("javax.xml.stream.isCoalescing", false) parsing in axiom(to preserve CDATA sections) and manged to reproduce this with only (javax.xml.stream.isCoalescing" = false), otherwise it works fine for text entries with 500+ character lengths.

thanks,
Kasun

> Some characters of Local text entries with lengthy strings are lost after the serialization 
> --------------------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-624
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-624
>             Project: Synapse
>          Issue Type: Bug
>          Components: Core
>            Reporter: Kasun Indrasiri
>            Assignee: Hiranya Jayathilaka
>         Attachments: SYNAPSE-624.patch
>
>
> When we use a local text entry with a lengthy string (500+ characters), then some portion of the entry is truncated. 

-- 
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@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


[jira] Commented: (SYNAPSE-624) Some characters of Local text entries with lengthy strings are lost after the serialization

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SYNAPSE-624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12862597#action_12862597 ] 

Hiranya Jayathilaka commented on SYNAPSE-624:
---------------------------------------------

Andreas,

Any idea why this is happening? When parsing large texts using AXIOM, it breaks them down to 500 character chunks. Therefore one CDATA element can get translated into multiple CDATA elements. The EntryFactory gets content from only the first CDATA element in such cases. Text in other CDATA elements are lost!

Thanks,
Hiranya

> Some characters of Local text entries with lengthy strings are lost after the serialization 
> --------------------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-624
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-624
>             Project: Synapse
>          Issue Type: Bug
>          Components: Core
>            Reporter: Kasun Indrasiri
>            Assignee: Hiranya Jayathilaka
>         Attachments: SYNAPSE-624.patch
>
>
> When we use a local text entry with a lengthy string (500+ characters), then some portion of the entry is truncated. 

-- 
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@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


[jira] Resolved: (SYNAPSE-624) Some characters of Local text entries with lengthy strings are lost after the serialization

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

Hiranya Jayathilaka resolved SYNAPSE-624.
-----------------------------------------

    Fix Version/s: 2.0
       Resolution: Not A Problem

> Some characters of Local text entries with lengthy strings are lost after the serialization 
> --------------------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-624
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-624
>             Project: Synapse
>          Issue Type: Bug
>          Components: Core
>            Reporter: Kasun Indrasiri
>            Assignee: Hiranya Jayathilaka
>             Fix For: 2.0
>
>         Attachments: SYNAPSE-624.patch
>
>
> When we use a local text entry with a lengthy string (500+ characters), then some portion of the entry is truncated. 

-- 
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@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


[jira] Commented: (SYNAPSE-624) Some characters of Local text entries with lengthy strings are lost after the serialization

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SYNAPSE-624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12862617#action_12862617 ] 

Hiranya Jayathilaka commented on SYNAPSE-624:
---------------------------------------------

Hi Kasun,

OK, so in that case this problem cannot occur in Synapse. I turned off coalescing for my test case because I wanted to test the serialization stuff. Entry serializer adds CDATA elements to the serialized local entry configurations even if the source XML does not have any CDATA. However this points out the possibility of a different bug. What if a local entry contains some CDATA elements in the content? Synapse will simply ignore them because we have coalescing enabled by default.

Thanks,
Hiranya

> Some characters of Local text entries with lengthy strings are lost after the serialization 
> --------------------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-624
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-624
>             Project: Synapse
>          Issue Type: Bug
>          Components: Core
>            Reporter: Kasun Indrasiri
>            Assignee: Hiranya Jayathilaka
>         Attachments: SYNAPSE-624.patch
>
>
> When we use a local text entry with a lengthy string (500+ characters), then some portion of the entry is truncated. 

-- 
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@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


[jira] Resolved: (SYNAPSE-624) Some characters of Local text entries with lengthy strings are lost after the serialization

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

Hiranya Jayathilaka resolved SYNAPSE-624.
-----------------------------------------

    Resolution: Fixed

Checked in the patch. Thanks Andreas and Kasun for the contributions.

> Some characters of Local text entries with lengthy strings are lost after the serialization 
> --------------------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-624
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-624
>             Project: Synapse
>          Issue Type: Bug
>          Components: Core
>            Reporter: Kasun Indrasiri
>            Assignee: Hiranya Jayathilaka
>             Fix For: 2.0
>
>         Attachments: SYNAPSE-624.patch
>
>
> When we use a local text entry with a lengthy string (500+ characters), then some portion of the entry is truncated. 

-- 
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@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org