Skip to content

UUID Generator accepts out-of-range quantity while generating a different count #356

Description

@baixiangcpp

Summary

The UUID Generator quantity field is labeled 1-1000, but values outside that range are accepted and the tool reports success while generating a different number of UUIDs. The displayed input and generated output count disagree.

Reproduction A: quantity 0

  1. Open https://byteflow.tools/en/uuid-generator.
  2. Set Quantity (1-1000) to 0.
  3. Click Regenerate.

Actual:

  • The field continues to display 0.
  • Status shows Regenerate completed.
  • The result header shows Generated UUIDs (1) and one UUID is generated.

Expected: reject 0 with a validation message, or normalize the field to 1 before reporting success.

Reproduction B: quantity 1001

  1. Set Quantity (1-1000) to 1001.
  2. Click Regenerate.

Actual:

  • The field continues to display 1001.
  • Status shows Regenerate completed.
  • The result header shows Generated UUIDs (1000) and 1000 UUIDs are generated.

Expected: reject 1001 with a validation message, or normalize the field to 1000 before reporting success.

Impact

Callers can believe they received the requested number of IDs when they did not. This is especially risky for fixture generation, migrations, and scripts that rely on the visible quantity value.

Environment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions