Skip to content

fix(manifest): add min/max bounds to container_port question#29

Merged
verzog merged 1 commit into
mainfrom
claude/fix-moodle-docker-port-WwdY5
May 5, 2026
Merged

fix(manifest): add min/max bounds to container_port question#29
verzog merged 1 commit into
mainfrom
claude/fix-moodle-docker-port-WwdY5

Conversation

@verzog
Copy link
Copy Markdown
Owner

@verzog verzog commented May 5, 2026

Summary

  • The container_port install question is type = "number" with no min/max.
  • YunoHost renders a broken validation message ("Value must be a number equal or lesser than .") that rejects any value, blocking installs that need a non-default internal port (e.g. Moodle on 8080).
  • Constrain the field to the valid TCP port range 1–65535.

Test plan

  • Install the app and set internal port to 8080 (Moodle) — form accepts the value.
  • Default 80 still works.
  • Out-of-range values (0, 70000) are rejected with a sensible message.

Generated by Claude Code

Without explicit min/max on a number-type question, the YunoHost form
renders a broken validator ("Value must be a number equal or lesser
than .") that rejects any input — preventing installs that need a
non-default internal port like Moodle on 8080.
@verzog verzog merged commit 20a99ee into main May 5, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants