Browse Source

SONAR-19761 Change documentation URL

tags/10.2.0.77647
Wouter Admiraal 9 months ago
parent
commit
c2b021b216
31 changed files with 40 additions and 40 deletions
  1. 2
    2
      README.md
  2. 1
    1
      server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v100/LogMessageIfSonarScimEnabledPresentProperty.java
  3. 1
    1
      server/sonar-db-migration/src/test/java/org/sonar/server/platform/db/migration/version/v100/LogMessageIfSonarScimEnabledPresentPropertyTest.java
  4. 2
    2
      server/sonar-web/src/main/js/app/components/__tests__/DocumentationRedirect-test.tsx
  5. 1
    1
      server/sonar-web/src/main/js/app/components/app-state/AppStateContext.tsx
  6. 1
    1
      server/sonar-web/src/main/js/app/components/app-state/__tests__/__snapshots__/AppStateContextProvider-test.tsx.snap
  7. 1
    1
      server/sonar-web/src/main/js/app/components/indexation/PageUnavailableDueToIndexation.tsx
  8. 1
    1
      server/sonar-web/src/main/js/app/components/indexation/__tests__/__snapshots__/IndexationContextProvider-test.tsx.snap
  9. 1
    1
      server/sonar-web/src/main/js/app/components/indexation/__tests__/__snapshots__/PageUnavailableDueToIndexation-test.tsx.snap
  10. 1
    1
      server/sonar-web/src/main/js/apps/issues/sidebar/Sidebar.tsx
  11. 1
    1
      server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotDisabledFilterTooltip-test.tsx.snap
  12. 1
    1
      server/sonar-web/src/main/js/helpers/mocks/definitions-list.ts
  13. 1
    1
      server/sonar-web/src/main/js/helpers/testMocks.ts
  14. 1
    1
      server/sonar-webserver-core/src/main/java/org/sonar/server/platform/DatabaseServerCompatibility.java
  15. 2
    2
      server/sonar-webserver-core/src/test/java/org/sonar/server/platform/DatabaseServerCompatibilityTest.java
  16. 2
    2
      server/sonar-webserver-webapi/src/it/java/org/sonar/server/newcodeperiod/ws/ListActionIT.java
  17. 2
    2
      server/sonar-webserver-webapi/src/it/java/org/sonar/server/newcodeperiod/ws/SetActionIT.java
  18. 2
    2
      server/sonar-webserver-webapi/src/it/java/org/sonar/server/newcodeperiod/ws/ShowActionIT.java
  19. 2
    2
      server/sonar-webserver-webapi/src/it/java/org/sonar/server/newcodeperiod/ws/UnsetActionIT.java
  20. 1
    1
      server/sonar-webserver-webapi/src/main/resources/org/sonar/server/ce/ws/activity-example.json
  21. 1
    1
      server/sonar-webserver-webapi/src/main/resources/org/sonar/server/ce/ws/task-example.json
  22. 1
    1
      server/sonar-webserver-webapi/src/test/java/org/sonar/server/ui/ws/GlobalActionTest.java
  23. 1
    1
      server/sonar-webserver/src/main/java/org/sonar/server/platform/PlatformImpl.java
  24. 1
    1
      sonar-application/src/main/assembly/conf/sonar.properties
  25. 1
    1
      sonar-application/src/main/assembly/extensions/jdbc-driver/oracle/README.txt
  26. 1
    1
      sonar-core/src/main/java/org/sonar/core/config/CorePropertyDefinitions.java
  27. 1
    1
      sonar-core/src/main/java/org/sonar/core/documentation/DefaultDocumentationLinkGenerator.java
  28. 2
    2
      sonar-markdown/src/main/java/org/sonar/markdown/HtmlLinkChannel.java
  29. 2
    2
      sonar-markdown/src/test/java/org/sonar/markdown/MarkdownTest.java
  30. 1
    1
      sonar-scanner-engine/src/main/java/org/sonar/scanner/rule/DefaultActiveRulesLoader.java
  31. 1
    1
      sonar-scanner-engine/src/test/java/org/sonar/scanner/rule/DefaultActiveRulesLoaderTest.java

+ 2
- 2
README.md View File



- [Website](https://www.sonarqube.org) - [Website](https://www.sonarqube.org)
- [Download](https://www.sonarqube.org/downloads/) - [Download](https://www.sonarqube.org/downloads/)
- [Documentation](https://docs.sonarqube.org)
- [Documentation](https://docs.sonarsource.com/sonarqube)
- [Twitter](https://twitter.com/SonarQube) - [Twitter](https://twitter.com/SonarQube)
- [SonarSource](https://www.sonarsource.com), author of SonarQube - [SonarSource](https://www.sonarsource.com), author of SonarQube
- [Issue tracking](https://jira.sonarsource.com/browse/SONAR/), read-only. Only SonarSourcers can create tickets. - [Issue tracking](https://jira.sonarsource.com/browse/SONAR/), read-only. Only SonarSourcers can create tickets.


## Have Question or Feedback? ## Have Question or Feedback?


For support questions ("How do I?", "I got this error, why?", ...), please first read the [documentation](https://docs.sonarqube.org) and then head to the [SonarSource Community](https://community.sonarsource.com/c/help/sq/10). The answer to your question has likely already been answered! 🤓
For support questions ("How do I?", "I got this error, why?", ...), please first read the [documentation](https://docs.sonarsource.com/sonarqube) and then head to the [SonarSource Community](https://community.sonarsource.com/c/help/sq/10). The answer to your question has likely already been answered! 🤓


Be aware that this forum is a community, so the standard pleasantries ("Hi", "Thanks", ...) are expected. And if you don't get an answer to your thread, you should sit on your hands for at least three days before bumping it. Operators are not standing by. 😄 Be aware that this forum is a community, so the standard pleasantries ("Hi", "Thanks", ...) are expected. And if you don't get an answer to your thread, you should sit on your hands for at least three days before bumping it. Operators are not standing by. 😄



+ 1
- 1
server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v100/LogMessageIfSonarScimEnabledPresentProperty.java View File



private static final Logger LOG = LoggerFactory.getLogger(LogMessageIfSonarScimEnabledPresentProperty.class); private static final Logger LOG = LoggerFactory.getLogger(LogMessageIfSonarScimEnabledPresentProperty.class);
public static final String SONAR_SCIM_ENABLED = "sonar.scim.enabled"; public static final String SONAR_SCIM_ENABLED = "sonar.scim.enabled";
private static final String SCIM_DOC_URL = "https://docs.sonarqube.org/10.1/instance-administration/authentication/saml/scim/overview/";
private static final String SCIM_DOC_URL = "https://docs.sonarsource.com/sonarqube/10.1/instance-administration/authentication/saml/scim/overview/";


public LogMessageIfSonarScimEnabledPresentProperty(Database db) { public LogMessageIfSonarScimEnabledPresentProperty(Database db) {
super(db); super(db);

+ 1
- 1
server/sonar-db-migration/src/test/java/org/sonar/server/platform/db/migration/version/v100/LogMessageIfSonarScimEnabledPresentPropertyTest.java View File

.containsExactly("'" + SONAR_SCIM_ENABLED + "' property is defined but not read anymore. Please read the upgrade notes" + .containsExactly("'" + SONAR_SCIM_ENABLED + "' property is defined but not read anymore. Please read the upgrade notes" +
" for the instruction to upgrade. User provisioning is deactivated until reactivated from the SonarQube" + " for the instruction to upgrade. User provisioning is deactivated until reactivated from the SonarQube" +
" Administration Interface (\"General->Authentication\"). " " Administration Interface (\"General->Authentication\"). "
+ "See documentation: https://docs.sonarqube.org/10.1/instance-administration/authentication/saml/scim/overview/");
+ "See documentation: https://docs.sonarsource.com/sonarqube/10.1/instance-administration/authentication/saml/scim/overview/");
} }


@Test @Test

+ 2
- 2
server/sonar-web/src/main/js/app/components/__tests__/DocumentationRedirect-test.tsx View File



expect(await screen.findByRole('link')).toHaveAttribute( expect(await screen.findByRole('link')).toHaveAttribute(
'href', 'href',
'https://docs.sonarqube.org/10.0/land'
'https://docs.sonarsource.com/sonarqube/10.0/land'
); );
}); });




expect(await screen.findByRole('link')).toHaveAttribute( expect(await screen.findByRole('link')).toHaveAttribute(
'href', 'href',
'https://docs.sonarqube.org/latest/land'
'https://docs.sonarsource.com/sonarqube/latest/land'
); );
}); });



+ 1
- 1
server/sonar-web/src/main/js/app/components/app-state/AppStateContext.tsx View File

qualifiers: [], qualifiers: [],
settings: {}, settings: {},
version: '', version: '',
documentationUrl: 'https://docs.sonarqube.org/latest',
documentationUrl: 'https://docs.sonarsource.com/sonarqube/latest',
}; };
export const AppStateContext = React.createContext<AppState>(DEFAULT_APP_STATE); export const AppStateContext = React.createContext<AppState>(DEFAULT_APP_STATE);

+ 1
- 1
server/sonar-web/src/main/js/app/components/app-state/__tests__/__snapshots__/AppStateContextProvider-test.tsx.snap View File

<AppStateContextProvider <AppStateContextProvider
appState={ appState={
{ {
"documentationUrl": "https://docs.sonarqube.org/10.0",
"documentationUrl": "https://docs.sonarsource.com/sonarqube/10.0",
"edition": "community", "edition": "community",
"productionDatabase": true, "productionDatabase": true,
"qualifiers": [ "qualifiers": [

+ 1
- 1
server/sonar-web/src/main/js/app/components/indexation/PageUnavailableDueToIndexation.tsx View File

id="indexation.page_unavailable.description.additional_information" id="indexation.page_unavailable.description.additional_information"
values={{ values={{
link: ( link: (
<Link to="https://docs.sonarqube.org/latest/instance-administration/reindexing/">
<Link to="https://docs.sonarsource.com/sonarqube/latest/instance-administration/reindexing/">
{translate('learn_more')} {translate('learn_more')}
</Link> </Link>
), ),

+ 1
- 1
server/sonar-web/src/main/js/app/components/indexation/__tests__/__snapshots__/IndexationContextProvider-test.tsx.snap View File

<IndexationContextProvider <IndexationContextProvider
appState={ appState={
{ {
"documentationUrl": "https://docs.sonarqube.org/10.0",
"documentationUrl": "https://docs.sonarsource.com/sonarqube/10.0",
"edition": "community", "edition": "community",
"needIssueSync": true, "needIssueSync": true,
"productionDatabase": true, "productionDatabase": true,

+ 1
- 1
server/sonar-web/src/main/js/app/components/indexation/__tests__/__snapshots__/PageUnavailableDueToIndexation-test.tsx.snap View File

values={ values={
{ {
"link": <StandoutLink "link": <StandoutLink
to="https://docs.sonarqube.org/latest/instance-administration/reindexing/"
to="https://docs.sonarsource.com/sonarqube/latest/instance-administration/reindexing/"
> >
learn_more learn_more
</StandoutLink>, </StandoutLink>,

+ 1
- 1
server/sonar-web/src/main/js/apps/issues/sidebar/Sidebar.tsx View File

id="indexation.filters_unavailable" id="indexation.filters_unavailable"
values={{ values={{
link: ( link: (
<Link to="https://docs.sonarqube.org/latest/instance-administration/reindexing/">
<Link to="https://docs.sonarsource.com/sonarqube/latest/instance-administration/reindexing/">
{translate('learn_more')} {translate('learn_more')}
</Link> </Link>
), ),

+ 1
- 1
server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotDisabledFilterTooltip-test.tsx.snap View File

</span> </span>
<a <a
class="sw-ml-1" class="sw-ml-1"
href="https://docs.sonarqube.org/latest/instance-administration/reindexing/"
href="https://docs.sonarsource.com/sonarqube/latest/instance-administration/reindexing/"
rel="noopener noreferrer" rel="noopener noreferrer"
target="_blank" target="_blank"
> >

+ 1
- 1
server/sonar-web/src/main/js/helpers/mocks/definitions-list.ts View File

key: 'sonar.cobol.aucobol.preprocessor.directives.default', key: 'sonar.cobol.aucobol.preprocessor.directives.default',
name: 'AcuCobol preprocessor default directives', name: 'AcuCobol preprocessor default directives',
description: description:
'This property allows to set preprocessor directives used to compile every COBOL program. See the \'ACUCOBOL-GT Source Code Control directives\' section in the <a target="_blank" href="http://docs.sonarqube.org/display/PLUG/COBOL+Plugin+Advanced+Configuration">documentation of the plugin</a>.',
'This property allows to set preprocessor directives used to compile every COBOL program. See the \'ACUCOBOL-GT Source Code Control directives\' section in the <a target="_blank" href="http://docs.sonarsource.com/sonarqube/display/PLUG/COBOL+Plugin+Advanced+Configuration">documentation of the plugin</a>.',
category: 'COBOL', category: 'COBOL',
subCategory: 'Preprocessor', subCategory: 'Preprocessor',
options: [], options: [],

+ 1
- 1
server/sonar-web/src/main/js/helpers/testMocks.ts View File

qualifiers: ['TRK'], qualifiers: ['TRK'],
settings: {}, settings: {},
version: '1.0', version: '1.0',
documentationUrl: 'https://docs.sonarqube.org/10.0',
documentationUrl: 'https://docs.sonarsource.com/sonarqube/10.0',
...overrides, ...overrides,
}; };
} }

+ 1
- 1
server/sonar-webserver-core/src/main/java/org/sonar/server/platform/DatabaseServerCompatibility.java View File

} }


String msg = "The database must be manually upgraded. Please backup the database and browse /setup. " String msg = "The database must be manually upgraded. Please backup the database and browse /setup. "
+ "For more information: https://docs.sonarqube.org/latest/setup/upgrading";
+ "For more information: https://docs.sonarsource.com/sonarqube/latest/setup/upgrading";
LoggerFactory.getLogger(DatabaseServerCompatibility.class).warn(msg); LoggerFactory.getLogger(DatabaseServerCompatibility.class).warn(msg);
Logger logger = LoggerFactory.getLogger(STARTUP_LOGGER_NAME); Logger logger = LoggerFactory.getLogger(STARTUP_LOGGER_NAME);
logger.warn(HIGHLIGHTER); logger.warn(HIGHLIGHTER);

+ 2
- 2
server/sonar-webserver-core/src/test/java/org/sonar/server/platform/DatabaseServerCompatibilityTest.java View File

assertThat(logTester.logs()).hasSize(4); assertThat(logTester.logs()).hasSize(4);
assertThat(logTester.logs(Level.WARN)).contains( assertThat(logTester.logs(Level.WARN)).contains(
"The database must be manually upgraded. Please backup the database and browse /setup. " "The database must be manually upgraded. Please backup the database and browse /setup. "
+ "For more information: https://docs.sonarqube.org/latest/setup/upgrading",
+ "For more information: https://docs.sonarsource.com/sonarqube/latest/setup/upgrading",
"################################################################################", "################################################################################",
"The database must be manually upgraded. Please backup the database and browse /setup. " "The database must be manually upgraded. Please backup the database and browse /setup. "
+ "For more information: https://docs.sonarqube.org/latest/setup/upgrading",
+ "For more information: https://docs.sonarsource.com/sonarqube/latest/setup/upgrading",
"################################################################################"); "################################################################################");
} }



+ 2
- 2
server/sonar-webserver-webapi/src/it/java/org/sonar/server/newcodeperiod/ws/ListActionIT.java View File



@Before @Before
public void setup() { public void setup() {
when(documentationLinkGenerator.getDocumentationLink(any())).thenReturn("https://docs.sonarqube.org/9.9/project-administration/defining-new-code/");
when(documentationLinkGenerator.getDocumentationLink(any())).thenReturn("https://docs.sonarsource.com/sonarqube/9.9/project-administration/defining-new-code/");
ws = new WsActionTester(new ListAction(dbClient, userSession, componentFinder, dao, documentationLinkGenerator)); ws = new WsActionTester(new ListAction(dbClient, userSession, componentFinder, dao, documentationLinkGenerator));
} }




WebService.Action definition = ws.getDef(); WebService.Action definition = ws.getDef();


assertThat(definition.description()).contains("https://docs.sonarqube.org/9.9/project-administration/defining-new-code/");
assertThat(definition.description()).contains("https://docs.sonarsource.com/sonarqube/9.9/project-administration/defining-new-code/");


assertThat(definition.key()).isEqualTo("list"); assertThat(definition.key()).isEqualTo("list");
assertThat(definition.isInternal()).isFalse(); assertThat(definition.isInternal()).isFalse();

+ 2
- 2
server/sonar-webserver-webapi/src/it/java/org/sonar/server/newcodeperiod/ws/SetActionIT.java View File



@Before @Before
public void setup() { public void setup() {
when(documentationLinkGenerator.getDocumentationLink(any())).thenReturn("https://docs.sonarqube.org/9.9/project-administration/defining-new-code/");
when(documentationLinkGenerator.getDocumentationLink(any())).thenReturn("https://docs.sonarsource.com/sonarqube/9.9/project-administration/defining-new-code/");
ws = new WsActionTester(new SetAction(dbClient, userSession, componentFinder, editionProvider, dao, documentationLinkGenerator)); ws = new WsActionTester(new SetAction(dbClient, userSession, componentFinder, editionProvider, dao, documentationLinkGenerator));
} }


public void test_definition() { public void test_definition() {
WebService.Action definition = ws.getDef(); WebService.Action definition = ws.getDef();


assertThat(definition.description()).contains("https://docs.sonarqube.org/9.9/project-administration/defining-new-code/");
assertThat(definition.description()).contains("https://docs.sonarsource.com/sonarqube/9.9/project-administration/defining-new-code/");


assertThat(definition.key()).isEqualTo("set"); assertThat(definition.key()).isEqualTo("set");
assertThat(definition.isInternal()).isFalse(); assertThat(definition.isInternal()).isFalse();

+ 2
- 2
server/sonar-webserver-webapi/src/it/java/org/sonar/server/newcodeperiod/ws/ShowActionIT.java View File



@Before @Before
public void setup() { public void setup() {
when(documentationLinkGenerator.getDocumentationLink(any())).thenReturn("https://docs.sonarqube.org/latest/project-administration/defining-new-code/");
when(documentationLinkGenerator.getDocumentationLink(any())).thenReturn("https://docs.sonarsource.com/sonarqube/latest/project-administration/defining-new-code/");
ws = new WsActionTester(new ShowAction(dbClient, userSession, componentFinder, dao, documentationLinkGenerator)); ws = new WsActionTester(new ShowAction(dbClient, userSession, componentFinder, dao, documentationLinkGenerator));
} }


public void test_definition() { public void test_definition() {
WebService.Action definition = ws.getDef(); WebService.Action definition = ws.getDef();


assertThat(definition.description()).contains("https://docs.sonarqube.org/latest/project-administration/defining-new-code/");
assertThat(definition.description()).contains("https://docs.sonarsource.com/sonarqube/latest/project-administration/defining-new-code/");


assertThat(definition.key()).isEqualTo("show"); assertThat(definition.key()).isEqualTo("show");
assertThat(definition.isInternal()).isFalse(); assertThat(definition.isInternal()).isFalse();

+ 2
- 2
server/sonar-webserver-webapi/src/it/java/org/sonar/server/newcodeperiod/ws/UnsetActionIT.java View File



@Before @Before
public void setup(){ public void setup(){
when(documentationLinkGenerator.getDocumentationLink(any())).thenReturn("https://docs.sonarqube.org/9.9/project-administration/defining-new-code/");
when(documentationLinkGenerator.getDocumentationLink(any())).thenReturn("https://docs.sonarsource.com/sonarqube/9.9/project-administration/defining-new-code/");
ws = new WsActionTester(new UnsetAction(dbClient, userSession, componentFinder, editionProvider, dao, documentationLinkGenerator)); ws = new WsActionTester(new UnsetAction(dbClient, userSession, componentFinder, editionProvider, dao, documentationLinkGenerator));
} }


public void test_definition() { public void test_definition() {
WebService.Action definition = ws.getDef(); WebService.Action definition = ws.getDef();


assertThat(definition.description()).contains("https://docs.sonarqube.org/9.9/project-administration/defining-new-code/");
assertThat(definition.description()).contains("https://docs.sonarsource.com/sonarqube/9.9/project-administration/defining-new-code/");


assertThat(definition.key()).isEqualTo("unset"); assertThat(definition.key()).isEqualTo("unset");
assertThat(definition.isInternal()).isFalse(); assertThat(definition.isInternal()).isFalse();

+ 1
- 1
server/sonar-webserver-webapi/src/main/resources/org/sonar/server/ce/ws/activity-example.json View File

"warningCount": 2, "warningCount": 2,
"warnings": [ "warnings": [
"The properties \u0027sonar.login\u0027 and \u0027sonar.password\u0027 are deprecated and will be removed in the future. Please pass a token with the \u0027sonar.token\u0027 property instead.", "The properties \u0027sonar.login\u0027 and \u0027sonar.password\u0027 are deprecated and will be removed in the future. Please pass a token with the \u0027sonar.token\u0027 property instead.",
"Missing blame information for 2 files. This may lead to some features not working correctly. Please check the analysis logs and refer to \u003ca href\u003d\"https://docs.sonarqube.org/latest/analyzing-source-code/scm-integration/\" rel\u003d\"noopener noreferrer\" target\u003d\"_blank\"\u003ethe documentation\u003c/a\u003e."
"Missing blame information for 2 files. This may lead to some features not working correctly. Please check the analysis logs and refer to \u003ca href\u003d\"https://docs.sonarsource.com/sonarqube/latest/analyzing-source-code/scm-integration/\" rel\u003d\"noopener noreferrer\" target\u003d\"_blank\"\u003ethe documentation\u003c/a\u003e."
] ]
}, },
{ {

+ 1
- 1
server/sonar-webserver-webapi/src/main/resources/org/sonar/server/ce/ws/task-example.json View File

"warningCount": 2, "warningCount": 2,
"warnings": [ "warnings": [
"The properties 'sonar.login' and 'sonar.password' are deprecated and will be removed in the future. Please pass a token with the 'sonar.token' property instead.", "The properties 'sonar.login' and 'sonar.password' are deprecated and will be removed in the future. Please pass a token with the 'sonar.token' property instead.",
"Missing blame information for 2 files. This may lead to some features not working correctly. Please check the analysis logs and refer to <a href=\"https://docs.sonarqube.org/latest/analyzing-source-code/scm-integration/\" rel=\"noopener noreferrer\" target=\"_blank\">the documentation</a>."
"Missing blame information for 2 files. This may lead to some features not working correctly. Please check the analysis logs and refer to <a href=\"https://docs.sonarsource.com/sonarqube/latest/analyzing-source-code/scm-integration/\" rel=\"noopener noreferrer\" target=\"_blank\">the documentation</a>."
] ]
} }
} }

+ 1
- 1
server/sonar-webserver-webapi/src/test/java/org/sonar/server/ui/ws/GlobalActionTest.java View File

@Test @Test
public void call_shouldReturnDocumentationUrl() { public void call_shouldReturnDocumentationUrl() {
init(); init();
String url = "https://docs.sonarqube.org/10.0";
String url = "https://docs.sonarsource.com/sonarqube/10.0";
when(documentationLinkGenerator.getDocumentationLink(null)).thenReturn(url); when(documentationLinkGenerator.getDocumentationLink(null)).thenReturn(url);


String json = call(); String json = call();

+ 1
- 1
server/sonar-webserver/src/main/java/org/sonar/server/platform/PlatformImpl.java View File



// if AutoDbMigration kicked in or no DB migration was required, startup can be resumed in another thread // if AutoDbMigration kicked in or no DB migration was required, startup can be resumed in another thread
if (dbRequiresMigration()) { if (dbRequiresMigration()) {
LOGGER.info("Database needs to be migrated. Please refer to https://docs.sonarqube.org/latest/setup/upgrading");
LOGGER.info("Database needs to be migrated. Please refer to https://docs.sonarsource.com/sonarqube/latest/setup/upgrading");
} else { } else {
this.autoStarter = createAutoStarter(); this.autoStarter = createAutoStarter();



+ 1
- 1
sonar-application/src/main/assembly/conf/sonar.properties View File

# - be overridden by environment variables. The name of the corresponding environment variable is the # - be overridden by environment variables. The name of the corresponding environment variable is the
# upper-cased name of the property where all the dot ('.') and dash ('-') characters are replaced by # upper-cased name of the property where all the dot ('.') and dash ('-') characters are replaced by
# underscores ('_'). For example, to override 'sonar.web.systemPasscode' use 'SONAR_WEB_SYSTEMPASSCODE'. # underscores ('_'). For example, to override 'sonar.web.systemPasscode' use 'SONAR_WEB_SYSTEMPASSCODE'.
# - be encrypted. See https://docs.sonarqube.org/latest/instance-administration/security/#settings-encryption
# - be encrypted. See https://docs.sonarsource.com/sonarqube/latest/instance-administration/security/#settings-encryption


#-------------------------------------------------------------------------------------------------- #--------------------------------------------------------------------------------------------------
# DATABASE # DATABASE

+ 1
- 1
sonar-application/src/main/assembly/extensions/jdbc-driver/oracle/README.txt View File

Please copy an Oracle JDBC driver in this directory. See compatible versions at https://docs.sonarqube.org/latest/requirements/prerequisites-and-overview/.
Please copy an Oracle JDBC driver in this directory. See compatible versions at https://docs.sonarsource.com/sonarqube/latest/requirements/prerequisites-and-overview/.
Note that only a single JAR file is accepted. A failure is raised at startup if multiple JAR files are available. Note that only a single JAR file is accepted. A failure is raised at startup if multiple JAR files are available.

+ 1
- 1
sonar-core/src/main/java/org/sonar/core/config/CorePropertyDefinitions.java View File

.build(), .build(),
PropertyDefinition.builder(DOCUMENTATION_BASE_URL) PropertyDefinition.builder(DOCUMENTATION_BASE_URL)
.name("Base URL of the documentation") .name("Base URL of the documentation")
.description("Base URL to be used in SonarQube documentation links, such as <i>https://docs.sonarqube.org/</i>")
.description("Base URL to be used in SonarQube documentation links, such as <i>https://docs.sonarsource.com/sonarqube/</i>")
.defaultValue(DefaultDocumentationLinkGenerator.DOCUMENTATION_PUBLIC_URL) .defaultValue(DefaultDocumentationLinkGenerator.DOCUMENTATION_PUBLIC_URL)
.hidden() .hidden()
.type(STRING) .type(STRING)

+ 1
- 1
sonar-core/src/main/java/org/sonar/core/documentation/DefaultDocumentationLinkGenerator.java View File

import org.sonar.core.platform.SonarQubeVersion; import org.sonar.core.platform.SonarQubeVersion;


public class DefaultDocumentationLinkGenerator implements DocumentationLinkGenerator { public class DefaultDocumentationLinkGenerator implements DocumentationLinkGenerator {
public static final String DOCUMENTATION_PUBLIC_URL = "https://docs.sonarqube.org/";
public static final String DOCUMENTATION_PUBLIC_URL = "https://docs.sonarsource.com/sonarqube/";


private final String documentationBaseUrl; private final String documentationBaseUrl;



+ 2
- 2
sonar-markdown/src/main/java/org/sonar/markdown/HtmlLinkChannel.java View File

/** /**
* Markdown interprets text in brackets followed by text in parentheses to generate documented links. * Markdown interprets text in brackets followed by text in parentheses to generate documented links.
* *
* E.g., the input [See documentation](http://docs.sonarqube.org/display/SONAR) will produce
* {@literal<a href="http://docs.sonarqube.org/display/SONAR">}See documentation{@literal</a>}
* E.g., the input [See documentation](http://docs.sonarsource.com/sonarqube/display/SONAR) will produce
* {@literal<a href="http://docs.sonarsource.com/sonarqube/display/SONAR">}See documentation{@literal</a>}
*/ */
class HtmlLinkChannel extends RegexChannel<MarkdownOutput> { class HtmlLinkChannel extends RegexChannel<MarkdownOutput> {



+ 2
- 2
sonar-markdown/src/test/java/org/sonar/markdown/MarkdownTest.java View File



@Test @Test
public void shouldDecorateDocumentedLink() { public void shouldDecorateDocumentedLink() {
assertThat(Markdown.convertToHtml("For more details, please [check online documentation](http://docs.sonarqube.org/display/SONAR)."))
.isEqualTo("For more details, please <a href=\"http://docs.sonarqube.org/display/SONAR\" target=\"_blank\" rel=\"noopener noreferrer\">check online documentation</a>.");
assertThat(Markdown.convertToHtml("For more details, please [check online documentation](http://docs.sonarsource.com/sonarqube/display/SONAR)."))
.isEqualTo("For more details, please <a href=\"http://docs.sonarsource.com/sonarqube/display/SONAR\" target=\"_blank\" rel=\"noopener noreferrer\">check online documentation</a>.");
} }





+ 1
- 1
sonar-scanner-engine/src/main/java/org/sonar/scanner/rule/DefaultActiveRulesLoader.java View File

ActiveList activeList = actives.get(r.getKey()); ActiveList activeList = actives.get(r.getKey());
if (activeList == null) { if (activeList == null) {
throw MessageException.of("Elasticsearch indices have become inconsistent. Consider re-indexing. " + throw MessageException.of("Elasticsearch indices have become inconsistent. Consider re-indexing. " +
"Check documentation for more information https://docs.sonarqube.org/latest/setup/troubleshooting");
"Check documentation for more information https://docs.sonarsource.com/sonarqube/latest/setup/troubleshooting");
} }
Active active = activeList.getActiveList(0); Active active = activeList.getActiveList(0);



+ 1
- 1
sonar-scanner-engine/src/test/java/org/sonar/scanner/rule/DefaultActiveRulesLoaderTest.java View File

assertThatThrownBy(() -> loader.load("c+-test_c+-values-17445")) assertThatThrownBy(() -> loader.load("c+-test_c+-values-17445"))
.isInstanceOf(MessageException.class) .isInstanceOf(MessageException.class)
.hasMessage("Elasticsearch indices have become inconsistent. Consider re-indexing. " + .hasMessage("Elasticsearch indices have become inconsistent. Consider re-indexing. " +
"Check documentation for more information https://docs.sonarqube.org/latest/setup/troubleshooting");
"Check documentation for more information https://docs.sonarsource.com/sonarqube/latest/setup/troubleshooting");
} }


private String urlOfPage(int page) { private String urlOfPage(int page) {

Loading…
Cancel
Save