bhouse-nexthop opened a new pull request, #14767:
URL: https://github.com/apache/cloudstack/pull/14767
### Description
Fixes two lines on `main` that the 4.22 merge 82bfa9fb3f changed by mistake.
| file | change | why |
|---|---|---|
| `ApiResponseHelper` | `Boolean.getBoolean(value)` ->
`Boolean.parseBoolean(value)` | `getBoolean` reads a system property, so
snapshots on storage with storage-system snapshot support were reported with
the `Image` role |
| `VolumeApiServiceImpl` | `UseHttpsToUpload.value()` ->
`UseHttpsToUpload.valueIn(zoneId)` | restores #11539 for volume uploads; the
zone value was ignored |
| `VolumeApiServiceImpl` | `{code}...{code}` -> `{@code ...}` in a Javadoc |
broken tag from the same merge |
Related: #14760 (duplicated block from the same merge).
Fixes: #14766
### Types of changes
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] New feature (non-breaking change which adds functionality)
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] Enhancement (improves an existing feature and functionality)
- [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
- [ ] Build/CI
- [ ] Test (unit or integration test code)
### Feature/Enhancement Scale or Bug Severity
#### Bug Severity
- [ ] BLOCKER
- [ ] Critical
- [ ] Major
- [x] Minor
- [ ] Trivial
### How Has This Been Tested?
- New `ApiResponseHelperTest` cases for `getDataStoreRole` (capability
`true` -> `Primary`, `false` -> `Image`). The `true` case fails before the fix.
- `ApiResponseHelperTest` and `VolumeApiServiceImplTest` pass.
- No unit test for the `uploadVolume` line: the method needs the DB
transaction, call context and a private validation step. It is the same call
`TemplateManagerImpl` already makes.
--
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]