docbrown/spec/requests/api/v0
rhymes 5e9be0c32d
Disable ActionController auto params wrapping (#11692)
* Disable ActionController auto params wrapping

Rails by default accepts wrapped and unwrapped parameters in JSON requests (with or without a root object), regardless of the fact that the contract with the client requests wrapped parameters or not. This results in unforeseeable bugs when the client sends unwrapped parameters in lieu of wrapped ones.

As undeterministic bugs are a PITA and this is the classic grey area in Rails apps and as the customer facing API is fully documented and the internal can be manually adjusted, we disable this and be done with this odd feature.

https://github.com/forem/forem/issues/11645
https://github.com/forem/forem/pull/11638

* Remove accidentally committed file
2020-12-02 15:17:43 +01:00
..
admin Add configs/show api for admins (#11358) 2020-12-01 12:22:07 -05:00
analytics_spec.rb Pro: add referrers to dashboard and single article stats (#3295) 2019-06-25 13:58:09 -04:00
articles_spec.rb Disable ActionController auto params wrapping (#11692) 2020-12-02 15:17:43 +01:00
comments_spec.rb Flaky Spec Fix:User Comment created_at in Expectation (#9878) 2020-08-19 19:19:06 -05:00
followers_spec.rb [deploy] Reintroduce sticky_nav changes (ab81f36 & 7f92855) (#10263) 2020-09-09 15:33:13 -04:00
follows_spec.rb API: Add route for fetching a user's followed tags (#9108) 2020-09-18 16:28:42 -05:00
health_checks_spec.rb Do not set SiteConfig values in specs (#11125) 2020-10-27 15:56:31 -04:00
listings_spec.rb Add X-Accel-Expires header to support Nginx caching (#9655) [deploy] 2020-08-13 14:24:50 -07:00
organizations_spec.rb API: Endpoint to get an organization's users (#11514) 2020-11-25 12:50:57 +01:00
podcasts_episodes_spec.rb Upgrade to Rails 6.0 (#7658) 2020-06-04 11:54:25 +02:00
profile_images_spec.rb [deploy] Introduce /api/profile_images/:username endpoint (#10547) 2020-10-14 14:24:25 -05:00
readinglist_spec.rb [deploy] API - New endpoint to retrieve the articles in the reading list of the authenticated user (#10540) 2020-10-14 13:20:03 -05:00
tags_spec.rb Move onboarding tags from public to internal API (#6329) 2020-03-06 19:34:31 +01:00
users_spec.rb Do not set SiteConfig values in specs (#11125) 2020-10-27 15:56:31 -04:00
videos_spec.rb Return video_source_url in API V0 Videos index (#11040) 2020-11-09 06:27:28 +01:00
webhooks_spec.rb Routine rubocop fixes (#10478) 2020-09-29 10:14:26 -04:00