You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Stefano Bagnara (JIRA)" <se...@james.apache.org> on 2009/09/21 23:49:17 UTC

[jira] Created: (JSPF-84) Incorrect "escaping" of TXT records content

Incorrect "escaping" of TXT records content
-------------------------------------------

                 Key: JSPF-84
                 URL: https://issues.apache.org/jira/browse/JSPF-84
             Project: JAMES jSPF
          Issue Type: Bug
          Components: Core
    Affects Versions: 0.9.7
            Reporter: Stefano Bagnara
            Priority: Minor
             Fix For: 0.9.8


DNSServiceXBillImpl uses dnsjava txt.getStrings() method to retrieve strings from a TXT records.
Unfortunately txt.getStrings() internally "convert" bytes to a representation format that format strings escaping them from double quotes.
In this case we don't need the escaped strings, so we'll have to better use txt.getStringsAsByteArrays and convert them to string the way we need it.

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


[jira] Assigned: (JSPF-84) Incorrect "escaping" of TXT records content

Posted by "Stefano Bagnara (JIRA)" <se...@james.apache.org>.
     [ https://issues.apache.org/jira/browse/JSPF-84?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefano Bagnara reassigned JSPF-84:
-----------------------------------

    Assignee: Stefano Bagnara

> Incorrect "escaping" of TXT records content
> -------------------------------------------
>
>                 Key: JSPF-84
>                 URL: https://issues.apache.org/jira/browse/JSPF-84
>             Project: JAMES jSPF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.9.7
>            Reporter: Stefano Bagnara
>            Assignee: Stefano Bagnara
>            Priority: Minor
>             Fix For: 0.9.8
>
>
> DNSServiceXBillImpl uses dnsjava txt.getStrings() method to retrieve strings from a TXT records.
> Unfortunately txt.getStrings() internally "convert" bytes to a representation format that format strings escaping them from double quotes.
> In this case we don't need the escaped strings, so we'll have to better use txt.getStringsAsByteArrays and convert them to string the way we need it.

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


[jira] Commented: (JSPF-84) Incorrect "escaping" of TXT records content

Posted by "Stefano Bagnara (JIRA)" <se...@james.apache.org>.
    [ https://issues.apache.org/jira/browse/JSPF-84?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12763543#action_12763543 ] 

Stefano Bagnara commented on JSPF-84:
-------------------------------------

>From dnsjava changelog it seems this was a bug in dnsjava <=2.0.6 and that we'll have to simply upgrade to 2.0.7.

> Incorrect "escaping" of TXT records content
> -------------------------------------------
>
>                 Key: JSPF-84
>                 URL: https://issues.apache.org/jira/browse/JSPF-84
>             Project: JAMES jSPF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.9.7
>            Reporter: Stefano Bagnara
>            Assignee: Stefano Bagnara
>            Priority: Minor
>             Fix For: 0.9.8
>
>
> DNSServiceXBillImpl uses dnsjava txt.getStrings() method to retrieve strings from a TXT records.
> Unfortunately txt.getStrings() internally "convert" bytes to a representation format that format strings escaping them from double quotes.
> In this case we don't need the escaped strings, so we'll have to better use txt.getStringsAsByteArrays and convert them to string the way we need it.

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


[jira] Resolved: (JSPF-84) Incorrect "escaping" of TXT records content

Posted by "Stefano Bagnara (JIRA)" <se...@james.apache.org>.
     [ https://issues.apache.org/jira/browse/JSPF-84?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefano Bagnara resolved JSPF-84.
---------------------------------

    Resolution: Fixed

I think this is resolved by upgrading dnsjava to 2.0.8 (resolved in dnsjava 2.0.7)

> Incorrect "escaping" of TXT records content
> -------------------------------------------
>
>                 Key: JSPF-84
>                 URL: https://issues.apache.org/jira/browse/JSPF-84
>             Project: JAMES jSPF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.9.7
>            Reporter: Stefano Bagnara
>            Assignee: Stefano Bagnara
>            Priority: Minor
>             Fix For: 0.9.8
>
>
> DNSServiceXBillImpl uses dnsjava txt.getStrings() method to retrieve strings from a TXT records.
> Unfortunately txt.getStrings() internally "convert" bytes to a representation format that format strings escaping them from double quotes.
> In this case we don't need the escaped strings, so we'll have to better use txt.getStringsAsByteArrays and convert them to string the way we need it.

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