Jacek
97fd4b10e7
SONAR-12723 Filter hotspots in api/issues/bulk_change
4 anni fa
Sébastien Lesaint
e13456fdb4
SONAR-12717 add sort and paging to api/hotspots/search
4 anni fa
Sébastien Lesaint
f816ceb0a3
SONAR-12717 a rule must map to a single SQ Security Category
if it's not the case, only one is taken into account
a WARN log is displayed at startup to indicate rules wich do not comply
4 anni fa
Sébastien Lesaint
3821d2d07b
SONAR-12717 use enum for SQ categories in SecurityStandards
4 anni fa
Sébastien Lesaint
8c4a7402f8
SONAR-12717 refactor SecurityStandardHelper into SecurityStandards
and cleanup responsibility for parsing serialized tags and security standards into table RULES
4 anni fa
Wouter Admiraal
3f6f549627
Format all headers for 2020
4 anni fa
Michal Duda
87e7d062dd
SONAR-12023 Remove "Not OWASP" CWE mapping, and move all unmapped CWEs to "Others" (SonarSource Security)
4 anni fa
Michal Duda
3b7745121f
SONAR-11180 add security facet to api/rules/search
5 anni fa
Sébastien Lesaint
a8f011b7f5
SONAR-11791 use single type ES indices
5 anni fa
Duarte Meneses
252b3897e7
Fix license headers for 2019
5 anni fa
Eric Hartmann
069f74065c
SONAR-11370 Extract Owasp, SansTop25 constant to a dedicated helper
5 anni fa
Sébastien Lesaint
7acd940328
move UserSession out of sonar-server-common
and as a consequence remove any need to have UserSession in Compute Engine
5 anni fa
Julien HENRY
5069a9f3a9
SONAR-10978 new WS to return security reports data
5 anni fa
Janos Gyerik
4c237919e3
Move SANS_TOP_25_* constants to sonar-server-common
5 anni fa
Julien HENRY
d1c074ce4e
SONAR-10980 Index security standards in ES and update issues/search WS
5 anni fa
Sébastien Lesaint
8e1dc1628c
move ES index, indexer and client to sonar-server-common
5 anni fa
Guillaume Jambet
26fb4f056b
SONAR-10597 Use user UUID for ISSUES#ASSIGNEE
* SONAR-10597 add getUuid() on user Session
* SONAR-10597 renames ISSUES.ASSIGNEE to ASSIGNEE_UUID
* SONAR-10597 use assigneeUuid when assigning an Issue from ws
* SONAR-10597 use assigneeUuid when assigning an Issue from ce
* SONAR-10597 use assigneeUuid in issue search
* SONAR-10597 use assigneeUuid in batch issue
* SONAR-10597 Ignoring Tests failing in IssueChange
6 anni fa
Simon Brandhof
cbac281787
Rename EsTester factory methods
6 anni fa
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 anni fa
Simon Brandhof
c0d2705e61
Fix license headers for 2018
6 anni fa
Eric Hartmann
9a4c4e5064
SONAR-9760 Throw an exception when indexation is failing
6 anni fa
Julien Lancelot
47ef3bd0dc
SONAR-9616 Support branch in api/issues/search
6 anni fa
Julien Lancelot
e31a01aedd
SONAR-9616 Handle branch in batch/issues
6 anni fa
Simon Brandhof
d3a6ef3150
SONAR-9616 index the issues part of a non-main branch
6 anni fa
Daniel Schwarz
01472db102
SONAR-8798 allow "epoch_second" as alternative ES date format
6 anni fa
Simon Brandhof
99c6c21439
Remove useless usages of projects.authorization_updated_at
but keep the db column
6 anni fa
Eric Hartmann
329a3c594a
SONAR-9514 SONAR-9516 SONAR-9517 ES resilience from POST WS
6 anni fa
Simon Brandhof
c526a17a16
SONAR-9567 disable storage of doc source in ES index issues/issue
6 anni fa
Simon Brandhof
ac7679e4c8
SONAR-9567 drop fields "attributes", "gap" and "updatedAt" from ES index "issues"
6 anni fa
Julien HENRY
5694a472f1
SONAR-9478 Replace Settings by Configuration
6 anni fa
Julien HENRY
875e23e29f
SONAR-9478 Deprecate Settings and introduce new Configuration interface
6 anni fa
Sébastien Lesaint
e21722bdc3
SONAR-9140 support public flag in ComponentTesting/ComponentDbTester
7 anni fa
Simon Brandhof
e3888ab7ad
SONAR-9052 Populate the field organization of index issues/issue
7 anni fa
Daniel Schwarz
9b223226af
SONAR-8092 only index empty types (not all types of an empty index)
Old behaviour: If one of the types of an Indexer is empty, reindex all of its types. New behaviour: Reindex all empty types.
7 anni fa
Daniel Schwarz
0050be937f
SONAR-8092 index issues when changed in the db, ignore updatedAt
7 anni fa
Daniel Schwarz
5e5e3912f7
SONAR-8092 do not rely on updated-timestamp for indexing anymore
7 anni fa
Daniel Schwarz
3421203415
SONAR-8092 combine es index name and es type name into IndexTypeId
7 anni fa
Daniel Schwarz
beba21a589
SONAR-8092 generalise startup of es indexers
7 anni fa
Teryk Bellahsene
cfa372a57a
SONAR-8637 Update POM parent version
7 anni fa
Simon Brandhof
934bf664b8
SONAR-8704 Refactor Elasticsearch types "authorization"
Multiple indices define a type "authorization".
The related code was duplicated, and sometimes
had some minor differences. This commits share
all the management of these types in the same
bunch of classes.
It also allows to quickly create a project-related
index, without having to fix the different locations
which may require project re-indexing.
7 anni fa
Julien Lancelot
a2387e7c4b
SONAR-7292 Move IssueTesting to sonar-db for IssueDto and keep IssueDocTesting for IssueDoc
7 anni fa
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 anni fa
Simon Brandhof
42f5097916
SONAR-7908 allow web followers to index docs into Elasticsearch
7 anni fa
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 anni fa
Simon Brandhof
05266f9488
SONAR-7653 upgrade to Elasticsearch 2.3.3
8 anni fa
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 anni fa
Julien Lancelot
7de0b077cf
Remove useless parameter refresh
8 anni fa
Julien Lancelot
fea13c08b8
SONAR-7108 Delete Issues from index when purging old issues
Purge from index was already working when property 'sonar.dbcleaner.daysBeforeDeletingClosedIssues' was not equal to 0. Now it's working whatever the value is.
8 anni fa
Simon Brandhof
48d5099ff5
Remove unused annotation @DbTests
8 anni fa
Julien Lancelot
5b6b5bd5e0
SONAR-7330 Remove old DbClient in server
8 anni fa