podman-desktop
podman-desktop copied to clipboard
Port validation in the Run Image Page is not properly validating the port value until port number has 4 digits
Bug description
Operating system
Fedora 39
Installation Method
Installer from website/GitHub releases
Version
1.8.0
Steps to reproduce
- Start container with a port exposed (httpd-24)
- Try to create/start another container with exposed port
- Assert: default port is different from first app.
- Try to change the port number and see validation message
- Assert: Port number is evaluated and the message fits
Actual result: port number under < 1000 shows unfitting message (
port X is already in use)
Relevant log output
No response
Additional context
Given the message here, I am assuming that port number < 1000 is not a problem. Also, not a number character should probably trigger different message, although the message is not incorrect then.
maybe a dup of https://github.com/containers/podman-desktop/issues/6364
I am not reproducing on Windows
https://github.com/containers/podman-desktop/assets/42176370/99abaf76-d1f2-43f9-aa69-ce505071e2d3