Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004137 [Quercus] minor always 07-23-10 07:47 07-23-10 07:48
Reporter sblommers View Status public  
Assigned To
Priority normal Resolution open Platform Linux
Status new   OS Ubuntu
Projection none   OS Version 10.04
ETA none Fixed in Version Product Version 4.0.9
  Product Build SVN
Summary 0004137: hash_hmac always returning false
Description Reason: Mac.getInstance always fails because it resolves the sha* to SHA-* which is incorrect (HashModule.java)

  static {
    _algorithmMap.put("md2", "MD2");
    _algorithmMap.put("md5", "MD5");
    _algorithmMap.put("sha1", "SHA");
    _algorithmMap.put("sha256", "SHA-256");
    _algorithmMap.put("sha384", "SHA-384");
    _algorithmMap.put("sha512", "SHA-512");
  }
Steps To Reproduce Run drupal services with APIKEY check on, the hash_mac(sha256 always fails because the context in HashModule won't ever be filled.
Additional Information   static {
    _algorithmMap.put("md2", "MD2");
    _algorithmMap.put("md5", "MD5");
    _algorithmMap.put("sha1", "SHA");
    _algorithmMap.put("sha256", "SHA256");
    _algorithmMap.put("sha384", "SHA384");
    _algorithmMap.put("sha512", "SHA512");
  }

fixed it
Attached Files

- Relationships

- Notes
(0004681)
sblommers
07-23-10 07:48

See http://bitbucket.org/sblommers/resin [^] for patchbranches
 

- Issue History
Date Modified Username Field Change
07-23-10 07:47 sblommers New Issue
07-23-10 07:48 sblommers Note Added: 0004681


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker