Skip to content
Snippets Groups Projects

Ensure even select values in UNION query [RUN AS-IF-FOSS]

Merged Adam Hegyi requested to merge ensure-even-union-selects into master

What does this MR do?

This MR adds an extra check to the Gitlab::SQL::Union class to verify the number of select values of the passed in relations. If uneven number of columns are detected, an error will be raised. This only happens in test environment.

The MR also adds documentation explaining and fixing the problem.

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Adam Hegyi

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Sean McGivern
  • Adam Hegyi changed title from Ensure even select values in UNION query to Ensure even select values in UNION query [RUN AS-IF-FOSS]

    changed title from Ensure even select values in UNION query to Ensure even select values in UNION query [RUN AS-IF-FOSS]

  • Adam Hegyi added 1 commit

    added 1 commit

    Compare with previous version

  • Author Maintainer

    Thanks for the suggestions @smcgivern, I applied them. :pray:

  • Stan Hu
  • requested review from @msedlakjakubowski

  • Adam Hegyi requested review from @Quintasan

    requested review from @Quintasan

  • Adam Hegyi added 66 commits

    added 66 commits

    Compare with previous version

  • Michał Zając removed review request for @Quintasan

    removed review request for @Quintasan

  • Adam Hegyi added 1 commit

    added 1 commit

    Compare with previous version

  • Adam Hegyi added 147 commits

    added 147 commits

    Compare with previous version

  • Michał Zając approved this merge request

    approved this merge request

  • requested review from @mayra-cabrera

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading