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

fix: PublishedNewsImagesPermissionsV2UpgradePlugin have error when updating from 6.5.4 to 6.5.5 - EXO-75897 #263

Merged
merged 2 commits into from
Dec 11, 2024

Conversation

rdenarie
Copy link
Member

Before this fix, the UP has some problems

  • When there is an error, it does not explain which news have the error
  • When the UP have an error, it is not relaunched at next startup
  • The error should not occurs

This commit fix the 3 problems :

  • Throw an error to not consider the UP as success when an error is founded
  • Add logs to explain which news has a problem
  • Update the regular expression : when the news contains 2 images, one following the other, the regexp does not stop at the end of the src attribute, which generate an error when trying to read the jcr node by uuid

@rdenarie rdenarie requested review from mkrout and Jihed525 December 10, 2024 15:48
…dating from 6.5.4 to 6.5.5 - EXO-75897

Before this fix, the UP has some problems
- When there is an error, it does not explain which news have the error
- When the UP have an error, it is not relaunched at next startup
- The error should not occurs

This commit fix the 3 problems :
- Throw an error to not consider the UP as success when an error is founded
- Add logs to explain which news has a problem
- Update the regular expression : when the news contains 2 images, one following the other, the regexp does not stop at the end of the src attribute, which generate an error when trying to read the jcr node by uuid
@rdenarie rdenarie enabled auto-merge (squash) December 11, 2024 10:25
Copy link

sonarcloud bot commented Dec 11, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
47.6% Coverage on New Code (required ≥ 75%)

See analysis details on SonarQube Cloud

@rdenarie rdenarie merged commit 71f7a70 into stable/6.5.x Dec 11, 2024
3 of 4 checks passed
@rdenarie rdenarie deleted the fix/task-75897 branch December 11, 2024 10:30
Jihed525 pushed a commit that referenced this pull request Dec 11, 2024
…dating from 6.5.4 to 6.5.5 - EXO-75897 (#263)

Before this fix, the UP has some problems

When there is an error, it does not explain which news have the error
When the UP have an error, it is not relaunched at next startup
The error should not occurs
This commit fix the 3 problems :

Throw an error to not consider the UP as success when an error is founded
Add logs to explain which news has a problem
Update the regular expression : when the news contains 2 images, one following the other, the regexp does not stop at the end of the src attribute, which generate an error when trying to read the jcr node by uuid

(cherry picked from commit 71f7a70)
Jihed525 pushed a commit that referenced this pull request Dec 11, 2024
…dating from 6.5.4 to 6.5.5 - EXO-75897 (#263)

Before this fix, the UP has some problems

When there is an error, it does not explain which news have the error
When the UP have an error, it is not relaunched at next startup
The error should not occurs
This commit fix the 3 problems :

Throw an error to not consider the UP as success when an error is founded
Add logs to explain which news has a problem
Update the regular expression : when the news contains 2 images, one following the other, the regexp does not stop at the end of the src attribute, which generate an error when trying to read the jcr node by uuid

(cherry picked from commit 71f7a70)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants