]> source.dussan.org Git - sonarqube.git/commit
UserSession should not be used when defining WS
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Thu, 23 Jun 2016 07:51:38 +0000 (09:51 +0200)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Wed, 29 Jun 2016 06:41:53 +0000 (08:41 +0200)
commit2ec26550db9c30a64f114acdee307f51775dd944
tree55a22a6ddbadcefd45485a173d4e2ed8d8db2fe5
parent76e0edc5acd6a67b735e9dc719b2faa159f5212b
UserSession should not be used when defining WS

 As UserSession is not set at startup, using it to get the user locale is useless.
 It's netter to directly use English locale (which is the default value)
server/sonar-server/src/main/java/org/sonar/server/component/ws/SearchAction.java
server/sonar-server/src/main/java/org/sonar/server/component/ws/TreeAction.java
server/sonar-server/src/main/java/org/sonar/server/measure/ws/ComponentTreeAction.java
server/sonar-server/src/main/java/org/sonar/server/permission/ws/SearchProjectPermissionsAction.java
server/sonar-server/src/main/java/org/sonar/server/permission/ws/template/BulkApplyTemplateAction.java
server/sonar-server/src/main/java/org/sonar/server/permission/ws/template/SetDefaultTemplateAction.java
server/sonar-server/src/main/java/org/sonar/server/ws/WsParameterBuilder.java
server/sonar-server/src/test/java/org/sonar/server/measure/ws/ComponentTreeActionTest.java
server/sonar-server/src/test/java/org/sonar/server/measure/ws/MeasuresWsTest.java
server/sonar-server/src/test/java/org/sonar/server/permission/ws/template/BulkApplyTemplateActionTest.java