Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crash on Windows when < in topic name #357

Open
rkuhn opened this issue Jul 4, 2022 · 2 comments
Open

crash on Windows when < in topic name #357

rkuhn opened this issue Jul 4, 2022 · 2 comments
Assignees
Labels
Bug good first issue This a good issue for your first contribution to Actyx hacktoberfest This issue is eligible for Hacktoberfest

Comments

@rkuhn
Copy link
Member

rkuhn commented Jul 4, 2022

Node exited with error InternalError(Component Swarm

Caused by:
    0: unable to open database file: C:\Program Files\Actyx\Node\actyx-data\store\default-topic-635687454154sdyy<sdfg-blobs.sqlite
    1: Error code 14: Unable to open the database file)

Windows file name rules

Use any character in the current code page for a name, including Unicode characters and characters in the extended character set (128–255), except for the following:

  • The following reserved characters:

    < (less than)
    > (greater than)
    : (colon)
    " (double quote)
    / (forward slash)
    \ (backslash)
    | (vertical bar or pipe)
    ? (question mark)
    * (asterisk)
    Integer value zero, sometimes referred to as the ASCII NUL character.

  • Characters whose integer representations are in the range from 1 through 31, except for alternate data streams where these characters are allowed. For more information about file streams, see File Streams.

  • Any other character that the target file system does not allow.

Do not use the following reserved names for the name of a file:

  • CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9. Also avoid these names followed immediately by an extension; for example, NUL.txt is not recommended.

Do not end a file or directory name with a space or a period.

Maximum length of the file path is 260 characters.

@rkuhn rkuhn added the Bug label Jul 4, 2022
@rkuhn rkuhn self-assigned this Jul 4, 2022
@rkuhn
Copy link
Member Author

rkuhn commented Nov 17, 2022

This probably requires a new DB version with associated migration of filenames. Unix-like systems strictly speaking also need such a facility, as \x00 and / are forbidden in filenames.

@rkuhn
Copy link
Member Author

rkuhn commented Feb 1, 2023

Or we could just change the settings schema to forbid such characters. Would require rethinking the startup a bit so that users can usefully be informed and get a chance to fix the settings.

@jmg-duarte jmg-duarte added good first issue This a good issue for your first contribution to Actyx hacktoberfest This issue is eligible for Hacktoberfest labels Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug good first issue This a good issue for your first contribution to Actyx hacktoberfest This issue is eligible for Hacktoberfest
Projects
None yet
Development

No branches or pull requests

2 participants