Skip to content

Issue #1 - [BUG] IP addresses with whitespace cause SSH connection failures #4

@zenocross

Description

@zenocross

Description

When users input server IP addresses with leading or trailing whitespace, SSH connections fail because the whitespace is not trimmed before attempting the connection.

Current Behavior

  • User enters IP address with whitespace (e.g., " 192.168.1.1 " or "192.168.1.1 ")
  • System attempts SSH connection with untrimmed IP
  • Connection fails with error
  • User must re-enter IP without whitespace

Expected Behavior

  • User enters IP address (with or without whitespace)
  • System automatically trims whitespace
  • SSH connection succeeds
  • Better user experience with input forgiveness

Steps to Reproduce

  1. Navigate to server configuration
  2. Enter an IP address with leading/trailing spaces: " 192.168.1.1 "
  3. Attempt to establish SSH connection
  4. Connection fails due to invalid IP format

Proposed Solution

Add .trim() method to IP address input field before processing. This is a simple string manipulation that should be applied wherever IP addresses are collected from user input.

Technical Context

  • Type: Input validation fix
  • Files affected: Server configuration forms
  • Solution: String trimming on IP address fields

Download https://cap.so/ to record your screen (use Studio mode). Export as an mp4, and drag and drop into an issue comment below.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions