seal-io / walrus

Walrus is an open-source application management platform based on IaC tools including OpenTofu, Terraform and others. It helps platform engineers build golden paths for developers and empowers developers with self-service capabilities.
https://seal.io
Apache License 2.0
426 stars 41 forks source link

Fail to add module if there are leading white spaces of the source URL #754

Closed Finenyaco closed 6 months ago

Finenyaco commented 1 year ago

Version: main
UI: dev-6168160 Commit ID: 2123c63e14cb8461eb00fc5a594999b5bc82483d Env: MacOS 13.1, Apple M2

Test Steps:

  1. Go to module page and add a new module.
  2. Enter a space when filling in the source URL. image

Test Result:

  1. Fail to add module: invalid source: relative paths require a module with a pwd image

Suggestion:

Trim the leading white spaces at both the front end and backend.

Finenyaco commented 6 months ago

Environment

Test Result: Fixed. https://github.com/seal-io/walrus/issues/2077