incubator-jena-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rob Vesse (Updated) (JIRA)" <>
Subject [jira] [Updated] (JENA-207) FmtUtils.stringForNode() does not escape tab characters
Date Tue, 31 Jan 2012 21:29:58 GMT


Rob Vesse updated JENA-207:

    Attachment: FmtUtilsTabEscaping.patch

Fix for FmtUtils.stringEsc() so that it actually escapes tab characters

Also includes an additional test for SPARQL TSV output which was how I spotted this bug originally
> FmtUtils.stringForNode() does not escape tab characters
> -------------------------------------------------------
>                 Key: JENA-207
>                 URL:
>             Project: Jena
>          Issue Type: Bug
>          Components: ARQ
>    Affects Versions: ARQ 2.9.0
>            Reporter: Rob Vesse
>             Fix For: ARQ 2.9.1
>         Attachments: FmtUtilsTabEscaping.patch
>   Original Estimate: 10m
>  Remaining Estimate: 10m
> FmtUtils.stringForNode() delegates literal formatting to FmtUtils.stringForLiteral()
which delegates string escaping to stringEsc()
> The issue is that the whitespace escaping section has code to deal with escaping tab
characters but has a logical flaw which means tab characters won't hit that code path, the
if statement surrounding the white space escapes section checks for the other kinds of whitespace
characters but not for tab

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message