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 storage of repo.xml during package installation #3773

Merged
merged 2 commits into from Mar 10, 2021

Conversation

joewiz
Copy link
Member

@joewiz joewiz commented Mar 10, 2021

Description:

Closes #3734.

This PR simply makes sure repo.xml is stored before post-install.xql is run, as documentation indicates it should be—instead of waiting to store repo.xml after post-install.xql, which makes it impossible to read from repo.xml to determine default permissions, etc.

Also, this PR adds to and, in some cases, corrects comments explaining the sequence of deployment—incrementally adding to our understanding of how deployment works and where it could be improved.

Reference:

Type of tests:

I tested this PR on my fix to the issue above, and confirmed that when applying this PR, a corresponding PR for the public-repo, eXist-db/public-repo#67, works perfectly.

@joewiz joewiz added the bug issue confirmed as bug label Mar 10, 2021
@joewiz joewiz added this to the eXist-5.2.1 milestone Mar 10, 2021
@joewiz joewiz changed the title Fix repo xml storage Fix storage of repo.xml during package installation Mar 10, 2021
@sonarcloud
Copy link

sonarcloud bot commented Mar 10, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

0.0% 0.0% Coverage
0.0% 0.0% Duplication

Copy link
Member

@adamretter adamretter left a comment

Choose a reason for hiding this comment

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

LGTM

@adamretter adamretter merged commit d8b9ba9 into eXist-db:develop Mar 10, 2021
@joewiz joewiz deleted the fix-repo-xml-storage branch March 10, 2021 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug issue confirmed as bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] repo: post-install scripts cannot access repo.xml descriptor
2 participants