View Issue Details

IDProjectCategoryView StatusLast Update
0026333mantisbtapi soappublic2019-11-11 04:55
ReporterCamille Desmots Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
Product Version2.21.1 
Summary0026333: XML declaration in mantisconnect.wsdl should be UTF-8 or UTF-16
Description

On the first line of the file "https://github.com/mantisbt/mantisbt/blob/master/api/soap/mantisconnect.wsdl" we've got :
<?xml version="1.0" encoding="ISO-8859-1"?>

It should be rather UTF-8 (default encoding) or UTF-16.

TagsNo tags attached.

Activities

dregad

dregad

2019-11-11 04:20

developer   ~0063070

As far as I can tell, the ISO-8559-1 encoding was inherited from legacy use of NuSOAP library, when support for built-in SOAP extension was added back in 2012 (see 0014871).

I have no idea why NuSOAP didn't use UTF-8, and I agree it would make sense to change the encoding in the WSDL file per your suggestion but I'm not sure if there would be any impact. Maybe @rombert will care to comment.

rombert

rombert

2019-11-11 04:55

reporter   ~0063074

Note: I am completely disconnected from SOAP/WSDL these days.

I don't see a problem with moving to UTF-8 encoding though, as all characters supported by ISO-8859-1 should be supported by UTF-8 as well. Theoretically the same stands for UTF-16, but I'm not versed enough in the topic to understand whether we stand to lose or gain something by using UTF-16.

Issue History

Date Modified Username Field Change
2019-11-07 10:51 Camille Desmots New Issue
2019-11-11 04:20 dregad Note Added: 0063070
2019-11-11 04:55 rombert Note Added: 0063074