Skip to content

libparsec's pathJoin does not return for invalid path names #12011

@Max-7

Description

@Max-7

Parsec version

3.7

Which platform(s) you have observed the problem

  • Any
  • macOS
  • Linux
  • Windows
  • Web

Bug description

When calling libparsec.pathJoin('/', '/'), an exception occurs inside the worker, and the function never returns.

Image

The function returns a string and we don't really want to make it return a result (it would add a lot of complexity). It could be argued that / could be a valid return value in this case. In any case, the function should return, not block.

How should the application behave

No response

Reproduction steps

1.
2.
3.
...

Relevant output:

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ClientArea: Parsec desktop applicationB-TriageBlocker: The issue is awaiting triageI-BindingsImpact: libparsec bindings (generator, electron, web, ...)I-RustImpact: Rust-related stuff

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions