Summary: | Bundle created in beta2 can have different filenames in manifest and in actual bundle archive | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | Tiar <tamtamy.tymona> |
Component: | Resource Management | Assignee: | Tiar <tamtamy.tymona> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | halla |
Priority: | NOR | Keywords: | regression, release_blocker |
Version: | 5.0.0-beta2 | ||
Target Milestone: | --- | ||
Platform: | Mint (Ubuntu based) | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/graphics/krita/commit/286af7f95dba2d17ea95a269d9d27717f49480ef | Version Fixed In: | |
Sentry Crash Report: |
Description
Tiar
2021-10-17 19:42:53 UTC
Git commit 98e18caf45692da861924886a3f5d5d32f808342 by Agata Cacko. Committed on 02/11/2021 at 16:03. Pushed by tymond into branch 'master'. Fix saving to bundle Before this commit, bundle saving code would operate only on filenames, but the dlg_create_bundle code changed that filename to be something else. So the bundle would save with different filename in the manifest and different actual filename. This commit introduces two new parameters to the KoResourceManifest (no new things are added to the actual manifest file in a bundle) that are resourceId and filenameInBundle. The first one ensures the first resource the bundle will be looking for is the one with the same resouce id, if it's available. The second one helps sanitizing the filename in the newly created bundle while still allowing the manifest to point to the correct file. M +15 -6 libs/resources/KoResourceBundle.cpp M +1 -1 libs/resources/KoResourceBundle.h M +4 -4 libs/resources/KoResourceBundleManifest.cpp M +9 -2 libs/resources/KoResourceBundleManifest.h M +22 -1 plugins/extensions/resourcemanager/dlg_create_bundle.cpp M +2 -0 plugins/extensions/resourcemanager/dlg_create_bundle.h https://invent.kde.org/graphics/krita/commit/98e18caf45692da861924886a3f5d5d32f808342 Git commit 286af7f95dba2d17ea95a269d9d27717f49480ef by Agata Cacko. Committed on 02/11/2021 at 17:35. Pushed by tymond into branch 'krita/5.0'. Fix saving to bundle Before this commit, bundle saving code would operate only on filenames, but the dlg_create_bundle code changed that filename to be something else. So the bundle would save with different filename in the manifest and different actual filename. This commit introduces two new parameters to the KoResourceManifest (no new things are added to the actual manifest file in a bundle) that are resourceId and filenameInBundle. The first one ensures the first resource the bundle will be looking for is the one with the same resouce id, if it's available. The second one helps sanitizing the filename in the newly created bundle while still allowing the manifest to point to the correct file. M +15 -6 libs/resources/KoResourceBundle.cpp M +1 -1 libs/resources/KoResourceBundle.h M +4 -4 libs/resources/KoResourceBundleManifest.cpp M +9 -2 libs/resources/KoResourceBundleManifest.h M +22 -1 plugins/extensions/resourcemanager/dlg_create_bundle.cpp M +2 -0 plugins/extensions/resourcemanager/dlg_create_bundle.h https://invent.kde.org/graphics/krita/commit/286af7f95dba2d17ea95a269d9d27717f49480ef |