utmapp / utmapp/UTM

You can paste an unlimited amount of text to the "Name" field in "Edit Selected VM"

Open
#5,661 2 comments 0 reactions 0 assignees View on GitHub
interface
Dominant language
Swift
Stars
35.5k
Forks
1.8k
Avg merge
5d 5h
Merged PRs (30d)
7

Description

**BEFORE SUBMITTING YOUR ISSUE, PLEASE LOOK AT THE PINNED ISSUES AND USE THE SEARCH FUNCTION TO MAKE SURE IT IS NOT ALREADY REPORTED. ALWAYS COMMENT ON AN EXISTING ISSUE INSTEAD OF MAKING A NEW ONE.**
This is a follow-up to #5627, now spamming without the newline characters

Describe the issue
You can paste an unlimited amount of text (if it's all on one line) to the "Name" field in "Edit Selected VM"

(didn't test the other text fields in the UI)

Steps to reproduce:

1. Open TextEdit, have 10,000 characters of text (all in one line): "123456789_123456789_123456789_..." etc. etc. etc.
2. Select and Copy the text
3. In UTM, pick a VM and "Edit Selected VM"
4. Information / Name -> Paste everything (on one line)
5. Save
What happens: Buggy error dialog and UI weirdness
Expected: truncate to maximum file name length allowed

![too_long](https://github.com/utmapp/UTM/assets/42669366/9377045c-dda6-4f8b-a086-d31e54fcd2ee)

**Configuration**
* UTM Version: 4.4.1 (89)
* macOS Version: 14.0 Beta (23A5337a)
* Mac Chip (Intel, M1, ...): M1

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.