Commit graph

206 commits

Author SHA1 Message Date
Andrew Shu
ca1802758f Migrate from Travis CI to GitHub Actions 2021-08-12 19:45:25 -07:00
Kyle Drake
f33f661f08 clump logs into single hash before importing to database 2021-01-13 14:46:52 -06:00
Kyle Drake
780c093dd6 Move screenshots/thumbs when renaming user.
Also DRY up a bit, remove some old code. Fix an extra path slash, and fix screenshot display in dashboard.
2020-01-27 01:53:54 -08:00
Kyle Drake
368d000551 Update tests for screenshot worker url array 2020-01-27 01:22:57 -08:00
Kyle Drake
0afe4f6df3 method for unbanning 2019-12-18 20:58:59 -08:00
Kyle Drake
86df307d5f Remove unneccessary test 2019-10-09 14:57:12 -07:00
Kyle Drake
904e773d16 clean up some old gunk 2019-09-21 02:17:13 -07:00
Kyle Drake
a191da9f84 try to prevent failure when fill is too slow 2019-09-21 01:52:01 -07:00
Kyle Drake
69c32d17ed Update gems, modernize test stack, fix flaky tests 2019-09-21 01:19:47 -07:00
Kyle Drake
b966321282 patch bug where dir create didn't scrub path in db entry 2019-09-19 18:45:45 -07:00
Kyle Drake
58a09f0bd9 properly remove old test files 2019-09-19 18:45:00 -07:00
Kyle Drake
7fd75170e2 Merge branch 'master' of github.com:neocities/neocities 2019-07-01 11:21:57 -07:00
Kyle Drake
aa1ea29a89 whitelist chromedriver download incase we use future selenium driver for capybara 2019-07-01 11:19:03 -07:00
Kyle Drake
99956d762a
Merge pull request #295 from valtron/api-list-hash
api: include file sha1 hash in /api/list (#252)
2019-06-30 19:15:13 -07:00
Kyle Drake
ed5f646cdd Remove tests I can't for the life of me get to work 2019-06-30 14:49:50 -07:00
Kyle Drake
ef1f448a40 Merge branch 'site_file_rename' 2019-02-26 09:38:14 -08:00
Kyle Drake
2c5ef5195b fix for uploads with multiple directorys and same filenames 2019-02-14 09:47:31 -08:00
Kyle Drake
26aa62fcae scrub carriage return garbage 2019-02-13 22:45:28 -08:00
Kyle Drake
249ea7a2d0 Support for site file and directory renaming / moving 2019-02-03 05:05:47 -08:00
valtron
8d0e339f72 api: include file sha1 hash in /api/list (#252) 2019-01-23 18:07:17 -07:00
Kyle Drake
1fa8aa3a74 try to make capybara wait for a page load to continue running 2019-01-20 00:35:50 -08:00
Kyle Drake
b2e1c8bb61 fix for the broken stripe mock in test 2019-01-19 03:03:00 -08:00
Kyle Drake
b250b19bbb fix stat tests 2018-12-02 00:14:34 -08:00
Kyle Drake
d467e9be96 Force case insensitivity for new emails, existing.
There is a legacy bug I just caught, where many accounts would have the
same email but then have different casing. In extreme scenarios, this
would lead to them creating a new user with the same email, or having
issues with password reset and username lookup.

This doesn't merge in the existing duplicates, but makes sure to only
allow insensitive lowercase emails from here on out. It also will check
for emails in a case insensitive way for such things as resets and
logins if the sensitive lookup doesn't work.

The implementation was not wrong per se - email is supposed to be case sensitive
for usernames. But of course, nobody (nor do most/all email servers) treat
them that way, leading to confusion situations where the user sometimes
camelcases their email and then switches to lowercase later.
2017-12-08 22:13:27 -08:00
Kyle Drake
33054a8298 Update gems, remove simplecov/coveralls to prevent crashing issue 2017-12-08 22:08:50 -08:00
Kyle Drake
9d3b86302d clean up tests to reflect new purging code 2017-10-15 11:26:42 -07:00
Kyle Drake
c9ba1cf0f4 add ability to restore deleted sites 2017-06-03 23:43:05 -07:00
Kyle Drake
4d397df015 update gems, fix warning about must_equal nil test 2017-05-22 18:10:26 -07:00
Kyle Drake
bf089379aa fixes for upload hash check, catch index.html delete scenario 2017-05-21 20:16:37 -07:00
Kyle Drake
4a2926508e api: add upload_hash for checking file hash before uploading 2017-05-21 17:32:26 -05:00
Kyle Drake
9f8afbd18e ability to return api key from api using login 2017-05-13 18:31:51 -05:00
Kyle Drake
1274e9fa63 API key support 2017-05-13 18:18:34 -05:00
Kyle Drake
d6f51a1cbb fix failing tests 2017-04-02 13:59:14 -07:00
Kyle Drake
ff5e424c4b Fix missing shard_dir link in thumbnail test 2017-03-30 15:41:39 -07:00
Kyle Drake
26a53995db Clean up junk from previous tests when running new tests 2017-03-30 15:40:36 -07:00
Kyle Drake
29a6e95a2a Disable site file max hard check, getting too slow 2017-03-30 15:40:12 -07:00
Kyle Drake
54422802e5 Switch to directory sharding model for site storage 2017-03-22 17:45:01 -07:00
Kyle Drake
b556795f78 Missing xml file for blog feed test 2017-02-07 22:47:35 -08:00
Kyle Drake
28a71d275a Tests for paypal tipping webhook 2017-02-07 22:46:39 -08:00
Kyle Drake
e52aa29290 Fix tempfile returning nil for empty files
This is an "monkey patch" to have Tempfile return 0 instead of nil when
a tempfile is empty. This has caused an unexplained exception in our
logs for years, and I was really surprised when I caught it, and more
surprised that nobody has ever reported it to us before.

I really think this is a bug, and have filed it as a bug on the ruby
tracker. I haven't seen any consequences (yet) to doing this, so I'm
just going to run with it and see what happens. If it blows
something up (how? what scenario?), I'll try a different approach.
2017-02-06 11:26:14 -08:00
Kyle Drake
28000fc73c Send email notifications for email and password changes 2017-02-04 11:31:48 -08:00
Kyle Drake
0428a1246e Fix for cache purging for subdir default indexes 2017-01-29 00:00:25 -08:00
Kyle Drake
46b402a633 Fix up index test, stub blog rss feed get 2017-01-26 00:31:22 -08:00
Kyle Drake
be2c2598c7 Flush password reset token when email changes 2017-01-25 20:45:00 -08:00
Kyle Drake
bedc08cb58 mechanism to report spam ips to stopforumspam 2017-01-11 17:16:40 -06:00
Kyle Drake
4fca52e03d fixes for broken/flaky tests and remove unused template 2016-11-22 00:59:31 -06:00
Kyle Drake
3272b16f47 whitelisting for education 2016-11-14 15:49:09 -06:00
Kyle Drake
882d2fb4b2 fix for api 404 2016-10-26 21:34:53 -05:00
Kyle Drake
d5493d4d23 fix tests for new code 2016-10-23 13:05:10 -05:00
Kyle Drake
2c88c62cbc major refactor of supporter structure 2016-10-18 12:47:58 -05:00