You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Merge of 4.22 into main left Boolean.getBoolean and a non-zone use.https.to.upload lookup #14766
The 4.22 -> main merge 82bfa9f 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.
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 82bfa9f. 4.22 is not affected (it never had #11539, and still has new Boolean(value)).
The steps to reproduce the bug
Set use.https.to.upload to false at zone level, keep the global value true.
Call getUploadParamsForVolume in that zone.
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).
threat detection engine error
The threat detection engine encountered an error and could not complete analysis. This is a tooling failure, not a security finding.
What happened
The threat detection engine failed to produce results.
Two lines that were changed by the 4.22 to main merge (82bfa9f) do not match either parent. ApiResponseHelper.getDataStoreRole now calls Boolean.getBoolean(value), which reads a JVM system property and so is always false, and VolumeApiServiceImpl.uploadVolume reads UseHttpsToUpload.value() instead of the zone-aware valueIn(zoneId), so the zone setting is ignored for volume uploads. The reporter gives the fix for both lines.
📊 Assessment
Dimension
Value
Reasoning
Type
type:bug
Two lines on main behave differently from 4.22 and from their intended code
Component
component:api
ApiResponseHelper and the volume upload parameters API
Severity
Severity:Major
Snapshots report the wrong data store role, and volume upload URLs can use the wrong protocol
Labels
type:bug, component:api, Severity:Major
Coding agent
Suitable
Specific one-line fixes are given: Boolean.parseBoolean(value) and UseHttpsToUpload.valueIn(zoneId)
Activity
github-actions commentedon Nov 26, 2026
Warning
threat detection engine error
The threat detection engine encountered an error and could not complete analysis. This is a tooling failure, not a security finding.
What happened
The threat detection engine failed to produce results.
Review the workflow run logs for details.
🎯 Triage report
Two lines that were changed by the 4.22 to main merge (82bfa9f) do not match either parent.
ApiResponseHelper.getDataStoreRolenow callsBoolean.getBoolean(value), which reads a JVM system property and so is always false, andVolumeApiServiceImpl.uploadVolumereadsUseHttpsToUpload.value()instead of the zone-awarevalueIn(zoneId), so the zone setting is ignored for volume uploads. The reporter gives the fix for both lines.📊 Assessment
ApiResponseHelperand the volume upload parameters APIBoolean.parseBoolean(value)andUseHttpsToUpload.valueIn(zoneId)🔗 Similar issues
changeDiskOfferingForVolumeInternalon main💡 Notes and suggestions
use.https.to.uploadto false at zone level and comparegetUploadParamsForVolumewithgetUploadParamsForTemplate.Add this agentic workflow to your repo
To install this agentic workflow, run