Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Do not list related field choices in OPTIONS requests.#4021

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

@charettes
Copy link
Contributor

Listing related fields can leak sensitive data and result in poor performance
when dealing with large result sets.

Large result sets should be exposed by a dedicated endpoint instead.

boblehest reacted with thumbs up emoji
@charettescharettes changed the titleFixed #3751 -- Stopped listing all related field choices through metadata.Fixed #3751 -- Stopped listing related field choices through metadata.Mar 29, 2016
…tadata.Listing related fields can leak sensitive data and result in poor performancewhen dealing with large result sets.Large result sets should be exposed by a dedicated endpoint instead.
@charettescharettesforce-pushed therelated-field-choices-metadata branch from69c69b8 toa6732e2CompareMarch 29, 2016 17:29
@xordoquy
Copy link
Contributor

I'm tempted to move this through the deprecation path.
The alternative would be to consider this a security improvement and go through in which case I'd probably add an option to turn this off and keep compatibility.

@xordoquyxordoquy added this to the3.4.0 Release milestoneMar 29, 2016
@charettes
Copy link
ContributorAuthor

I have deprecation path in mind, I'll submit it in a few moment.

@xordoquy
Copy link
Contributor

Thanks !

@lovelydinosaur
Copy link
Contributor

I'd probably be okay with us simply dropping this in a median version, so long as we call it out.
We don't have any strict contract around what to expect fromOPTIONS responses, so...

@craigds
Copy link
Contributor

Could this be merged? This fixes#3751 which is a security (and major performance) issue so seems important to get it in.

hamishcampbell and mlissner reacted with thumbs up emoji

@lovelydinosaurlovelydinosaur merged commit014e24b intoencode:masterJun 1, 2016
@lovelydinosaurlovelydinosaur changed the titleFixed #3751 -- Stopped listing related field choices through metadata.Do not list related field choices in OPTIONS requests.Jun 1, 2016
@lovelydinosaur
Copy link
Contributor

Great stuff, thank you!

@charettescharettes deleted the related-field-choices-metadata branchJune 1, 2016 15:46
@silviogutierrez
Copy link
Contributor

Hey guys,

Fantastic library and great work overall. For those that actuallydo use this feature, will there be an opt-in workaround[1]? I looked at the merge commit and it seems like a blanket check for all related fields.

It's pretty convenient to build a form off a single OPTIONS request.

Thanks for all your work,

Silvio

[1]: Mandatory:https://xkcd.com/1172/

vellamike reacted with thumbs up emojiwimglenn reacted with laugh emoji

@lovelydinosaur
Copy link
Contributor

You'd need to use a custom metadata class, overridingget_field_info so that you have the 3.3.x behavior, not the 3.4.x behavior. We should include that in the release notes.

@wimglenn
Copy link
Contributor

Related example of overridingget_field_info:http://stackoverflow.com/q/35564784/674039

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

3.4.0 Release

Development

Successfully merging this pull request may close these issues.

6 participants

@charettes@xordoquy@lovelydinosaur@craigds@silviogutierrez@wimglenn

[8]ページ先頭

©2009-2025 Movatter.jp