Code

Opened 6 years ago

Closed 4 years ago

#6955 closed (wontfix)

Unicode XML breaks RelaxNGCompact validator

Reported by: jdunck Owned by: jdunck
Component: Validators Version: master
Severity: Keywords: unicode
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: yes Patch needs improvement: no
Easy pickings: UI/UX:

Description

In Django, the RelaxNGCompact validator writes out the field data to a temp file, then shells out to jing to perform RNG validation on that XML.

It's been broken for unicode data since the unicode branch landed. I guess not that many people use the RelaxNGCompact validator. ;-)

The fix is trivial-- just call smart_str on field data on its way into the file.

I'd provide tests, but I'm sort of overworked at the moment. :-/

Attachments (1)

rng-validator-unicode.diff (545 bytes) - added by jdunck 6 years ago.
Needs a test; just pointing out the problem for now. :-/

Download all attachments as: .zip

Change History (4)

Changed 6 years ago by jdunck

Needs a test; just pointing out the problem for now. :-/

comment:1 Changed 6 years ago by jdunck

  • Owner changed from nobody to jdunck
  • Status changed from new to assigned

comment:2 Changed 6 years ago by telenieko

  • Triage Stage changed from Unreviewed to Accepted

comment:3 Changed 4 years ago by jdunck

  • Resolution set to wontfix
  • Status changed from assigned to closed

At some point after I logged this, the XML validator was removed from trunk. Closing this as wontfix.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.