Skip to content

Conversation

@cstamas
Copy link
Member

@cstamascstamas commented Sep 28, 2024

Tidy up model.

Relocation: drop all that mumbo-jumbo.

Tidy up model. Relocation: drop all that webdav mumbo-jumbo, and for now relocation is interpreted as Path, that if relative, is resolved from the relocated configuration directory.
@cstamascstamas self-assigned this Sep 28, 2024
@cstamascstamas marked this pull request as ready for review September 28, 2024 21:10
writeFile(target, configuration, false);
}

publicstaticvoidwriteWithBackup(Pathtarget, SettingsSecurityconfiguration) throwsIOException{
Copy link
Member

Choose a reason for hiding this comment

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

The pattern is usually to have writeFile(Path, SettingsSecurity) and writeFile(Path, SettingsSecutiry, boolean) methods public methods, the first one calling the second one. And I don't see any reference to the first method. If not called, maybe simply keep the one with the backup.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

test UT uses the "no backup method", but will remove one extra method and apply pattern you propose

Copy link
Member

@gnodetgnodet left a comment

Choose a reason for hiding this comment

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

I think the SecUtil write stuff can be trimmed down, but....

@cstamascstamas merged commit 252c990 into masterSep 29, 2024
@cstamascstamas deleted the simplify-config branch September 29, 2024 15:14
Sign up for freeto 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

@cstamas@gnodet