Skip to content

The route helper method throws an illegal character error when running cbPlaywright on Windows #11

@josephmchastain

Description

@josephmchastain

The route helper method in cbPlaywright.models.PlaywrightMixins throws an "Illegal char <:> at index 4: http://127.0.0.1:63337\/" error when running cbPlaywright on Windows (where the local server is http://127.0.0.1:63337 and "/" is passed into the route method).

The route method returns the following:
return variables.javaPaths.get( baseURL, javacast( "String[]", pathArray ) ).toString();

Where javaPaths is instantiated like so: variables.javaPaths = createObject( "java", "java.nio.file.Paths" );

A Windows path cannot contain a colon, and so using java.nio.file.Paths in this manner to construct the URL is the source of the error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions