Guo Xiang Tan
158662519d
Fix onceoff job in cfa7173da3 not running.
2018-10-01 18:36:39 +08:00
Guo Xiang Tan
81c21681ce
FIX: Onceoff job to fix missing user profile backgrounds.
2018-10-01 18:31:56 +08:00
Sam
fd8bf5d2cb
FIX: correct readonly timeout
...
So it only applies in readonly mode
2018-09-20 15:18:35 +10:00
Sam
ad74eea50d
FIX: in redis readonly raise an exception from DistributedMutex
...
If we detect redis is in readonly we can not correctly get a mutex
raise an exception to notify caller
When getting optimized images avoid the distributed mutex unless
for some reason it is the first call and we need to generate a thumb
In redis readonly no thumbnails will be generated
2018-09-19 15:51:17 +10:00
Sam
0ec92f95d4
SECURITY: correct XSS on long topic titles
2018-09-18 08:55:43 +10:00
Sam
98ff2fd8ab
SECURITY: remove admin memory diagnostics routes
2018-09-18 08:35:54 +10:00
Guo Xiang Tan
8a22e60438
Backward compatibility for dropping functions in ColumnDropper.
...
https://meta.discourse.org/t/launcher-rebuild-error-pg-error-schema-discourse-functions-does-not-exist/96209
2018-09-17 14:52:54 +08:00
Neil Lalonde
0b282fb812
Version bump
2018-09-14 11:43:45 -04:00
Neil Lalonde
81dc36ba16
Version bump to v2.2.0.beta2
2018-09-14 11:43:35 -04:00
Neil Lalonde
a147a856f8
Update translations
2018-09-14 11:43:14 -04:00
Joffrey JAFFEUX
754d5b62a8
makes mini-tag-chooser test use can_create_tag ( #6402 )
2018-09-14 13:30:55 +02:00
Joffrey JAFFEUX
d2ea618af1
adds a test for mini-tag-chooser
2018-09-14 12:13:00 +02:00
Régis Hanol
0bfb1f83fc
make migration irreversible
2018-09-14 11:09:36 +02:00
Bianca Nenciu
aca195e4a7
Remove unused site setting. ( #6398 )
2018-09-14 07:49:32 +00:00
Guo Xiang Tan
c3f6b4d966
DEV: Test against real Upload#url format.
2018-09-14 13:43:33 +08:00
Guo Xiang Tan
8a171389e1
FIX: Onceoff job to recover missing post uploads.
...
This fixes the regression due to 1f636c445b
2018-09-14 11:13:21 +08:00
Guo Xiang Tan
cb3be41ead
DEV: Avoid using send and make the method public instead.
2018-09-14 11:12:56 +08:00
Guo Xiang Tan
8c417d949e
Accept custom AR relation for UploadRecovery.
2018-09-14 11:12:46 +08:00
Guo Xiang Tan
f1f0a6b358
FIX: Do not try to recover invalid Upload#short_url in UploadRecovery.
2018-09-14 11:12:39 +08:00
Guo Xiang Tan
eb5f34b779
Fix the build.
2018-09-14 11:12:30 +08:00
Guo Xiang Tan
33e09ca6d6
Add basic test case for UploadRecovery.
2018-09-14 11:12:19 +08:00
Guo Xiang Tan
7784bbe702
Rescue errors when running dry run for UploadRecovery.
2018-09-14 11:12:09 +08:00
Guo Xiang Tan
be9e64eabf
Fix s3 recovery from tombstone in UploadRecovery.
2018-09-14 11:12:00 +08:00
Guo Xiang Tan
0793253b0b
Add dry run option to UploadRecovery.
2018-09-14 11:11:55 +08:00
Guo Xiang Tan
07a53907a7
Fix incorrect variable.
2018-09-14 11:11:41 +08:00
Guo Xiang Tan
29e9329eb3
New rake task uploads:recover.
2018-09-14 11:11:35 +08:00
Guo Xiang Tan
ec0dccf438
DEV: Print the error class in uploads:list_posts_with_broken_images.
2018-09-14 11:11:28 +08:00
Guo Xiang Tan
45146818d7
Add extra protection in Upload#get_from_url.
...
In case the extension goes missing from the URL.
2018-09-14 11:11:22 +08:00
Sam
419b14e58b
FIX: correctly keep stylesheet cache entries
...
The intent from day one was to keep MAX_TO_KEEP stylesheets per target
however the DELETE statement did not perform target filtering
This meant we often deleted the wrong stylesheets from the cache
2018-09-14 12:54:11 +10:00
Guo Xiang Tan
6a2589353b
Merge pull request #6394 from tgxworld/recover_broken_uploads
...
FIX: Onceoff job to recover missing post uploads.
2018-09-13 18:16:56 -07:00
Guo Xiang Tan
aa1af9fc22
FIX: Onceoff job to recover missing post uploads.
...
This fixes the regression due to 1f636c445b
2018-09-14 09:04:01 +08:00
Gerhard Schlager
fd931b948d
Use a more helpful failure message in spec
2018-09-13 21:31:44 +02:00
Régis Hanol
30619c244c
FIX: don't index urls to local files
2018-09-13 18:53:53 +02:00
Joffrey JAFFEUX
5ab9a9d898
FIX: ensures we have a color for reports ( #6396 )
2018-09-13 18:53:30 +02:00
Joffrey JAFFEUX
a6502ce879
FIX: ensures errors in report initialization fail nicely ( #6392 )
2018-09-13 17:36:55 +02:00
Joffrey JAFFEUX
18fcd483f2
FIX: ensures we have a color for reports ( #6396 )
2018-09-13 17:36:39 +02:00
Joffrey JAFFEUX
7bf8b0d305
FIX: treats users_(by_type|tl) as other reports ( #6391 )
2018-09-13 17:35:54 +02:00
Guo Xiang Tan
2ae7d3a118
Merge pull request #6388 from pmusaraj/drafts-second-user-test
...
Add test to ensure a user cannot see drafts stream of another user
2018-09-13 06:53:44 -07:00
Guo Xiang Tan
f2363650c9
Merge pull request #6395 from discourse/plugin-migrations
...
DEV: apply plugin migrations when testing in Travis and Docker
2018-09-13 06:51:30 -07:00
pmusaraj
5bdf476de7
raise error early in drafts controller
2018-09-13 08:40:57 -04:00
Arpit Jalan
a43ddace3e
FIX: ignore and log bad json values for custom fields
2018-09-13 17:41:10 +05:30
Sam
5bb7cc8710
FIX: update PG gem
...
We need the newer PG gem to fix issues around rb_wait_for_single_fd that
pop up in rare conditions
2018-09-13 21:57:20 +10:00
David Taylor
b8c0e77908
DEV: apply plugin migrations when testing in Travis and Docker
...
In `RAILS_ENV=test`, plugins are not loaded by default. Therefore we need to explicitly specify `LOAD_PLUGINS=1` when we want to apply plugin migrations.
2018-09-13 12:39:54 +01:00
Arpit Jalan
d288462abf
Merge pull request #6393 from techAPJ/bad-json
...
FIX: ignore and log bad json values for custom fields
2018-09-13 15:54:01 +05:30
Arpit Jalan
e364547ff7
FIX: ignore and log bad json values for custom fields
2018-09-13 14:26:30 +05:30
Guo Xiang Tan
529e4018f0
DEV: Avoid using send and make the method public instead.
2018-09-13 16:34:32 +08:00
Guo Xiang Tan
0a06b3d977
Accept custom AR relation for UploadRecovery.
2018-09-13 16:33:14 +08:00
Guo Xiang Tan
6c65718301
Include response body when raising an error in FileHelper#download.
2018-09-13 15:43:58 +08:00
Guo Xiang Tan
05a57d4f27
DEV: Clear cache after not before.
...
* Clearing after ensures that state does not leak
to specs in other files.
2018-09-13 14:23:32 +08:00
Guo Xiang Tan
5eb65ad612
FIX: Do not try to recover invalid Upload#short_url in UploadRecovery.
2018-09-13 13:59:17 +08:00