Skip to content

Conversation

@DominikSuess
Copy link
Contributor

…cting repoinit

  • adjustments to RepositoryInitializer & Factory be able to execute in validation mode
  • adding validation mbean and repositoryinitializer to execute validation (mbean always in warn mode, service optionally in strict mode)

…cting repoinit

* adjustments to RepositoryInitializer & Factory  be able to execute in validation mode
* adding validation mbean and repositoryinitializer to execute validation (mbean always in warn mode, service optionally in strict mode)
@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 19 Code Smells

45.7% 45.7% Coverage
0.0% 0.0% Duplication

Copy link
Contributor

@enapps-enorman enapps-enorman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DominikSuess If I am reading the changes correctly, then I believe session.save() is called a few other places that you don't seem to be handling. For example, in AclUtil#setPrincipalAcl(..), AclUtil#removePrincipalEntries(..) and AclVisitor#visitCreatePath(..)

It might be probable for regressions to appear at a future date if someone needs to call save for some other reason. Would wrapping the JCR session with an overridden save method work here and be safer?

Also, maybe refer to this as a "dry run" rather than a validator?

@sonarqubecloud
Copy link

sonarqubecloud bot commented Apr 5, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 19 Code Smells

44.0% 44.0% Coverage
0.0% 0.0% Duplication

@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 19 Code Smells

44.0% 44.0% Coverage
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 5, 2024

Quality Gate Failed Quality Gate failed

Failed conditions

44.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

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