WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
This repository was archived by the owner on Jan 21, 2024. It is now read-only.
This repository was archived by the owner on Jan 21, 2024. It is now read-only.

Bug: Basepath Urls containing spaces lead to parser failure due to failed resource load. #96

@jgsuess

Description

@jgsuess

Library version used
amf-core_2.12-4.1.20.jar

Language library used with
Java

Describe the bug

Basepath Urls containing spaces lead to parser failure due to failed resource load.

Code that causes a bug

final File = new File("i do not like spaces/thiswillnotwork.raml");		
final String baseUri = file.getParentFile().getAbsoluteFile().toURI().toURL().toExternalForm();
final WebApiBaseUnit result = parse(ramlContent, baseUri).get();

throws amf.core.remote.FileNotFound from ResourceLoader:31

Input
Any path containing spaces

Actual behaviour/output/error

throws amf.core.remote.FileNotFound from ResourceLoader:31

Expected behaviour/output

use base directory, execute parse.

Additional context

Care has been taken to execute a legal String conversion. The representation is produces by Java's canonical URL handler.

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