Closed Bug 784308 Opened 12 years ago Closed 11 years ago

Bugzilla::WebService returns broken XML when comment contains malformed unicode characters

Categories

(Bugzilla :: Bugzilla-General, defect)

3.6.8
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 538946

People

(Reporter: kupiec.w, Unassigned)

Details

Attachments

(1 file)

Attached file malformed_chars.txt
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0
Build ID: 20120310193349

Steps to reproduce:

Type malformed unicode characters into a comment and then try to get Comments withBugzilla::WebService/Bug.comments method.


Actual results:

It returns XML response which is not handled by any XML validator. If you use Bugzilla:REST API for example, you will get:
Aug 21 14:05:43 [ERROR] Caught exception in Bugzilla::API::Controller::Bug->comment "Can't use string ("
not well-formed (invalid token)") as a HASH ref while "strict refs" in use at /lib/Bugzilla/API/Model/Utils.pm line 684."




Expected results:

The XML should be well formated even if comment contains invalid characters, or it should no be possible to type (paste) invalid unicode characters.
Which version of Perl do you have? This problem is not supposed to happen with Perl 5.12 or higher (server side, of course).

Also, do you see the problem with malformed characters only, or with any unicode character (even valid ones)?

This looks like a duplicate of bug 706276 or bug 538946.
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: