After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 124245 - xmlsec ignores PI or comment nodes on the root element level
xmlsec ignores PI or comment nodes on the root element level
Status: RESOLVED FIXED
Product: xmlsec
Classification: Other
Component: xmlsec-core
1.2.1
Other Linux
: Normal normal
: ---
Assigned To: Aleksey Sanin
Aleksey Sanin
Depends on:
Blocks:
 
 
Reported: 2003-10-09 21:45 UTC by Aleksey Sanin
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
the template file that demonstrates the problem ("xmlsec1 sign --privkey rsakey.pem --store-references a.tmpl)" (1.23 KB, text/xml)
2003-10-09 21:46 UTC, Aleksey Sanin
  Details
fix (1.82 KB, patch)
2003-10-09 22:25 UTC, Aleksey Sanin
none Details | Review

Description Aleksey Sanin 2003-10-09 21:45:20 UTC
If the documents has PI or comment node on the root element node level:

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="myfile.xsl" ?>
<sales>
  ...
</sales>

then these nodes would be ignored. The bug was first reported by Sanjay Chugh:

http://www.aleksey.com/pipermail/xmlsec/2003/001603.html
Comment 1 Aleksey Sanin 2003-10-09 21:46:51 UTC
Created attachment 20607 [details]
the template file that demonstrates the problem ("xmlsec1 sign --privkey rsakey.pem --store-references a.tmpl)"
Comment 2 Aleksey Sanin 2003-10-09 22:25:38 UTC
Created attachment 20610 [details] [review]
fix
Comment 3 Aleksey Sanin 2003-10-09 23:04:53 UTC
Fixed in the trunk:

Checking in ChangeLog;
/cvs/gnome/xmlsec/ChangeLog,v  <--  ChangeLog
new revision: 1.163; previous revision: 1.162
done
Checking in src/nodeset.c;
/cvs/gnome/xmlsec/src/nodeset.c,v  <--  nodeset.c
new revision: 1.20; previous revision: 1.19
done
Checking in src/transforms.c;
/cvs/gnome/xmlsec/src/transforms.c,v  <--  transforms.c
new revision: 1.87; previous revision: 1.86
done