apple / ccs-calendarserver

The Calendar and Contacts Server.
https://www.calendarserver.org
Apache License 2.0
485 stars 136 forks source link

Extension to unit tests that demonstrates bug in migration code #487

Open kristoffermollerhoj opened 7 years ago

kristoffermollerhoj commented 7 years ago

The problem occurs in CrossPodHomeSync.sharedToCollectionsReconcile when more than one collection with same ownerUID shared to the migrating user exists.

More specifically, the problem seems to be located in the function txdav.common.datastore.sql_sharing.SharingHomeMixin.sharedToBindRecords where the dict homeIDs cannot contain more than one value per home id.

Please note that this contribution will make the unit tests fail.