MantisBT - Open CASCADE
View Issue Details
0031340Open CASCADE[OCCT] OCCT:Application Frameworkpublic2020-01-31 18:182020-12-02 17:12
abv 
bugmaster 
normalminor 
closedfixed 
 
[OCCT] 7.5.0[OCCT] 7.5.0 
bugs/fclasses/bug31340
0031340: Application Framework - LDOM fails to read XML file starting with BOM
If XML file has BOM (Byte Order Mark) in the beginning, LDOM_XmlReader fails to find any XML data inside it, and returns empty document. Sample file is attached
In DRAW:

pload QAcommands
OCC983 DataDict_withBOM.xml

current output:
Document not parsed

expected output:
Document parsed
   RootName = datadictionary
       AttributeName = version
       AttributeValue = 3.0
   ElementName = component
       AttributeName = name
       AttributeValue = Input data

Added test:
bugs fclasses bug31340
No tags attached.
parent of 0031841closed bugmaster Community Coding Rules, LDOM_XmlReader - eliminate new CLang compiler warning -Wtautological-overlap-compare 
child of 0022484closed bugmaster Open CASCADE UNICODE characters support. 
xml DataDict_withBOM.xml (203) 2020-01-31 18:18
https://tracker.dev.opencascade.org/
Issue History
2020-01-31 18:18abvNew Issue
2020-01-31 18:18abvAssigned To => mpv
2020-01-31 18:18abvFile Added: DataDict_withBOM.xml
2020-09-02 13:50gitNote Added: 0093865
2020-09-02 14:20kgvSummaryLDOM fails to read XML file starting with BOM => Application Framework - LDOM fails to read XML file starting with BOM
2020-09-02 20:43mpvNote Added: 0093936
2020-09-02 20:43mpvAssigned Tompv => szy
2020-09-02 20:43mpvStatusnew => resolved
2020-09-02 20:43mpvSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=23307#r23307
2020-09-02 20:44mpvNote Added: 0093937
2020-09-03 14:30szyNote Added: 0093982
2020-09-03 14:30szyAssigned Toszy => bugmaster
2020-09-03 14:30szyStatusresolved => reviewed
2020-09-04 11:22gitNote Added: 0094008
2020-09-04 15:34gitNote Added: 0094015
2020-09-05 12:10bugmasterNote Added: 0094068
2020-09-05 12:10bugmasterStatusreviewed => tested
2020-09-05 12:24bugmasterTest case number => bugs/fclasses/bug31340
2020-09-05 12:25bugmasterChangeset attached => occt master 8f34d47e
2020-09-05 12:25bugmasterStatustested => verified
2020-09-05 12:25bugmasterResolutionopen => fixed
2020-09-05 12:34gitNote Added: 0094074
2020-10-12 17:31kgvRelationship addedparent of 0031841
2020-10-14 12:02kgvRelationship addedrelated to 0005032
2020-10-14 12:02kgvRelationship addedchild of 0022484
2020-12-02 16:22emoFixed in Version => 7.5.0
2020-12-02 17:12emoStatusverified => closed

Notes
(0093865)
git   
2020-09-02 13:50   
Branch CR31340 has been created by mpv.

SHA-1: 77c83920ca1f2b25859a20c98aee857f33fe298c


Detailed log of new commits:

Author: mpv
Date: Wed Sep 2 13:53:07 2020 +0300

    0031340: LDOM fails to read XML file starting with BOM
    
    Added support of BOM (byte order mask) characters at the start of an XML stream or file and provided information about found BOM in LDOMParser.
(0093936)
mpv   
2020-09-02 20:43   
Fixed with possibility to get BOM information from the LDOM parser. Please, review.
(0093937)
mpv   
2020-09-02 20:44   
http://occt-tests/CR31340-master-MPV-OCCT/Debian80-64/diff_summary.html [^]
http://occt-tests/CR31340-master-MPV-Products/Debian80-64/diff_summary.html [^]
http://occt-tests/CR31340-master-MPV-OCCT/Windows-64-VC14/diff_summary.html [^]
http://occt-tests/CR31340-master-MPV-Products/Windows-64-VC14/diff_summary.html [^]
(0093982)
szy   
2020-09-03 14:30   
Reviewed.
(0094008)
git   
2020-09-04 11:22   
Branch CR31340 has been updated by mpv.

SHA-1: 1f0953e17d7129546c27dbcee734c7cab0121fc0


Detailed log of new commits:

Author: mpv
Date: Fri Sep 4 11:25:24 2020 +0300

    # fix for the VS !=141 compilation

(0094015)
git   
2020-09-04 15:34   
Branch CR31340 has been updated by mpv.

SHA-1: 66a65fd62da06af4cc08b4c102e68490dfc7779c


Detailed log of new commits:

Author: mpv
Date: Fri Sep 4 15:36:43 2020 +0300

    # removed warnings of compilation for Android

(0094068)
bugmaster   
2020-09-05 12:10   
Combination -
OCCT branch : IR-2020-09-04
master SHA - a516227511f3452f9f55b79c961265b0bf210793
a206de37fbfa0bf71bd534ae47192bbec23b8522
Products branch : IR-2020-09-04 SHA - 134448d280fb82bfb14ffc6255ac1cb53f7fd1cf
was compiled on Linux, MacOS and Windows platforms and tested in optimize mode.

Number of compiler warnings:
No new/fixed warnings

Regressions/Differences/Improvements:
No regressions/differences

CPU differences:
Debian80-64:
OCCT
Total CPU difference: 17319.18000000012 / 17284.370000000214 [+0.20%]
Products
Total CPU difference: 12059.670000000087 / 12007.590000000067 [+0.43%]
Windows-64-VC14:
OCCT
Total CPU difference: 18776.390625 / 18770.796875 [+0.03%]
Products
Total CPU difference: 13251.640625 / 13222.90625 [+0.22%]


Image differences :
No differences that require special attention

Memory differences :
No differences that require special attention
(0094074)
git   
2020-09-05 12:34   
Branch CR31340 has been deleted by inv.

SHA-1: 66a65fd62da06af4cc08b4c102e68490dfc7779c