Ticket #6346 (new defect)

Opened 8 months ago

Last modified 2 weeks ago

Tree DnD: drop twice the same object results in obscure error message.

Reported by: guest Owned by: bill
Priority: normal Milestone: 1.5
Component: Dijit Version: 0.9
Severity: normal Keywords: Tree Dnd
Cc:

Description

With Firefox, an exception occurs when you're trying to drop twice the same object in the same tree.

Exception: [Exception... "'Error: assertion failed in ItemFileWriteStore?' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "<unknown>" data: no]

Attachments

TreeDnd.JPG (98.7 kB) - added by guest 8 months ago.

Change History

Changed 8 months ago by guest

Changed 8 months ago by elazutkin

  • owner changed from elazutkin to bill

Changed 8 months ago by elazutkin

  • component changed from DnD to Dijit

Changed 8 months ago by bill

  • summary changed from Tree DnD: drop twice the same object to Tree DnD: drop twice the same object results in obscure error message.

That's correct, an exception occurs since you can't add the same item to a store twice. Not sure how to fix this or even what the UI should be to inform the user of their error, but will look into it. Perhaps the drag icon would be red to begin with (maybe checkAcceptance() should check if the item already exists), although that doesn't really tell the user what the problem is.

Changed 7 months ago by bill

  • milestone set to 1.3

Changed 2 weeks ago by bill

  • priority changed from high to normal
  • version set to 0.9
  • severity changed from major to normal
  • milestone changed from 1.3 to 1.5

For now the application has to work around this... as I said above you can problem catch it w/a custom version of checkAcceptance().

Note: See TracTickets for help on using tickets.