Skip to content

Commit

Permalink
chore(merge): release-10.2.0 into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
bonita-ci committed Sep 17, 2024
2 parents 7b9a195 + 241a522 commit dfc5e1f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@
* valid, is on the right scope (tenant or platform), and renew it</li>
* <li>When the method is <b>NOT</b> annotated with {@link CustomTransactions}, it opens a transaction</li>
* <li>When the method is deprecated, it print a warning</li>
* <li>When the method or class is annotated with {@link AvailableInMaintenanceMode}, it verifies the maintenance mode
* is enabled</li>
* <li>When the method or class is <b>NOT</b> annotated with {@link AvailableInMaintenanceMode}, it verifies the
* maintenance mode
* is disabled</li>
* <li>When the method or class is annotated with {@link AvailableInMaintenanceMode} and onlyAvailableInMaintenanceMode
* is set
* to true, it verifies the maintenance mode is enabled</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public void proceedWithFiltering(ServletRequest request, ServletResponse respons
}
} catch (final InvalidSessionException e) {
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("Invalid Bonita engine session.", e.getMessage());
LOGGER.debug("Invalid Bonita engine session: {}", e.getMessage());
}
SessionUtil.sessionLogout(httpServletRequest.getSession());
((HttpServletResponse) response).setStatus(HttpServletResponse.SC_UNAUTHORIZED);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ public void testFilterWithExcludedURL() throws Exception {
}

@Test
public void testMatchExcludePatterns() throws Exception {
public void testMatchExcludePatterns() {
matchExcludePattern("http://host/bonita/portal/resource/page/API/system/i18ntranslation", true);
matchExcludePattern("http://host/bonita/apps/app/API/system/i18ntranslation", true);
matchExcludePattern("http://host/bonita/API/system/i18ntranslation", true);
Expand All @@ -294,17 +294,17 @@ public void testMatchExcludePatterns() throws Exception {
}

@Test
public void testCompileNullPattern() throws Exception {
public void testCompileNullPattern() {
assertThat(restAPIAuthorizationFilter.compilePattern(null)).isNull();
}

@Test
public void testCompileWrongPattern() throws Exception {
public void testCompileWrongPattern() {
assertThat(restAPIAuthorizationFilter.compilePattern("((((")).isNull();
}

@Test
public void testCompileSimplePattern() throws Exception {
public void testCompileSimplePattern() {
final String patternToCompile = "test";
assertThat(restAPIAuthorizationFilter.compilePattern(patternToCompile)).isNotNull().has(new Condition<>() {

Expand All @@ -316,7 +316,7 @@ public boolean matches(final Pattern pattern) {
}

@Test
public void testCompileExcludePattern() throws Exception {
public void testCompileExcludePattern() {
final String patternToCompile = RestAPIAuthorizationFilter.AUTHORIZATION_FILTER_EXCLUDED_PAGES_PATTERN;
assertThat(restAPIAuthorizationFilter.compilePattern(patternToCompile)).isNotNull().has(new Condition<>() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ custompage_adminBDMBonita=[bdm_access_control, bdm_management, bdm_visualization
custompage_adminResourceListBonita=[application_visualization, form_visualization, page_management, profile_management, profile_visualization]
custompage_adminApplicationListBonita=[application_management, application_visualization, organization_visualization, profile_visualization, tenant_platform_visualization]
custompage_adminApplicationDetailsBonita=[application_management, application_visualization, organization_visualization, page_management, profile_visualization, tenant_platform_visualization]
custompage_adminLicenseBonita=[platform_management, tenant_platform_visualization]
custompage_adminLicenseBonita=[tenant_platform_visualization]
custompage_tenantStatusBonita=[license, tenant_platform_management, tenant_platform_visualization]
custompage_applicationDirectoryBonita=[application_visualization, organization_visualization, tenant_platform_visualization]
custompage_home=[]
Expand Down

0 comments on commit dfc5e1f

Please sign in to comment.