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

Do not empty config.php file if reading failed for any reason #33921

Merged
merged 1 commit into from
Sep 12, 2022

Conversation

come-nc
Copy link
Contributor

@come-nc come-nc commented Sep 6, 2022

Fixes #18620

Signed-off-by: Côme Chilliet [email protected]

@come-nc come-nc added the 2. developing Work in progress label Sep 6, 2022
@come-nc come-nc added this to the Nextcloud 25 milestone Sep 6, 2022
@come-nc come-nc self-assigned this Sep 6, 2022
@blizzz blizzz mentioned this pull request Sep 6, 2022
@szaimen
Copy link
Contributor

szaimen commented Sep 6, 2022

Seens like the tests work now? :)

@come-nc come-nc added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Sep 8, 2022
@come-nc come-nc requested review from szaimen, a team, ArtificialOwl, icewind1991 and skjnldsv and removed request for a team September 8, 2022 07:23
@come-nc
Copy link
Contributor Author

come-nc commented Sep 8, 2022

Seens like the tests work now? :)

Yes 😄

@szaimen
Copy link
Contributor

szaimen commented Sep 8, 2022

/backport to stable24

@szaimen
Copy link
Contributor

szaimen commented Sep 8, 2022

/backport to stable23

@szaimen
Copy link
Contributor

szaimen commented Sep 8, 2022

@come-nc can you please link the issues that get fixed by this? Thanks! :)

@come-nc
Copy link
Contributor Author

come-nc commented Sep 8, 2022

Fixes #18620

Copy link
Member

@solracsf solracsf left a comment

Choose a reason for hiding this comment

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

🥳

@solracsf
Copy link
Member

solracsf commented Sep 8, 2022

@come-nc should also fix #25175 or it doesn't cover these cases?

@come-nc
Copy link
Contributor Author

come-nc commented Sep 8, 2022

@come-nc should also fix #25175 or it doesn't cover these cases?

No it does not fix this one. It fixes cases where reading failed, not the ones where writing fails.
Maybe replacing ftruncate by opening the file in write mode would solve those? Not sure.

@andrey-utkin
Copy link

Maybe replacing ftruncate by opening the file in write mode would solve those? Not sure.

No. Create new + rename would solve this, as suggested 1, 2

I'm just following the issue, would get my hands on it but you seem to be almost done :)

@andrey-utkin
Copy link

andrey-utkin commented Sep 9, 2022

I've created that PR to demonstrate the atomic update approach. To be continued.

@backportbot-nextcloud
Copy link

The backport to stable23 failed. Please do this backport manually.

@szaimen
Copy link
Contributor

szaimen commented Sep 12, 2022

/backport to stable23

@backportbot-nextcloud
Copy link

The backport to stable23 failed. Please do this backport manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug high
Projects
None yet
Development

Successfully merging this pull request may close these issues.

complete config reset with filled disk
4 participants