Ticket #6610 (closed defect: fixed)

Opened 7 months ago

Last modified 4 months ago

destId parameter error on Mozilla Firefox while Storing encrypted data with Google Gears using dojox.sql.ENCRYPT

Reported by: guest Owned by: ttrenka
Priority: normal Milestone: 1.2
Component: Dojox Version: 1.0
Severity: normal Keywords:
Cc:

Description

I have Google Gears installed on my machine and trying to store data locally using dojox.sql.ENCRYPT.

I have created CUSTOMERS table and trying to insert data in encrypted format using dojox.sql as follows

var password = "foobar";

dojox.sql("INSERT INTO CUSTOMERS VALUES (?, ?, ENCRYPT(?))", "Neuberg", "Brad", "555-34-8962", password, function(results, error, errorMsg){ if(error){ alert(errorMsg); return; } });

I am using dojo 1.0 version and above code always throws error in Mozilla Firefox as follows

"SQL Exception: The destId parameter must be an int."

However above same code runs without any Issues in IE.

If I modify dojox\_sql\_crypto.js with following change then above error message goes away in Mozilla Firefox

//Existing Code

this._manager.sendMessage(msg, workerID);

//New Change

this._manager.sendMessage(msg, parseInt(workerID));

Following are details of various versions on my computer

dojo :1.0 version

Google Gears :0.3.14.0 version

Mozilla Firefox:2.0.0.14 version

Internet Explorer: 7.0.5730.13

Change History

Changed 7 months ago by peller

  • owner changed from peller to ttrenka

Changed 7 months ago by ttrenka

  • status changed from new to closed
  • resolution set to fixed

(In [13648]) Fixes #6610. !strict.

Changed 4 months ago by bill

  • milestone set to 1.2

marking tickets closed in the last three months w/blank milestone to milestone 1.2.

Note: See TracTickets for help on using tickets.