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

RD-3099 Fix uploading blueprint that contains directories recognized as files by decompress library #1603

Merged
merged 3 commits into from
Sep 15, 2021

Conversation

qooban
Copy link
Contributor

@qooban qooban commented Sep 14, 2021

Description

This change applies workaround for a bug in decompress library (kevva/decompress#46 (comment)).

Screenshots / Videos

N/A

Checklist

  • My code follows the UI Code Style.
  • I verified that all tests and checks have passed.
  • I verified if that change requires a documentation update.
  • I added proper labels to this PR.

Tests

Stage-UI-System-Test/1265 (14.09.2021 15:00:00 CEST)

Documentation

N/A

@qooban qooban added the bug-fix Pull request with non-breaking change fixing an issue label Sep 14, 2021
@qooban qooban requested a review from kubama September 14, 2021 13:21
@@ -22,4 +23,18 @@ describe('ArchiveHelper', () => {
)
);
});

it('extracts specified archive to target directory', () => {
const srcArchiveName = 'bangchak-poc';
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this archive name has any particular meaning? How about naming it in a way so that it points to the test that is using it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, I just reused the one attached to the issue.

Do you mean having e.g. ArchiveHelper.zip? Once you confirm, I'll update it.

Copy link
Contributor

Choose a reason for hiding this comment

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

Or ArchiveHelper.test.zip

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed archive name. I didn't manage to change the content of the archive.
As when I tried unzipping and zipping again I couldn't reproduce the original issue without filter set, so I decided to leave the content of the archive unchanged.

@qooban qooban requested a review from kubama September 15, 2021 05:51
@qooban qooban merged commit 807f36e into master Sep 15, 2021
@qooban qooban deleted the RD-3099 branch September 15, 2021 07:21
qooban added a commit that referenced this pull request Sep 15, 2021
qooban added a commit that referenced this pull request Sep 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-fix Pull request with non-breaking change fixing an issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants