All submissions to this site are governed by the Second Life Viewer Contribution Agreement. By submitting patches and other information using this site, you acknowledge that you have read, understood, and agreed to those terms.

Review Board 1.6.11

Welcome to the Second Life Viewer Code Review tool.
See the documentation on our wiki for how to use this site.

VWR-25896 [Regression] Bulk uploads do not adhere to default permissions

Review Request #323 - Created June 5, 2011 and submitted

Jonathan Yap Reviewers
2.7.2 viewer
VWR-25896
None viewer-development
Something in the big mesh branch merge (build 230088) appears to have broken bulk uploading.

    * On inventory tab, click "+" menu -> Upload -> Set Default Permissions
    * Set your default permissions to enable Next owner Modify, Copy, and Resell/Giveaway and click OK
    * Click "+" menu -> Upload -> Bulk and select a group of multiple images
    * After upload completes, check permissions of each uploaded item

Expected behavior is that all the bulk uploaded items would have Modify/Copy/Transfer permissions.
Actual results is that first item upload has Modify/Copy/Transfer permissions, all others have no perms at all.

I examined this area of code before the mesh merge and saw a small but significant difference.  It is not clear to me that this is the only change necessary; in an email Oz said a server-side change might be needed too.  
Repeated bulk uploading of two textures, altering the settings in the bulk upload floater for each test; their uploaded properties followed the settings I had set in the floater.
Review request changed
Updated (June 5, 2011, 8:11 a.m.)
Ship it!
Posted (June 5, 2011, 8:19 a.m.)

   

  
indra/newview/llassetuploadresponders.cpp (Diff revision 2)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
No objections, so let's just see whether this works.

It'd be nice if whoever did change this from 'mPostData' to 'content' would comment on this fix, but as the commit where that happened seems to lump together many unrelated changes (maybe still from an SVN branch?), it'll be difficult to track down who that even was.