When IPAs are updated via GitOps, keep titles as-is (or re-hydrate from the same SW in the DB) when not downloading anew (#36532)
Fixes #36523. # Checklist for submitter If some of the following don't apply, delete the relevant line. ## Testing - [x] QA'd all new/changed functionality manually For unreleased bug fixes in a release candidate, one of: - [x] Confirmed that the fix is not expected to adversely impact load test results
This commit is contained in:
@@ -2339,7 +2339,10 @@ func (svc *Service) softwareBatchUpload(
|
||||
if installer.Filename == "" {
|
||||
installer.Filename = fmt.Sprintf("package.%s", ext)
|
||||
}
|
||||
if installer.Title == "" {
|
||||
if installer.Title == "" && installer.Extension != "ipa" {
|
||||
// If an IPA is specified via hash rather than downloaded via URL, we won't have a title populated,
|
||||
// and should try to pull the title from the database if it exists. If we can't extract title name for
|
||||
// some reason, filename should only be used after attempting to pull data from the database.
|
||||
installer.Title = installer.Filename
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user