Skip to content

Merge of 4.22 into main left Boolean.getBoolean and a non-zone use.https.to.upload lookup #14766

Open

Description

@bhouse-nexthop

problem

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.
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 82bfa9f. 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).

Activity

  1. github-actions commented on Nov 26, 2026

    @github-actions

    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.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)

    🔗 Similar issues

    💡 Notes and suggestions
    • Reproduction: set use.https.to.upload to false at zone level and compare getUploadParamsForVolume with getUploadParamsForTemplate.
    • A review of other lines changed by the same merge may find more of the same kind.

    Generated by Daily Issue Triage · copilot · haiku55 · ~7 AIC · ⊞ 3.8K · ◷

    Add this agentic workflow to your repo

    To install this agentic workflow, run

    gh aw add githubnext/agentics/workflows/daily-issue-triage.md@139fa09ef17cde4135e696ff8e7af09bc5ddfa6e
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions