Skip to content

OnlyWorlds Unity SDK 0.61.2

Choose a tag to compare

@tmoosting tmoosting released this 28 Nov 14:14
· 36 commits to main since this release

A world folder write refuses an element id that cannot be one file name inside the folder, before writing
anything; an archive or file name holding a C1 control character is refused, as the other OnlyWorlds SDKs refuse it.

Fixed

  • A world folder write refuses an element id that cannot be one file name inside the folder (empty, /, \, a
    colon, a control character, . or ..), before writing anything. The id must be one non-empty segment, and the file
    name made from it must pass the archive's own name checks (folder spec §4.7, OW-16 and OW-22, so a drive, a
    character Windows refuses or a device name is refused too); then its resolved path must lie in its type folder.
    OWFolderWriter.WriteElement, OWFolderWriter.Write and OWFolderExport (from an account or a downloaded world
    file) throw OWFolderFormatException, whose message names the type, the id and why in the words of the TypeScript
    and Python packages (character element id "a/b" cannot be a file name: it holds a path separator, / or \.) and
    whose Reason is unsafe_path, or name for a name check. A UUID and an id such as c-1 are written as before.
    An export of a Map whose id is .. was written with its image left out; it is now refused whole.
  • An archive entry name or element file name holding a C1 control character, U+0080 to U+009F, is refused, as the
    other OnlyWorlds SDKs refuse it
    (folder spec §4.7, OW-22: a control character is general category Cc).
    OWWorldArchive.Read refused only U+0000 to U+001F and U+007F; it now refuses the archive (name), and Pack and
    the folder writer's name check refuse such a name too. U+00A0 and above are read as before.