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(files): Fix lock release handling when the file upload does not validate #1118

Merged
merged 2 commits into from
Nov 26, 2020

Conversation

klausi
Copy link
Contributor

@klausi klausi commented Nov 25, 2020

Follow-up to #1115 . We need to release the lock correctly when file validation fails.

I found the finally keyword in PHP which does exactly what we want, yay! https://www.php.net/manual/en/language.exceptions.php

Same bug in FileUploadResource in Drupal core: https://www.drupal.org/project/drupal/issues/3184974

@klausi klausi added the 4.x label Nov 25, 2020
Copy link
Contributor

@rthideaway rthideaway left a comment

Choose a reason for hiding this comment

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

looks good, thanks! let's fix cs warning and this is ready to go

@klausi klausi merged commit b235e07 into drupal-graphql:8.x-4.x Nov 26, 2020
@klausi klausi deleted the file-upload-locl-release branch November 26, 2020 12:12
klausi added a commit to klausi/graphql that referenced this pull request Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants