Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(backend): Test Java 21 and identify next steps after illegal (#28622) #28623

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
9f5eda8
deny and add opens
spbolton May 21, 2024
19703ee
update dnsjava
spbolton May 21, 2024
f248f4a
update windows bat options
spbolton Jun 3, 2024
363234c
build(deps): bump next from 14.1.0 to 14.1.1 in /examples/nextjs (#28…
dependabot[bot] May 21, 2024
5f2b0e8
Swapping display of Height/Width in UVE device selector (#28602)
jdcmsd May 21, 2024
42973c9
fix(Content Edit) : Binary D&D not working in Firefox (#28617)
rjvelazco May 21, 2024
51508e8
fix(Angular SDK):👷🏽‍♂️ Render dotCMS pages using @dotcms/client (#28625)
rjvelazco May 22, 2024
77a96d3
Issue 28486 list lang endpoint (#28611)
fabrizzio-dotCMS May 22, 2024
742df82
Issue 28588 create factory method to get experiment by host (#28628)
freddyDOTCMS May 22, 2024
49a0bf6
Issue 28420 upg graphql (#28433)
jdotcms May 23, 2024
1411389
Making workflow not to fail when job has an error (#28641)
victoralfaro-dotcms May 23, 2024
1ab2a4d
chore(deps) update dependencies to examples (#28654)
oidacra May 23, 2024
747e418
#22033 Start The PruneTimeMachineJob (#28586)
freddyDOTCMS May 23, 2024
cd05468
feat(block-editor) edit embedded contentlet in JSP Edit Contentlet (#…
oidacra May 23, 2024
20ca697
fix (edit-page-v2): Keep variant banner while inline editing (#28616)
zJaaal May 23, 2024
4e218da
test(tests): Flakey test Language randomization causes conflic (#286…
spbolton May 23, 2024
4492bdc
Issue 28263 cli do not require an id when updating a content type (#2…
jgambarios May 23, 2024
9524a40
#23131 Using pagination to get the Contentlets in PP (#28660)
freddyDOTCMS May 24, 2024
786d675
#28588 Create API Method to get Experiment by Host (#28630)
freddyDOTCMS May 24, 2024
b42a58c
#22033 log backups removd (#28665)
dsilvam May 24, 2024
c6e1bd8
#28663 issue improve clean up method to prevent breakage in IT (#28657)
fabrizzio-dotCMS May 24, 2024
819ace0
issue#28647-Postman tests refactor (#28648)
bryanboza May 24, 2024
1684a17
#28667 -Postman tests refactor in ContentResourceTests (#28668)
bryanboza May 28, 2024
2b46c59
chore(dev): Issue 28480 happy path cheat sheet build deploy project (…
dcolina May 29, 2024
0ccf276
fix (import): handle URL field for pages imported (#28306) (#28662)
dsolistorres May 29, 2024
b79052a
Add TreeSelect to storybook (#28666)
nicobytes May 29, 2024
eccb636
#28413: modifying AIViewTool to detect when AI is enabled at VTL pars…
victoralfaro-dotcms May 29, 2024
8d9046e
#28646 adding security logs to apps (#28685)
fabrizzio-dotCMS May 29, 2024
4c6a149
#28675 -Postman tests refactor in ContentResourceV1 Postman Tests (#2…
bryanboza May 29, 2024
fe0b2ff
chore(SDK): Update Next.js example app to handle vanity URLs (#28688)
rjvelazco May 30, 2024
c45812e
Point to last release of the telemetry plugin (#28701)
dsilvam May 30, 2024
4ea2d78
implementation (Languages): #28476 Support the different Menu actions…
hmoreras May 30, 2024
0218f3c
feat(sdk-client): getCollection method for content (#28635)
zJaaal May 31, 2024
cc9793a
Issue 28264 cli do not require identifiers when updating content type…
jgambarios May 31, 2024
90f0ce5
fix(UVE): Copy URL Button Not Working Properly (#28705)
rjvelazco May 31, 2024
f3c8710
private-issue-34: Verifying at frontend that 'resetEmail' param is ig…
victoralfaro-dotcms May 31, 2024
9ef0e3b
chore(EMA) #28402 : SDK: Support Vanity URLs in Page API (#28649)
jcastro-dotcms May 31, 2024
d8a18b5
#28121 Upgrade task to include dotAI portlet by default (#28708)
dsilvam May 31, 2024
62e7641
chore(sdk): Create dotCMS Angular library #28498 (#28661)
KevinDavilaDotCMS May 31, 2024
271fe81
fix(Card View): Background image size (#28730)
rjvelazco May 31, 2024
a40fa45
fix(UVE): Allow user to edit pages on Community Edition License (#28…
rjvelazco May 31, 2024
4c080b8
test with Java 21 build
spbolton May 21, 2024
cb48548
normalize java versioning
spbolton May 21, 2024
df6c8d2
Force ConfigTest using Unsafe to run in J21
spbolton May 21, 2024
1bd9af6
Fix test should not require fixed parameter order
spbolton May 21, 2024
b39c628
fixup Dockerfile
spbolton May 22, 2024
dc12195
update source versions to 21
spbolton May 22, 2024
0c06d99
remove old unused Randomizer that has conflicting method in J21
spbolton May 22, 2024
2da899c
fix cli jakarta changeover
spbolton May 22, 2024
881b866
ignore failing test
spbolton May 22, 2024
be3b397
use @Disabled not @Ignore
spbolton May 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 1 addition & 5 deletions .github/data/slack-mappings.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
},
{
"github_user": "jgambarios",
"slack_id": "D04SH7PU16Z"
"slack_id": "U028X13T2"
},
{
"github_user": "fishsmith",
Expand Down Expand Up @@ -144,10 +144,6 @@
"github_user": "josemejias11",
"slack_id": "U03RU9U23RQ"
},
{
"github_user": "dcolina",
"slack_id": "U04SKNT3W7L"
},
{
"github_user": "melissarojas-dotcms",
"slack_id": "U047MRAKREJ"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cli-release-process.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ defaults:
shell: bash

env:
JAVA_VERSION: 11
JAVA_VERSION: 21
JAVA_DISTRO: temurin
GRAALVM_VERSION: '22.3.1'
MVN_PACKAGE_TYPE: 'uber-jar'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/maven-build-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
name: Build/Push Image
runs-on: ubuntu-latest
env:
JAVA_VERSION: 11
JAVA_VERSION: 21
JAVA_DISTRO: temurin
JVM_TEST_MAVEN_OPTS: '-e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
DOCKER_BUILD_CONTEXT: /home/runner/work/_temp/core-build
Expand Down
32 changes: 19 additions & 13 deletions .github/workflows/pr-notifier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
if: always()
env:
SOURCE_REPOSITORY: ${{ github.repository }}
continue-on-error: true
steps:
- name: Resolve User
id: resolve-user
Expand All @@ -55,22 +56,22 @@ jobs:
githack_core_repo_url=https://${githack_host}/${{ env.SOURCE_REPOSITORY }}

branch=/${{ github.head_ref }}
[[ "${branch}" == '/master' ]] && branch=

slack_mappings_file=.github/data/slack-mappings.json
slack_mapping_url=${githack_core_repo_url}${branch}/${slack_mappings_file}
slack_mappings_file=slack-mappings.json
slack_mappings_path=.github/data/${slack_mappings_file}
slack_mapping_url=${githack_core_repo_url}${branch}/${slack_mappings_path}

if [[ -n "${github_user}" ]]; then
if [[ -f ${slack_mappings_file} ]]; then
json=$(curl -s ${slack_mapping_url})

channel_id=$( \
jq '.[] | select(.github_user == "${github_user}")' <<< "${json}" | \
jq -r '.slack_id' \
)
fi
json=$(curl -s ${slack_mapping_url})

channel_id=$( \
jq ".[] | select(.github_user == \"${github_user}\")" <<< "${json}" | \
jq -r '.slack_id' \
)

echo "Resolved channel id [${channel_id}] from [${slack_mappings_file}]"

if [[ -z "${channel_id}" ]]; then
echo "Channel id could not be resolved from [${slack_mappings_file}]. Attempting to resolve from Github user email."
user_email=$( \
curl \
-u ${{ secrets.CI_MACHINE_USER }}:${{ secrets.CI_MACHINE_TOKEN }} \
Expand All @@ -81,6 +82,7 @@ jobs:
sed "s/\"email\"://g" | \
tr -d '",[:space:]' \
)
echo "Resolved user email: [${user_email}]"

if [[ -n "${user_email}" ]]; then
channel_id=$( \
Expand All @@ -95,11 +97,15 @@ jobs:
sed "s/\"id\"://g" | \
tr -d '",[:space:]' \
)

echo "Resolved channel id [${channel_id}] from email [${user_email}]"
fi
fi
fi

[[ -z "${channel_id}" ]] && channel_id=${{ env.DEFAULT_CHANNEL_ID }}
[[ -z "${channel_id}" ]] \
&& echo "Channel id could not be resolved, defaulting to eng's [${{ env.DEFAULT_CHANNEL_ID }}]" \
&& channel_id=${{ env.DEFAULT_CHANNEL_ID }}
echo "channel_id=${channel_id}" >> $GITHUB_OUTPUT
echo "channel_id=${channel_id}"

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/reusable-ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ env:
REGISTRY: ghcr.io
DOCKER_IMAGE: dotcms/dotcms_test
DOCKER_TAG: run-${{ github.run_id }}

JAVA_VERSION: 21
jobs:
#
# Initial JDK 11 Build
# Basic build and install all with maven without running tests.
# Provides local maven repo for subsequent steps
#
build-jdk11:
build-jdk:
name: "Initial Artifact Build"
runs-on: ubuntu-20.04
if: inputs.core-build == true
Expand All @@ -35,10 +35,10 @@ jobs:
if: github.ref != 'refs/heads/master'
run: git fetch origin master:master
- uses: ./.github/actions/cleanup-runner
- name: Set up JDK 11
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '11'
java-version: '21'
distribution: 'temurin'
- name: Get Date
id: get-date
Expand Down
18 changes: 12 additions & 6 deletions .github/workflows/reusable-ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ env:
DOCKER_IMAGE: dotcms/dotcms_test
DOCKER_TAG: run-${{ inputs.artifact-run-id || github.run_id }}
ARTIFACT_RUN_ID: ${{ inputs.artifact-run-id || github.run_id }}

JAVA_VERSION: 21
JAVA_DISTRO: temurin
jobs:
#
# Run all JVM Unit Tests in parallel with other tests
Expand All @@ -53,7 +54,7 @@ jobs:
strategy:
fail-fast: false
matrix:
java: [ { name: "11", java-version: 11, distribution: 'temurin', maven_args: "" } ]
java: [ { name: "21", java-version: 21, distribution: 'temurin', maven_args: "" } ]
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java.name }}
Expand Down Expand Up @@ -108,7 +109,7 @@ jobs:
strategy:
fail-fast: true
matrix:
java: [ { name: "11", java-version: 11, distribution: 'temurin', maven_args: "" } ]
java: [ { name: "21", java-version: 21, distribution: 'temurin', maven_args: "" } ]
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java.name }}
Expand Down Expand Up @@ -182,10 +183,10 @@ jobs:
MAVEN_OPTS: -Xmx2048m
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 11
java-version: 21
distribution: 'temurin'
- name: Get Date
id: get-date
Expand Down Expand Up @@ -253,7 +254,7 @@ jobs:
strategy:
fail-fast: false
matrix:
java: [ { name: "11", java-version: 11, distribution: 'temurin', maven_args: "" } ]
java: [ { name: "21", java-version: 21, distribution: 'temurin', maven_args: "" } ]
suites:
- { name: "MainSuite 1a", pathName: "mainsuite1a", maven_args: '-Dit.test=MainSuite1a -Dit.test.forkcount=1' }
- { name: "MainSuite 1b", pathName: "mainsuite1b", maven_args: '-Dit.test=MainSuite1b -Dit.test.forkcount=1' }
Expand Down Expand Up @@ -317,6 +318,11 @@ jobs:
- id: fetch-core
name: Fetch Core Repo
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'temurin'
- name: Download Maven Repo
uses: actions/download-artifact@v4
with:
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/reusable-sonarqube.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ on:
required: true
SONAR_HOST_URL:
required: true

# sonarqube only runs with Java 17+
env:
JAVA_VERSION: 21
JAVA_DISTRO: temurin
jobs:
sonarqube:
name: SonarQube Scan
Expand All @@ -25,10 +28,10 @@ jobs:
- name: Setup master branch locally without switching current branch
if: github.ref != 'refs/heads/master'
run: git fetch origin master:master
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 17
java-version: 21
distribution: 'temurin'
- name: Get Date
id: get-date
Expand Down
2 changes: 1 addition & 1 deletion .sdkmanrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
java=11.0.22-ms
java=21.0.3-ms
20 changes: 13 additions & 7 deletions bom/application/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
<jackson.version>2.16.1</jackson.version>
<jersey.version>2.22.1</jersey.version>
<graalvm.version>22.3.3</graalvm.version>
<dotcms.tika-api.version>2023.09.8</dotcms.tika-api.version>
</properties>
<dependencyManagement>

Expand Down Expand Up @@ -59,7 +58,7 @@
<dependency>
<groupId>com.dotcms.core.plugins</groupId>
<artifactId>com.dotcms.tika-api</artifactId>
<version>${dotcms.tika-api.version}</version>
<version>${project.version}</version>
</dependency>

<dependency>
Expand Down Expand Up @@ -727,7 +726,7 @@
<dependency>
<groupId>com.graphql-java</groupId>
<artifactId>graphql-java</artifactId>
<version>13.0</version>
<version>17.5</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
Expand All @@ -738,14 +737,16 @@
<dependency>
<groupId>com.graphql-java</groupId>
<artifactId>graphql-java-extended-scalars</artifactId>
<version>1.0.1</version>
<version>17.1</version>
</dependency>
<dependency>
<groupId>com.graphql-java-kickstart</groupId>
<artifactId>graphql-java-servlet</artifactId>
<version>9.1.0</version>
<version>13.0.1</version>
</dependency>



<!--
*****************************
Database Support
Expand Down Expand Up @@ -797,7 +798,7 @@
<dependency>
<groupId>dnsjava</groupId>
<artifactId>dnsjava</artifactId>
<version>2.1.8</version>
<version>3.5.3</version>
</dependency>

<dependency>
Expand Down Expand Up @@ -1503,7 +1504,12 @@
<artifactId>mockito-core</artifactId>
<version>5.11.0</version>
</dependency>

<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<version>5.11.0</version>
<scope>test</scope>
</dependency>
<dependency>
<!-- Hamcrest is a framework for writing matcher objects allowing 'match' rules to be defined declaratively. -->
<groupId>org.hamcrest</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Observable, Subject } from 'rxjs';

import { HttpErrorResponse } from '@angular/common/http';
import { Component, OnDestroy, OnInit } from '@angular/core';
import { UntypedFormBuilder, UntypedFormGroup, Validators } from '@angular/forms';
import { FormControl, UntypedFormBuilder, UntypedFormGroup, Validators } from '@angular/forms';
import { ActivatedRoute, Params } from '@angular/router';

import { SelectItem } from 'primeng/api';
Expand Down Expand Up @@ -116,11 +116,15 @@ export class DotLoginComponent implements OnInit, OnDestroy {
this.setInitialMessage(loginInfo);
}

private isEmail(potentialEmail: string): boolean {
return !!new FormControl(potentialEmail, Validators.email).errors?.email;
}

private setInitialMessage(loginInfo: DotLoginInformation): void {
this.route.queryParams.pipe(take(1)).subscribe((params: Params) => {
if (params['changedPassword']) {
this.setMessage(loginInfo.i18nMessagesMap['reset-password-success']);
} else if (params['resetEmailSent']) {
} else if (params['resetEmailSent'] && !this.isEmail(params['resetEmail'])) {
this.setMessage(
loginInfo.i18nMessagesMap['a-new-password-has-been-sent-to-x'].replace(
'{0}',
Expand Down
46 changes: 19 additions & 27 deletions core-web/apps/dotcms-ui/src/stories/primeng/data/Tree.stories.ts
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
// also exported from '@storybook/angular' if you can deal with breaking changes in 6.1
import { Meta, moduleMetadata, Story } from '@storybook/angular';
import { TreeNode } from 'primeng/api';
import { Tree, TreeModule } from 'primeng/tree';

import { TreeModule } from 'primeng/tree';
import type { Meta, StoryObj } from '@storybook/angular';

export default {
const meta: Meta<Tree> = {
title: 'PrimeNG/Data/Tree',
decorators: [
moduleMetadata({
imports: [TreeModule]
})
],
component: Tree,
parameters: {
layout: 'centered',
docs: {
description: {
component:
'Paginator is a generic component to display content in paged format.: https://primefaces.org/primeng/showcase/#/paginator'
'Tree is used to display hierarchical data: https://www.primefaces.org/primeng-v15-lts/tree'
}
}
}
} as Meta;
};
export default meta;

type Story = StoryObj<Tree>;

const files = [
export const files: TreeNode[] = [
{
label: 'Documents',
data: 'Documents Folder',
Expand Down Expand Up @@ -102,21 +101,14 @@ const files = [
}
];

const BasicTemplate = `<p-tree [value]="files"></p-tree>`;

export const Basic: Story = () => {
return {
template: BasicTemplate,
export const Default: Story = {
render: () => ({
moduleMetadata: {
imports: [TreeModule]
},
props: {
files
}
};
};

Basic.parameters = {
docs: {
source: {
code: BasicTemplate
}
}
},
template: `<p-tree [value]="files"></p-tree>`
})
};
Loading
Loading