Bjoern Schiessle
0e0cfa0fa1
improve error reporting and move format parameter to the options
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
8 years ago
Morris Jobke
2a38605545
Properly log the full exception instead of only the message
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
8 years ago
Roeland Jago Douma
2c2e1c4c7a
Catch the errors related to untrusted self signed certificates for federation
* Added tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
8 years ago
Roeland Jago Douma
d24b6866b1
Actually set the status so we don't cause another exception
* And add tests so I don't mess up again
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
8 years ago
Morris Jobke
0eebff152a
Update license headers
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
8 years ago
Roeland Jago Douma
bc54e6ff7c
Use ITimeFactory
* Inject the timefacotry so we can mock it properly in the tests.
* Extended unit tests to cover the new paths
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
8 years ago
Bjoern Schiessle
3ffff08819
we don't need to remove the job manually here, even if we ask once more the other server will decline and the background job will be removed
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
9 years ago
Bjoern Schiessle
80c08e8fd0
update unit tests
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
9 years ago
Bjoern Schiessle
06b9e58081
expire requestSharedSecret job after 30 days
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
9 years ago
Bjoern Schiessle
51d85eb2f8
expire getShareadSecret job after 30 days
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
9 years ago
Bjoern Schiessle
821e287805
adjust existing tests
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
9 years ago
Bjoern Schiessle
4531b4a81d
only execute code if exception was thrown by the corresponding controller
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
9 years ago
Bjoern Schiessle
7df5c5db2d
don't add server automatically to trusted server
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
9 years ago
Roeland Jago Douma
62485ed08f
Fix deprecated getMock call in Federation app
9 years ago
Roeland Jago Douma
b6520827f7
Use function parameters
9 years ago
Roeland Jago Douma
16ff207465
Move OCSAuthAPI to AppFramework
* Convert class
* Convert routes
* Convert tests
9 years ago
Lukas Reschke
7ffb7b0d84
Use MockBuilder instead of createMock
CI uses an older PHPUnit
9 years ago
Lukas Reschke
8a7a0f3287
Add unit tests
9 years ago
Bjoern Schiessle
50044fb792
improve federation error messages
9 years ago
Joas Schilling
0215b004da
Update with robin
10 years ago
Joas Schilling
813f0a0f40
Fix apps/
10 years ago
Morris Jobke
9107fd6cd6
fix federation strings
10 years ago
Lukas Reschke
aba539703c
Update license headers
10 years ago
Joas Schilling
a6b4ba9ba1
Fix errors in the tests
10 years ago
Joas Schilling
da332c134e
Move federation tests to PSR-4
10 years ago
Joas Schilling
b7f7fc7241
Do not create a new job when it failed to connect atm
10 years ago
Lukas Reschke
933f60e314
Update author information
Probably nice for the people that contributed to 9.0 to see themselves in the AUTHORS file :)
10 years ago
Bjoern Schiessle
7189c72c33
remove remote address book if the admin removes the server from the trusted servers list
10 years ago
Bjoern Schiessle
eccd7cf654
reuse the url_hash instead of calculating a new hash for the address book
10 years ago
Bjoern Schiessle
cc397da1be
Remove background job if the server accepted to ask for the shared secret
If we don't remove it the server will later ask the remote server to ask for
the shared secret which will result in a error log message on the remote server
and in some circumstances maybe even to a failure
10 years ago
Thomas Müller
bc8632856a
Forward exception message to the admin in case of errors and in case the remote server version is to low and appropriate message is displayed as well
10 years ago
Lukas Reschke
a0cb52c90e
Fix PHPDoc and signature
10 years ago
Thomas Müller
2d7528bc64
Adding unit tests
10 years ago
Thomas Müller
682821c71e
Happy new year!
10 years ago
Thomas Müller
1a20af253b
Adding tests and adjust PHPDoc
10 years ago
Roeland Jago Douma
07fd3889b1
Fix unit tests
10 years ago
Robin Appelman
ef9a231f6c
Add error logging to federated sharing handshake
10 years ago
Thomas Müller
f9fc254672
Add DB group to some files_external tests
Adding group Db to federation tests and ldap tests
Add group DB to Test_UrlGenerator
Adding group DB to trashbin and versions tests
Adding group DB to Test_Util_CheckServer for pg
10 years ago
Björn Schießle
9546b21d7e
always store server url without a trailing slash
10 years ago
Björn Schießle
964fa1fce3
use hooks to auto add server to the list of trusted servers once a federated share was created
10 years ago
Björn Schießle
a63a1043b6
unit tests
10 years ago
Björn Schießle
698100d279
exchange shared secret
10 years ago
Björn Schießle
ed039ee5eb
added app "federation", allows you to connect ownClouds and exchange user lists
10 years ago