Christoph Wurst
2317d7bb49
Fix sinon.stub deprecation warnings
Calls to `sinon.stub(obj, 'meth', fn)` are deprecated and therefore
replaced by `sinon.stub(obj, 'meth).callsFake(fn)` as instructed by
the deprecation warning.
This makes the js unit testing output readable again.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
9 years ago
Joas Schilling
1c0bffe87f
Fix translations
Signed-off-by: Joas Schilling <coding@schilljs.com>
9 years ago
Vincent Petry
46a32045d7
Update karma, use sinon from npm
Update karma library and use sinon JS library provided by
karma-jasmine-sinon instead of local file.
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
9 years ago
Morris Jobke
dbaebc53b0
fix sorting in the backend
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
9 years ago
Felix Heidecke
11f838f9e4
Add ignore_files to config,
test files against ignore_files list on upload
fix typo and indentation
Move blacklist declaration to lib/public/Files/FileInfo.php,
Rename *ignored to *blacklisted
Mocked blacklist_files for testing
Mocked blacklist_files for testing
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
9 years ago
Vincent Petry
703f2e6a61
Clear onpopstate handlers after unit tests
Fixes issue when running Karma tests in Firefox.
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
9 years ago
Ilja Neumann
31fa2f73d4
Sharing dialog: Names sorting is case sensitive #25971
Sharing dialog: Names sorting is case sensitive: adding tests #25971
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
9 years ago
Lukas Reschke
6c8d48b0f6
Harden t() with DOMPurify
This mitigates issues where developers pass untrusted user-input through t() which may lead to XSS issues.
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
9 years ago
Roeland Jago Douma
bb2ec51bbb
Fix unit tests of master
Follow up to #3802
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
9 years ago
Artur Neumann
9790fe7f5d
make values with white spaces possible
a user might enter values with white spaces, and that should be possible
and valid
Signed-off-by: Artur Neumann <info@individual-it.net>
9 years ago
Artur Neumann
f1fccaca06
better quota validation
this fixes #3634
1. fixed computerFileSize to be more picky about incorrect values
2. more tests for computerFileSize
3. use computerFileSize to validate user quota
Signed-off-by: Artur Neumann <info@individual-it.net>
9 years ago
Christoph Wurst
3e7e49884e
Replace deprecated $.tipsy(...) by $.tooltip(...)
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
9 years ago
Morris Jobke
cee8853658
Show info in admin settings about PHP opcache if disabled
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
9 years ago
Morris Jobke
200a28255e
Always enable avatars
* we introduced this setting in the begining because our
avatar support caused some performance issues, but we
fixed them and should only provide one way how Nextcloud
looks
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
9 years ago
m3ntalsp00n
dd9ee2db6f
fix tests, longer wait time, update notification stub
Signed-off-by: m3ntalsp00n <m3ntalsp00n@gmail.com>
9 years ago
Christoph Wurst
da28a1612e
expect warning to be shown
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
9 years ago
Christoph Wurst
9d56d5e94d
add spies for l10n warnings
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
9 years ago
Vincent Petry
14256d631c
Use group display name in sharing API + UI
9 years ago
Patrick Paysant
d4c088cb79
Verify input, add more unit tests
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
9 years ago
Patrick Paysant
ec4bca619d
Add test for unparseable string
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
9 years ago
Patrick Paysant
ff018d48cf
Implements all comments from @PVince81
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
9 years ago
Patrick Paysant
6217393d6a
Adding computerFileSize in OC.Util
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
9 years ago
Joas Schilling
9ea432f88c
Adjust the JS unit tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
9 years ago
Morris Jobke
a2867c0664
Properly check the data dir
* fixes #1364
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
9 years ago
Robin Appelman
e055fbd4da
adjust js tests
Signed-off-by: Robin Appelman <robin@icewind.nl>
9 years ago
Morris Jobke
e7a146bd62
fix tests
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
9 years ago
Morris Jobke
34849f7bd3
fix unit tests
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
9 years ago
Lukas Reschke
d001dbd259
Adjust unit tests
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
9 years ago
Joas Schilling
0f06034239
Replace more vendor naming
Signed-off-by: Joas Schilling <coding@schilljs.com>
9 years ago
Bjoern Schiessle
d235c4833f
remove the 'shareapi_allow_mail_notification' setting
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
9 years ago
Bjoern Schiessle
f556c58c22
remove 'send mail notification' option from sharing, replaced by send-by-mail feature
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
9 years ago
Roeland Jago Douma
57e61250ac
Remove notify recipient option
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
9 years ago
Vincent Petry
25d9dce067
JS utility function to compare paths
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
10 years ago
Vincent Petry
361f008c70
Make it possible to filter by tags with REPORT method
Enhanced the REPORT method on the Webdav endpoint and added a
"oc:favorite" filter rule. When set, it will return a flat list of
results filtered with only favorite files.
The web UI was also adjusted to use this REPORT method instead of the
private API endpoint.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
9 years ago
Christoph Wurst
5ae6d62811
do not reload the page if the server is (temporarily) unreachable
9 years ago
Roeland Jago Douma
5cda383460
Make can edit checkbox work for file shares
9 years ago
Arthur Schiwon
9b01574465
adjust js tests
9 years ago
Vincent Petry
0f3674a446
Group incoming shares for resharing in JS
10 years ago
Julius Haertl
217b52085d
Fix javascript tests for sidebar animation
9 years ago
Derek
b236100619
Alters 'No Internet Connection' error message. #181
10 years ago
Thomas Müller
4d67429cf0
Use an icon to set the email instead of a button with string
10 years ago
Hendrik Leppelsack
61e604c2d9
adjusts tests to removal of svg fallback
10 years ago
Vincent Petry
fb087a0261
Use temporary htaccesstest.txt for data dir security check
10 years ago
Vincent Petry
66e93561da
Rename "not-assignble" to "restricted"
10 years ago
Vincent Petry
88740f035d
Act on effective system tag canAssign permission
Whenever the server returns true for the can-assign Webdav property of
a system tag, it means the current user is allowed to assign,
regardless of the value of user-assignable.
This commit brings the proper logic to the web UI to make it possible
for users to assign when they have the permission.
10 years ago
Robin McCorkell
62024d74d4
Add test for reload delay
10 years ago
Christoph Wurst
2d772eaaa8
Debounce heartbeat ajax calls to lower the number of requests
fixes #22397
10 years ago
Christoph Wurst
5900e46f01
Turn off jQuery animations when testing
10 years ago
Christoph Wurst
3e1f1ccc76
downgrade jquery, update jquery-migrate
10 years ago
Morris Jobke
e03d289b70
Use 6 months as SSL STS header threshold
* this uses 6 months (6 * 30 * 24 * 60 * 60 = 15552000)
* old value was half a year (365 / 2 * 24 * 60 * 60 = 15768000)
* fixes #23957
10 years ago