Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
4137 | minor | always | 07-23-10 07:47 | 07-23-10 07:48 | |
|
|||||
Reporter: | sblommers | Platform: | Linux | ||
Assigned To: | OS: | Ubuntu | |||
Priority: | normal | OS Version: | 10.04 | ||
Status: | new | Product Version: | 4.0.9 | ||
Product Build: | SVN | Resolution: | open | ||
Projection: | none | ||||
ETA: | none | Fixed in Version: | |||
|
|||||
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 |
||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|