[xmlsec] exc c14n w/o comments bug
aleksey at aleksey.com
Tue May 11 11:39:40 PDT 2004
Help is always welcome :) I suspect that the problem is caused by
the fact that LibXML2 attribute namespace has a different memory
representation from the namespace declaration. In this particular
case the problem is that attribute namespace *is not* returned in
the list of nodes selected by XPath expression.
The solution is to modify "visible nodes lookup" function to
understand this difference and return true (node is in the nodeser)
for namespace attribute node when the attribute is in the returned
The change is more or less trivial but it requires *very* carefull
testing. My estimates is that change itself would take about an hour
and testing would take another 3-4 hours. And it's more than I have
these days :(
How about the following: I'll try to debug this problem and confirm
my theory from above is correct. Then I prepare a patch and post
it here. If you can help with testing then it would be really great!
xs04.jmdesp at free.fr wrote:
> Quoting Aleksey Sanin <aleksey at aleksey.com>:
>>Yes, you are right it is a bug and with the same roots: the namespace
>>declaration in the element is different from the attribute namespace.
>>I am really sorry that I did not get to this problem. I just have
>>no time left these days. But I have it on my "todo" list and I will
>>look at it as soon as I can.
> Hi, Aleksey.
> I just met that same problem in another context.
> Do you expect that you will be able to look at it within a week, or is it more
> like not until one month from now ?
> Should we consider that this is a "helpwanted" topic and that you would enjoy it
> if someone external tries to find where the problem comes from ?
> I'm afraid that part of the code is quite complex, and it won't be easy for
> anybody but you to find the right solution.
More information about the xmlsec