GUI shouldn't allow double-quotes in Character name, or if it does, should generate a filename without them upon save.

Description

As a user of PCGen, I want some data validation upon filenames when saving characters so that I can avoid losing characters by accident.

It has happened to me a couple of times now that I have had character files "mysteriously disappear" after hours of work on them. Then I paid attention harder to the Save dialog and realized that I had character names that included nicknames, for example, Sydellion "Syd" Foxenhelfer. When saving such a character, the Save dialog is generating a file name like: Sydellion "Syd" Foxenhelfer.pcg. When I click the Save button, there is no error about an illegal filename and I think the file is saved correctly. Later on, if I exit and choose not to save, then my character is completely lost.

The workaround is, of course, to tweak the filename in the Save dialog before pressing Save. I certainly want to be about to still have characters with nicknames. But some simple validation here might save others from lost work and frustration that I have experienced.

Environment

Windows 10

Activity

Show:
Maximilian Schlosser
April 18, 2020, 10:22 PM

I’d like to work on this.

Alan Shutko
August 22, 2020, 12:11 AM

There appears to be a related Github issue at

Andrew Maitland
August 22, 2020, 12:23 AM

and you’ve both been given Jira access.

Alan Shutko
August 23, 2020, 3:59 PM

It looks like this is not currently a problem on 6.09 because that version does not currently suggest filenames. (Which would be awfully nice.) So I will fix on 6.08 and then work on adding suggested filenames to 6.09.

Assignee

Alan Shutko

Reporter

Scott Aguirre

Labels

Theme

None

Epic/Theme

None

Pending User Input

No

Components

Affects versions

Priority

Minor
Configure