-
Notifications
You must be signed in to change notification settings - Fork 899
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
Operations on Postgresql json/jsonb columns inadequately sanitised #696
Comments
There looks to be an unrelated error preventing me from running very many iterations:
Full output: https://gist.github.com/bronson/d597d03e7ca80ac82869 Until I can get 500 iterations, I won't be confident that the injection error is fixed. I'm curious, why are the tests half minitest and half rspec? |
Are you saying that test fails intermittently? Yeah, I agree, I don't think it's related. Could you open a separate issue for that?
The usual story, someone (before my time) started converting from one to the other and never finished. |
Happy to, #699 Makes total sense. If the project had its choice, would it end up with 100% rspec or 100% minitest? |
They both have their good parts and bad parts. I tend to use rspec more, but I'd be happy with either. Either would be better than both. |
I'm the guilty party regarding why there are RSpec tests. I started converting the test suite over to RSpec since I was more comfortable with it but then didn't take the time to finish off everything. That being said I think there are actually some pros to having both within the project, since it makes it easier for people comfortable with either of those to contribute and write tests using their framework of choice. I too favor RSpec but I don't think minitest is bad by any means. |
👍🏻 @jaredbeck |
Well, right now you're requiring authors to understand both frameworks... If you encourage them to use one, eventually the conversion should be complete. Allowing both and prolonging the conversion seems to me like a false economy. Glad to know which framework is the desired destination, thanks! |
That may be true, however, the syntax that the 2 frameworks use are similar If you would like to make a pull request that converts some of the tests On Monday, January 18, 2016, Scott Bronson notifications@github.com wrote:
|
I totally agree that it's not worth slowing down until they're all converted. Just wanted to make sure that the idea is to end up on one or the other. I'd like to give the tests a good scrub, especially some of these intermittent or first-run failures... maybe next week. |
It sounds like our preference is to end up with only RSpec. I agree with Ben, it's not a priority, but I'd be happy to review small, targeted PRs that convert a few tests at a time. If it helps, last year I wrote a cross-compiler that converts one test file at a time: https://github.com/jaredbeck/minitest_to_rspec Even a single file might be too big for a PR though. Some of those test files are huge.
That'd be great. Intermittent tests are a pain in the CI :p |
If postgresql is configured with json or jsonb columns, searches are not properly parameterised or escaped. See bug report template gist.
Credit to @bronson for finding the issue.
The text was updated successfully, but these errors were encountered: