Closed (fixed)
Project:
WYSIWYG image upload - Inline images for your WYSIWYG
Version:
6.x-2.8
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Dec 2010 at 12:33 UTC
Updated:
16 Dec 2010 at 00:24 UTC
Jump to comment: Most recent file
Comments
Comment #1
miro_dietikerAfter some more testing:
Reusing an image leads in current version always to reusing the same iid. Thus settings get overwritten.
Tested with wui.make for nodes and comments.
Note that the table wysiwyg_imageupload_entity contains broken lines after each insert. (See attachment)
The first broken lines comes from a second image use in the node, while the second broken line comes from a third image use in the node's comment comment.
This breaks wysiwyg_imageupload critical in my understanding.
Comment #2
miro_dietikerHmm...
While debugging i found some related issues.
I see that even if we trivially fix the above:
When using an iid in the markup that is from a different node/comment (by manually inserting tags), you
- can load the data in the dialog from a different (possibly inaccessible) node
- the line gets updated with the current comment id (even if it was a node before!)
Thus save should be limited to the current node / entity as detected. Foreign elements should be suppressed.
Check in case of node entity for cid=0.
If we correct the above right this will go away.
Comment #3
eugenmayer commentedThanks for the debugging Miro and the help. Merged your fix https://github.com/EugenMayer/wysiwyg_imageupload/commit/ade918c2347045b...
Comment #4
eugenmayer commentedComment #5
miro_dietikerEugen, what can we do regarding my additional comments?
New issues to open?
Comment #6
eugenmayer commentedYou mean for the ghost-lines?
I think we should keep this issue for the "reuse issue". The other might be related ( even should, because there is a ghost line created when you look a the bug... and the relation is never attached. So one ghost line should be gone, are there even more?)
If you test it, seperate the tests by node and comments. I tested the node behavior pretty much, but comments rather only some major tests. Maybe some unseen issues still hide there.
Comment #7
eugenmayer commentedAs we talked about, (that) issue is closed :)
Comment #8
eugenmayer commentedreleased with 2.9