Fix using ?only-fields= on the user resource with private profiles.
Review Request #8683 — Created Jan. 30, 2017 and submitted
When serializing a user in the API who has private profiles enabled, we'd try to remove some data from the resulting payload. However, if the caller used ?only-fields= and didn't specify those fields, the serialization process would crash. We now catch any errors here and ignore them. Unit tests were added to ensure this doesn't regress.
The new unit test failed before the fix, and passed after.
Description | From | Last Updated |
---|---|---|
Typo: thisa |
david |
- Change Summary:
-
Fixed a typo.
- Commit:
-
f2bfc8525e777faa8b1dec06d90e35a5a2f605fdb9bee4c68795922b8202b2dacedc2dead074f5d1