Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Direct download template size is incorrect

Open
#13,916 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
64/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
java
Domain
backend, cloud

Research direction

Reproduce the issue by registering the provided metalink as a direct download template in CloudStack and checking the displayed size. Trace the direct-download template registration and size-display entry points, then verify that the displayed size matches the metalink's declared value.

Written by the indexing model from the issue text.

Description

bug component:templates
problem

Direct download template size is incorrect

versions

ACS 4.22.1

The steps to reproduce the bug
  1. Create a metalink file

Example

<?xml version="1.0" encoding="UTF-8"?>
<metalink version="3.0" xmlns="http://www.metalinker.org/">
  <files>
    <file name="ubuntu24-cloud-image-root-password-with-tools.qcow2">
      <size>10485760</size>
      <resources>
        <url type="nfs" preference="100">nfs://10.0.35.201/export/templates/ubuntu24-cloud-image-root-password-with-tools.qcow2</url>
      </resources>
    </file>
  </files>
</metalink>

  1. Expose it via http server

python3 -m http.server 8081 --bind 0.0.0.0

  1. Register it a direct download template in cloudstack

  2. Check the size

Image

...

What to do about it?

The correct size of the direct download template should be displayed

Dominant language
Java
Stars
3.1k
Forks
1.4k
Avg merge
6d 20h
Merged PRs (30d)
27

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/cloudstack

All issues in apache/cloudstack

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.