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 rejected directory settings #1873

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

replaceafill
Copy link
Member

The rejected directory settings are the only ones that use an interpolated variable (i.e. %sharedPath%). Their %% part was escaped by the old SafeConfigParser and converted into a single % making them work in the MCPServer.

This broke when the config parser base was replaced with the RawConfigParser which doesn't escape the double %% anymore making the MCPServer to interpolate the value as %/var/archivematica/sharedDirectory/rejected%.

We could rewrite the default value of the settings to be rejectedDirectory = %sharedPath%rejected and that would work fine, but the rest of the shared directory related settings don't use any interpolated variables. They point to the absolute path of the shared directory.

So, this replaces the %%sharedPath%% part of the rejected directory settings with the absolute path to the shared directory to make them match with the rest.

Connected to archivematica/Issues#1636

This replaces the `%%sharedPath%%` part of the rejected directory
settings with the absolute path to the shared directory which matches
all the other shared directory related settings.
@replaceafill replaceafill added AMAUAT Issues relating to the improvement of the AM Automated Acceptance tests and removed AMAUAT Issues relating to the improvement of the AM Automated Acceptance tests labels Nov 17, 2023
@replaceafill replaceafill requested a review from a team November 17, 2023 15:57
Copy link
Member

@sevein sevein left a comment

Choose a reason for hiding this comment

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

LGTM. Perhaps the change should be mentioned in the release notes.

@replaceafill replaceafill merged commit 155f229 into qa/1.x Nov 17, 2023
35 checks passed
@replaceafill replaceafill deleted the dev/issue-1636-fix-rejected-directory branch November 17, 2023 20:22
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