bhouse-nexthop opened a new issue, #14766: URL: https://github.com/apache/cloudstack/issues/14766
### problem The 4.22 -> main merge 82bfa9fb3f left two lines on `main` that neither parent had: | file | merged line | before the merge (main) | effect | |---|---|---|---| | `ApiResponseHelper.getDataStoreRole` | `Boolean.getBoolean(value)` | `new Boolean(value)` | `Boolean.getBoolean` reads a JVM system property named by `value`, so it is always false. Snapshots on primary storage that supports storage-system snapshots are reported with the `Image` role. | | `VolumeApiServiceImpl.uploadVolume` | `UseHttpsToUpload.value()` | `UseHttpsToUpload.valueIn(zoneId)` (#11539) | The zone-level `use.https.to.upload` value is ignored for volume uploads; templates and the SSVM still use it, so the volume upload URL can use the wrong protocol. | Related: #14760 removes a duplicated block left by the same merge. ### versions `main` since 82bfa9fb3f. `4.22` is not affected (it never had #11539, and still has `new Boolean(value)`). ### The steps to reproduce the bug 1. Set `use.https.to.upload` to `false` at zone level, keep the global value `true`. 2. Call `getUploadParamsForVolume` in that zone. 3. The returned `postURL` is `https://...`; for `getUploadParamsForTemplate` it is `http://...`. For the first bug: take a volume snapshot on primary storage whose driver reports `STORAGE_SYSTEM_SNAPSHOT=true` and list it; the response shows the `Image` role. ### What to do about it? Use `Boolean.parseBoolean(value)` and `UseHttpsToUpload.valueIn(zoneId)`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
