Closed
Bug 477857
Opened 16 years ago
Closed 9 years ago
digest and hmac without optional encoding argument causes all digests or hmac to fail on page
Categories
(Core Graveyard :: XForms, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: Leigh.Klotz, Unassigned)
References
()
Details
Attachments
(3 files)
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.5) Gecko/2008121622 Ubuntu/8.10 (intrepid) Firefox/3.0.5
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.5) Gecko/2008121622 Ubuntu/8.10 (intrepid) Firefox/3.0.5
Firefox XForms.xpi 0.8.6ff3
XForms 1.1 defines digest(string, string, string?) and hmac(string, string, string, string?).
If the final argument is omitted, all calls to digest and hmac fail.
If an empty string is passed instead, hmac and digest use the default encoding.
I suspect a bad pointer for a missing expected argument which wasn't noticed as optional.
Reproducible: Always
Reporter | ||
Comment 1•16 years ago
|
||
Reporter | ||
Comment 2•16 years ago
|
||
Reporter | ||
Comment 3•16 years ago
|
||
I guess we should document this somewhere, but Mozilla XForms currently doesn't support optional parameters w.r.t. xpath. With the extensible xpath in FF3 we have to provide interface definitions for all of the xpath methods we handle which means no optional parameters. Instead we try to support empty parameters, like empty strings, etc.
We can leave this bug open since it is a bug as far as XForms spec compliance. And if someone wants to drive this, we might be able to figure out how to signal to xpath via interface or some other mechanism that a parameter is optional.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Reporter | ||
Comment 5•16 years ago
|
||
Note that the attached tests are not exactly the ones from the XForms test suite.
The tests insist on case-equivalence for hexadecimal representation, but that's not required. The forthcoming XForms 1.1 test suite will use
translate(digest(...), 'ABC...', 'abc...') in the "hex" tests (but not the base64 ones obviously).
Comment 6•14 years ago
|
||
documentation updated at https://developer.mozilla.org/en/XForms/Mozilla_XForms_Specials
Comment 7•9 years ago
|
||
RIP xforms
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
Assignee | ||
Updated•8 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•