Sébastien Lesaint
db18af0468
fix Request.mandatoryParam not failing on blank parameter value
5 vuotta sitten
Duarte Meneses
252b3897e7
Fix license headers for 2019
5 vuotta sitten
Julien Lancelot
347f6c6744
SONAR-11579 Create WS to store/load user settings
5 vuotta sitten
Julien Lancelot
63947f4bf7
SONAR-10597 Update USER_TOKENS#LOGIN to USER_UUID
* SONAR-10597 Update USER_TOKENS#LOGIN to USER_UUD in DB
* SONAR-10597 Update UserTokenDao to return user uuid
* SONAR-10597 Fix api/user_tokens/generate to correctly use user uuid
* SONAR-10597 Fix api/user_tokens/revoke to correctly use user uuid
* SONAR-10597 Fix authentication by token to correctly use user uuid
* SONAR-10597 Fix api/user_tokens/search to correctly use user uuid
* SONAR-10597 Fix api/users/search to correctly use user uuid
* SONAR-10597 Add ITs to check user tokens after login update
6 vuotta sitten
Julien Lancelot
a124513d1f
SONAR-10599 Synchronize login during authentication
6 vuotta sitten
Simon Brandhof
cbac281787
Rename EsTester factory methods
6 vuotta sitten
Simon Brandhof
008f5eb322
Fix Quality flaws
6 vuotta sitten
Simon Brandhof
72be5b2eca
Speed-up the unit tests relying on Elasticsearch
Creation of an index is slow in Elasticsearch. It should not executed
before each test.
6 vuotta sitten
Simon Brandhof
d55f047c44
Cleanup code based on Intellij inspections
6 vuotta sitten
Simon Brandhof
c0d2705e61
Fix license headers for 2018
6 vuotta sitten
Daniel Schwarz
b226884e63
SONAR-10008 Make date facet tests independent from the machine's time zone
6 vuotta sitten
Julien Lancelot
f0af72abc1
SONAR-1330 Purge edit permissions when deleting user
6 vuotta sitten
Eric Hartmann
884e73d807
MMF-935 experiment ES resilience of user creation
7 vuotta sitten
Julien HENRY
5694a472f1
SONAR-9478 Replace Settings by Configuration
6 vuotta sitten
Julien HENRY
875e23e29f
SONAR-9478 Deprecate Settings and introduce new Configuration interface
6 vuotta sitten
Julien Lancelot
0b4ea07b38
SONAR-9356 Add column USERS.ONBOARDED
7 vuotta sitten
Sébastien Lesaint
e21722bdc3
SONAR-9140 support public flag in ComponentTesting/ComponentDbTester
7 vuotta sitten
Julien Lancelot
d9f6471696
SONAR-8957 Remove permission templates when deactivating a user
7 vuotta sitten
Julien Lancelot
48d7625b9e
SONAR-8957 Move deletion of orgniaztion membership from UserDao to DeactivateAction
7 vuotta sitten
Julien Lancelot
e13ecb1974
SONAR-8957 Move deletion of default assignee settings from UserDao to DeactivateAction
7 vuotta sitten
Julien Lancelot
e9921f1394
SONAR-8957 Move deletion of user permissions from UserDao to DeactivateAction
7 vuotta sitten
Julien Lancelot
314e8b5af8
SONAR-8957 Move deletion of user properties from UserDao to DeactivateAction
7 vuotta sitten
Julien Lancelot
c44b0d4946
SONAR-8957 Move deletion of group membership from UserDao to DeactivateAction
7 vuotta sitten
Julien Lancelot
b816ce6273
SONAR-8957 Refactor DeactivateActionTest
7 vuotta sitten
Julien Lancelot
705fce4ebd
SONAR-8956 Prevent removing last org admin member
7 vuotta sitten
Julien Lancelot
a92c4349cb
SONAR-8930 When removing a user, remove him from any organization he belongs to
7 vuotta sitten
Daniel Schwarz
9cebda866a
SONAR-8390 when altering users, only reindex touched users
7 vuotta sitten
Daniel Schwarz
5e5e3912f7
SONAR-8092 do not rely on updated-timestamp for indexing anymore
7 vuotta sitten
Simon Brandhof
c37884c9e5
Support OrganizationPermission in UserDbTester
7 vuotta sitten
Simon Brandhof
468f284c27
SONAR-8761 remove misleading UserSession#checkIsRoot()
7 vuotta sitten
Teryk Bellahsene
cfa372a57a
SONAR-8637 Update POM parent version
7 vuotta sitten
Simon Brandhof
89cfa53e90
SONAR-8716 fix check of permissions in api/users
7 vuotta sitten
Sébastien Lesaint
7efab8ef44
rename UserSessionRule.login() to logIn() for clarity
7 vuotta sitten
Simon Brandhof
72170b891e
SONAR-6912 add response example to api/users/deactivate
7 vuotta sitten
Simon Brandhof
0f02415496
SONAR-6912 do not deactivate last organization administrator
7 vuotta sitten
Simon Brandhof
f38f4521fe
SONAR-6912 Refactor WS api/users/deactivate
- remove dead code for Ruby
- move codebase from UserUpdater to DeactivateAction
- sanitize tests
7 vuotta sitten
Simon Brandhof
a4b766dbe2
SONAR-6912 Use System2 in BaseIndexer
in order to wrap call to System.currentTimeMillis().
That is needed to bypass the condition
"if (requestedAt > lastUpdatedAt)" in tests.
7 vuotta sitten
Sébastien Lesaint
718789f18f
SONAR-8192 rename DefaultOrganizationProviderRule to TestDefaultOrganizationProvider
7 vuotta sitten
Simon Brandhof
2f8ff37deb
Refactor some tests using DbTester
7 vuotta sitten
Simon Brandhof
4e31db63cb
Clean-up GroupMembershipDao
Remove the unused Ruby WS /user_groups/search and the
related Java code.
7 vuotta sitten
Julien Lancelot
65d3b1d057
SONAR-7907 It should be possible to add SCM account that contains comma
7 vuotta sitten
Simon Brandhof
42f5097916
SONAR-7908 allow web followers to index docs into Elasticsearch
7 vuotta sitten
Simon Brandhof
f79030e299
SONAR-7678 server-side stateless settings
* Settings class becomes abstract as multiple implementations
are used. Can't become an interface for binary
backward-compatibility of API
* tests should use MapSettings, an in-memory implementation
of Settings
* web server uses a thread-specific cache of settings when
processing HTTP requests
* web server does not have a cache of settings during startup,
except for the system settings loaded from sonar.properties
* Compute Engine uses a thread-specific cache of settings when
processing a task. Cache is clear at end of task.
* some useless methods of PersistentSettings are removed
7 vuotta sitten
Simon Brandhof
98df2f0031
Refactor usage of EsTester
This JUnit ExternalResource has to be used
as @Rule but not @ClassRule in order to
prepare move to Elasticsearch 2.x.
8 vuotta sitten
Simon Brandhof
3e2cf4f39b
SONAR-7641 refactor UserIndex
- remove unused method getByLogin()
- refactor tests to prepare removal of _id path (required for ES 2.3)
8 vuotta sitten
Julien Lancelot
d26a5ac773
SONAR-7254 Feed user.local when creating/updating/reactivating a user
8 vuotta sitten
Julien Lancelot
b88548975f
SONAR-7254 Replace usage of UserIndex.getByLogin() by UserDao.selectOrFailByLogin()
8 vuotta sitten
Simon Brandhof
48d5099ff5
Remove unused annotation @DbTests
8 vuotta sitten
Julien Lancelot
5b6b5bd5e0
SONAR-7330 Remove old DbClient in server
8 vuotta sitten
Simon Brandhof
f5d3461ffd
Fix project title in copyright headers
8 vuotta sitten