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

Webpublisher: extension is lowercased in Setting and in uploaded files #4095

Merged
merged 59 commits into from
Nov 18, 2022

Conversation

kalisp
Copy link
Member

@kalisp kalisp commented Nov 14, 2022

Brief description

Configuration of extension in project_settings/webpublisher/publish/CollectPublishedFiles/task_type_to_family was case sensitive. (eg. uploaded.PNG wasn't recognized if there was only png in extensions.)

Testing notes:

  1. publish file with upper case version of extension which is configured in project_settings/webpublisher/publish/CollectPublishedFiles/task_type_to_family
  2. it shouldn't fail

@kalisp kalisp added type: bug Something isn't working sponsored Client endorsed or requested labels Nov 14, 2022
@kalisp kalisp requested a review from 64qam November 14, 2022 12:40
@kalisp kalisp self-assigned this Nov 14, 2022
@ynbot
Copy link
Contributor

ynbot commented Nov 14, 2022

Task linked: OP-4394 WP lowercase extension

Without it it would be stored in DB uppercased and final name would also be uppercased.
Comment on lines 203 to +204
ext = collections[0].tail
ext = ext.lower()
Copy link
Member

@iLLiCiTiT iLLiCiTiT Nov 16, 2022

Choose a reason for hiding this comment

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

Suggested change
ext = collections[0].tail
ext = ext.lower()
ext = collections[0].tail.lower()

kalisp and others added 22 commits November 16, 2022 14:43
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 1.4.1 to 1.4.2.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v1.4.2/CHANGELOG.md)
- [Commits](webpack/loader-utils@v1.4.1...v1.4.2)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
There might be uppercased extension sent in by accident (.PNG), which would make all checks against set of extension not work.
…ase issue

Using lower here would hide possibly broken representation, as we would expect both repre["ext"] and repre["name"] be lowercased. In case the aren't review won't get created >> someone will notice and fix issues on source representation.
@64qam 64qam self-requested a review November 18, 2022 14:12
@kalisp kalisp merged commit b872f24 into develop Nov 18, 2022
@github-actions github-actions bot added this to the next-patch milestone Nov 18, 2022
@kalisp kalisp deleted the bugfix/OP-4394_WP-lowercase-extension branch November 18, 2022 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sponsored Client endorsed or requested type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants