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

Remove invalidation of whitespace in TryGetNextExtendedAttribute #78465

Merged
merged 3 commits into from
Nov 19, 2022

Conversation

stephentoub
Copy link
Member

@ghost
Copy link

ghost commented Nov 16, 2022

Tagging subscribers to this area: @dotnet/area-system-io
See info in area-owners.md if you want to be subscribed.

Issue Details

#78456

Author: stephentoub
Assignees: -
Labels:

area-System.IO

Milestone: -

Copy link
Member

@carlossanlop carlossanlop left a comment

Choose a reason for hiding this comment

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

Aside from the extra test request, LGTM.

@stephentoub
Copy link
Member Author

I've added the test @carlossanlop requested.

I have not changed the existing starting whitespace trimming behavior. @carlossanlop, can you please follow-up on that if it should be revisited?

Also, should we be looking at backporting this to release/7.0?

@carlossanlop
Copy link
Member

carlossanlop commented Nov 18, 2022

It's not explicitly mentioned in the spec, so I agree that we should remove the trim call, especially since tar does not trim the start of the key.

Yes, we can backport it all together, especially if we include the removal of the trim call.

@stephentoub stephentoub merged commit 0d7f758 into dotnet:main Nov 19, 2022
@stephentoub stephentoub deleted the tarreaderwhitespace branch November 19, 2022 01:29
carlossanlop pushed a commit to carlossanlop/runtime that referenced this pull request Nov 23, 2022
…net#78465)

* Remove invalidation of whitespace in TryGetNextExtendedAttribute

* Add requested test
carlossanlop added a commit that referenced this pull request Nov 29, 2022
…attributes (#78785)

* Remove invalidation of whitespace in TryGetNextExtendedAttribute (#78465)

* Remove invalidation of whitespace in TryGetNextExtendedAttribute

* Add requested test

* Remove TrimStart in PAX extended attributes (#78707)

* Remove TrimStart in PAX extended attributes

* Adjust existing tests with two extra inline datas.

Co-authored-by: carlossanlop <carlossanlop@users.noreply.github.com>

* Tar: Extra tests to confirm extra long paths are not treated as duplicate entries when the full path is in the extended attributes. (#78744)

Co-authored-by: carlossanlop <carlossanlop@users.noreply.github.com>

Co-authored-by: Stephen Toub <stoub@microsoft.com>
Co-authored-by: carlossanlop <carlossanlop@users.noreply.github.com>
@ghost ghost locked as resolved and limited conversation to collaborators Dec 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants