BACKLOG-22380: Update source code to use HTML filtering #63
on-code-change.yml
on: pull_request
Build Module
1m 26s
Static Analysis (linting, vulns)
32s
Annotations
9 errors, 7 warnings, and 2 notices
Default HTML filtering ► rejects invalid protocol links ► Default HTML filtering rejects invalid protocol links:
tests/artifacts/results/xml_reports/cypress/e2e/defaultFiltering.cy.ts.xml#L0
Failed test found in:
tests/artifacts/results/xml_reports/cypress/e2e/defaultFiltering.cy.ts.xml
Error:
AssertionError: expected '<p>This is an <a href="javascript://%0aalert(document.location)">xss test</a></p>' to not include '<a'
|
Default HTML filtering ► rejects invalid href links ► Default HTML filtering rejects invalid href links:
tests/artifacts/results/xml_reports/cypress/e2e/defaultFiltering.cy.ts.xml#L0
Failed test found in:
tests/artifacts/results/xml_reports/cypress/e2e/defaultFiltering.cy.ts.xml
Error:
AssertionError: expected '<p>This is an <a href="#javascript:alert(\'hello\')" target="_blank">xss test</a></p>' to not include 'href'
|
HTML rich text filtering ► applies default html filtering when enabled ► HTML rich text filtering applies default html filtering when enabled:
tests/artifacts/results/xml_reports/cypress/e2e/filtering.cy.ts.xml#L0
Failed test found in:
tests/artifacts/results/xml_reports/cypress/e2e/filtering.cy.ts.xml
Error:
AssertionError: expected '<iframe title="My iframe"></iframe><a title="My link"></a><script> var today= new Date(); </script>' to not include 'iframe'
|
HTML rich text filtering ► applies default filtering to html attributes when enabled ► HTML rich text filtering applies default filtering to html attributes when enabled:
tests/artifacts/results/xml_reports/cypress/e2e/filtering.cy.ts.xml#L0
Failed test found in:
tests/artifacts/results/xml_reports/cypress/e2e/filtering.cy.ts.xml
Error:
AssertionError: filtered attribute: expected '<img src="stub.jpg" loading="lazy"><a href="https://localhost:8080">' to not include 'loading'
|
HTML rich text filtering ► can override filtering config for specified site ► HTML rich text filtering can override filtering config for specified site:
tests/artifacts/results/xml_reports/cypress/e2e/filtering.cy.ts.xml#L0
Failed test found in:
tests/artifacts/results/xml_reports/cypress/e2e/filtering.cy.ts.xml
Error:
AssertionError: expected 'This textis important! but not this one' to include '<p>'
|
HTML rich text filtering ► can update config and filter using updated rules ► HTML rich text filtering can update config and filter using updated rules:
tests/artifacts/results/xml_reports/cypress/e2e/filtering.cy.ts.xml#L0
Failed test found in:
tests/artifacts/results/xml_reports/cypress/e2e/filtering.cy.ts.xml
Error:
AssertionError: expected 'This textis important! but not this one' to include '<p>'
|
HTML rich text filtering API ► filters via API and reports on removed elements/attributes ► HTML rich text filtering API filters via API and reports on removed elements/attributes:
tests/artifacts/results/xml_reports/cypress/e2e/filteringAPI.cy.ts.xml#L0
Failed test found in:
tests/artifacts/results/xml_reports/cypress/e2e/filteringAPI.cy.ts.xml
Error:
AssertionError: expected [] to have a length of 1 but got 0
|
HTML rich text filtering API ► returns a list of configured elements and attributes ► HTML rich text filtering API returns a list of configured elements and attributes:
tests/artifacts/results/xml_reports/cypress/e2e/filteringAPI.cy.ts.xml#L0
Failed test found in:
tests/artifacts/results/xml_reports/cypress/e2e/filteringAPI.cy.ts.xml
Error:
AssertionError: expected [] to have a length of 40 but got 0
|
Integration Tests
Run has FAILED, could not locate file /opt/actions-runner/_work/richtext-configuration/richtext-configuration/tests/artifacts/results/test_success
|
Static Analysis (linting, vulns):
tests/cypress/e2e/filtering.cy.ts#L16
Unexpected 'todo' comment: 'TODO Need to clean up configuration...'
|
Static Analysis (linting, vulns)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Build Module
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Build Module
Unexpected input(s) 'module_id', valid inputs are ['mvn_settings_filepath', 'nexus_username', 'nexus_password', 'debug_session_timeout', 'github_artifact_retention', 'tests_module_path', 'tests_module_type', 'node_version']
|
Build Module
Unexpected input(s) 'module_id', valid inputs are ['mvn_settings_filepath', 'nexus_username', 'nexus_password', 'debug_session_timeout', 'github_artifact_retention', 'tests_module_path', 'tests_module_type', 'node_version']
|
Sonar Analysis
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-java@v3, actions/download-artifact@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Integration Tests
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: jahia/jahia-modules-action/helper@v2, jahia/jahia-modules-action/integration-tests@v2, phoenix-actions/test-reporting@v12. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Integration Tests
Artifacts (VPN Required) have been uploaded to: https://qa.jahia.com/artifacts-ci/delete-on-2024-03-16_Jahia_richtext-configuration_integration-tests-results_7918256684_1
|
Integration Tests
Job is running on instance: i-0e1d609c7ba0c559d
(spec: t3.2xlarge
) - Connect to the instance using: #> aws ssm start-session --target i-0e1d609c7ba0c559d
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
build-artifacts
Expired
|
6.63 MB |
|
html-filtering-artifacts-63
Expired
|
7.21 MB |
|