Skip to content

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
@klausi klausi requested a review from rthideaway November 25, 2020 11:19
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