hubs icon indicating copy to clipboard operation
hubs copied to clipboard

Object inconcistency between users.

Open CodingBitsDev opened this issue 3 years ago • 2 comments

Description There is a bug that causes unpinned objects to not beeing synced with new users.

To Reproduce Steps to reproduce the behavior:

  1. Log in with two browsers
  2. Upload and pin a Media Object with BrowserA => BrowserA is owner and creator of persistent object
  3. Reload the page with BrowserA => BrowserA gets a new userID (neither owner nor creator of object are connected)
  4. Unpin the object with BrowserA => (this also takes ownership)
  5. Refresh the page with BrowserA
  6. The Media is still visible for BrowserB but BrowserA doesn't nor any updates of it.

Expected behavior The object should either be deleted for both browsers, or better be synced with both browsers.

Hardware Testet with chrome and Oculus Browser. It should however exist in every browser since it is caused by code in Networked aframe.

Additional context This is caused by networked-aframe. Users are only allowed to sync networked objects if they are either the owner, or the creator of an object. Neither of those users are online after following the steps above.

I will in soon make a pull request to solve this issue.

CodingBitsDev avatar Jul 14 '22 12:07 CodingBitsDev

Merge requst can be found above https://github.com/mozilla/hubs/pull/5587

CodingBitsDev avatar Jul 14 '22 13:07 CodingBitsDev

thanks for looking into this. Our team ran into this issue the other day as well

emclaren avatar Jul 22 '22 16:07 emclaren