Module upload to library error: APIError 400: Bad Request

Tried several times to upload my Prussia’s Glory II Module around 01:20 13 June. Keep getting the APIError 400: Bad Request.

I logged out and back in a few times. Tried uploading from both Edge and Firefox.

image

How far did the upload progress? Did you get an error immediately?

Where can I get a copy of the module so I can examine it?

Immediately.

You can look at it here.

Thanks.

Solved it while watching baseball!

It was the apostrophe.

image

Thanks for the response, though.

I suspected the apostrophe was the problem, but hadn’t gotten as far as proving it.

As much as I dislike apostrophes in filenames, it ought to work and I’m going to run down why it doesn’t.

It is likely not a normal ' but some other glyph. MacOS has a tendency to replace ASCII characters with glyphs :dotted_line_face:

Yours,
Christian

Note that we already had an issue in the tracker for this. Frontend should reject bad filenames · Issue #55 · vassalengine/game-library · GitHub

I’ve completed GL #55. The library frontend will now tell you if you have an invalid filename.

Valid filenames are:

  • nonempty
  • less than 256 characters long
  • have no leading or trailing whitespace
  • do not end with .
  • do not contain ..
  • do not contain control characters or any of "'*/:<>?|\
  • not Windows reserved filenames (CON, PRN, AUX, NUL, COM1, …, COM9, LPT1, …, LPT9)