Details
-
Bug
-
Resolution: Fixed
-
Major
-
2.7.1, 3.0 RC1
-
None
-
Unknown
-
Description
Document#getDocumentReference directly return the reference which is modifiable.
There is at least two issues here:
- the API is not supposed to allow modifying direct a document reference, you have to use rename
- since it's not cloned the cached document could be modified and corrupted