Skip to content

DATAMONGO-2392 - Fix handling of old GridFS files with custom type fo… #796

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

nickstolwijk
Copy link

DATAMONGO-2392 - Fix handling of old GridFS files with custom type for _id field.

@pivotal-issuemaster
Copy link

@nickstolwijk Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@pivotal-issuemaster
Copy link

@nickstolwijk Thank you for signing the Contributor License Agreement!

mp911de pushed a commit that referenced this pull request Oct 16, 2019
…es with custom id type.

Original pull request: #796.
mp911de added a commit that referenced this pull request Oct 16, 2019
We now consistently use GridFSFile.getId() to allow custom Id usage instead of enforcing the Id to be an ObjectId. Using the native Id allows interaction with files that use a custom Id type.

Original pull request: #796.
mp911de added a commit that referenced this pull request Oct 16, 2019
Add author tags. Move integration tests to existing test class.
Apply more appropriate in existing tests assertions. Use diamond syntax.

Original pull request: #796.
mp911de pushed a commit that referenced this pull request Oct 16, 2019
…es with custom id type.

Original pull request: #796.
mp911de added a commit that referenced this pull request Oct 16, 2019
We now consistently use GridFSFile.getId() to allow custom Id usage instead of enforcing the Id to be an ObjectId. Using the native Id allows interaction with files that use a custom Id type.

Original pull request: #796.
mp911de added a commit that referenced this pull request Oct 16, 2019
Add author tags. Move integration tests to existing test class.
Apply more appropriate in existing tests assertions. Use diamond syntax.

Original pull request: #796.
@mp911de
Copy link
Member

mp911de commented Oct 16, 2019

Thanks a lot. That's merged, polished, and backported now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants