getodk / central

ODK Central is a server that is easy to use, very fast, and stuffed with features that make data collection easier. Contribute and make the world a better place! ✨🗄✨
https://docs.getodk.org/central-intro/
Apache License 2.0
127 stars 155 forks source link

Empty space in "Create Public Access Link" #693

Open dbemke opened 4 months ago

dbemke commented 4 months ago

Problem description

It's possible to create a public access link to a form with just a space in the name. After using a space in the name field, the space is prefilled in the name field.

Steps to reproduce the problem

  1. Go to a form to "Public Access" tab.
  2. Click "Create Public Access Link".
  3. Enter a space in "Display name" field.
  4. Click "Create".
  5. Click "Create Public Access Link" again and check the name field.

    Screenshot

    https://jam.dev/c/edbc27f7-67f5-4964-99d1-bfe57e3ffe36

Expected behavior

Central version shown in version.txt

https://staging.getodk.cloud/ versions: e49518adb84f88d7bc6c3626fc77584dfc935435 (v2024.1.0-6-ge49518a) +c26fce67e3bdbb6dbabafd7f02ea9abe81009e2c client (v2024.1.0-32-gc26fce67) +fb96aa3333d3442ea43365755766262f21de3969 server (v2024.1.0-23-gfb96aa33)

https://test.getodk.cloud versions: f21b33acc8dae215e54485849e7dd59167e6f433 (v2024.1.0) 3fb0c22b1cbdc3a6004963afcc3847a82c09307d client (v2024.1.0) b4754cf52bfa64b1ca841bc9ccb64a38726398e8 server (v2024.1.0)

Browser

Firefox and Chrome