[opensource-dev] Review Request: STORM-1017: Attachments may loose their associated inventory item UUID

Vadim ProductEngine vsavchuk at productengine.com
Tue Jul 12 11:15:20 PDT 2011


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://codereview.secondlife.com/r/161/
-----------------------------------------------------------

(Updated July 12, 2011, 11:15 a.m.)


Review request for Viewer.


Summary (updated)
-------

Current flow:
1) object->extractAttachmentItemID()
2) "same object reattached" condition evaluates true => removeObject calls object->setAttachmentItemID(LLUUID::null)
3) the remainder of addObject() executes but the object's mAttachmentItemID is now "LLUUID::null"

Reversing the order of (1) and (2) should prevent mAttachmentItemID from being - in this specific case accidentally - cleared


This addresses bug STORM-1017.
    http://jira.secondlife.com/browse/STORM-1017


Diffs
-----

  indra/newview/llviewerjointattachment.cpp UNKNOWN 

Diff: http://codereview.secondlife.com/r/161/diff


Testing
-------

I can't trigger that block for my avie's attachments "on demand" but I actually made this change a while back (before SVC-6766) in response to reports from users and this was the only possibility I could find in the viewer where an attachment may suddenly "forget" its associated inventory item.


Thanks,

Kitty

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.secondlife.com/pipermail/opensource-dev/attachments/20110712/7c36e28a/attachment.htm 


More information about the opensource-dev mailing list