Skip to content

Fix file blocking issue with webcmdlets - #7676

Merged
Ilya (iSazonov) merged 2 commits into
PowerShell:masterfrom
Claustn:fix/webcmdlets_infile_blocking
Sep 1, 2018
Merged

Fix file blocking issue with webcmdlets#7676
Ilya (iSazonov) merged 2 commits into
PowerShell:masterfrom
Claustn:fix/webcmdlets_infile_blocking

Conversation

@Claustn

@Claustn Claus T Nielsen (Claustn) commented Aug 31, 2018

Copy link
Copy Markdown
Contributor

PR Summary

Resolve #7669.

Allows multiple uploads of the same file in parallel

This PR changes how -InFile parameter on the Web cmdlets open file handles. Previously the file was opened with ShareAccess None, meaning that the file was locked, resulting in that you, for instance, was not able to upload the same file to multiple destinations in parallel.

PR Checklist

@iSazonov Ilya (iSazonov) self-assigned this Aug 31, 2018
@iSazonov Ilya (iSazonov) changed the title Fix file blocking issue with webcmdlets using -InFile Issue #7669 Fix file blocking issue with webcmdlets Aug 31, 2018
@iSazonov

Copy link
Copy Markdown
Collaborator

Claus T Nielsen (@Claustn) Thanks! I slightly corrected the PR title and description.

@iSazonov

Copy link
Copy Markdown
Collaborator

Claus T Nielsen (@Claustn) Please rename your commit - start title with [Feature] or add new empty commit with title [Feature] - this will run full test set.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM!

@iSazonov

Copy link
Copy Markdown
Collaborator

CI Appveyor temporary failed.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@markekraus Mark Kraus (markekraus) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. My approval is pending successful completion of all [feature] tests.

@iSazonov
Ilya (iSazonov) merged commit eb92b14 into PowerShell:master Sep 1, 2018
@iSazonov

Copy link
Copy Markdown
Collaborator

Claus T Nielsen (@Claustn) Thanks for discovering the issue and fixing it!

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.

Webcmdlets using -InFile parameter locks file

6 participants