Skip to content

Normalize namespace doesn't work for EGI Checkin users #60

@JanssenBrm

Description

@JanssenBrm

We noticed a strange behaviour in the openEO Web Editor where a UDP wasn't correctly loaded into the wizard. It mentions Process not found: https://editor.openeo.org/?server=https://openeo.vito.be&namespaces=https://openeo.vito.be/openeo/processes/u:63d26122aec1fc5ae2c16a045570e4d90e89fb3a51081c0d9d6047c270f72940@egi.eu/CORSAcompression&wizard=UDP&wizard~process=CORSAcompression@https://openeo.vito.be/openeo/processes/u:63d26122aec1fc5ae2c16a045570e4d90e89fb3a51081c0d9d6047c270f72940@egi.eu/CORSAcompression

After some debugging of the requests, we noticed that the web editor is loading in the processes of the namespace through the following URL: https://openeo.vito.be/openeo/1.2/processes/u:63d26122aec1fc5ae2c16a045570e4d90e89fb3a51081c0d9d6047c270f72940. However, this URL is missing the @egi.eu part, resulting in an empty array of processes.

A short debug session leads us to the function that is used to normalize the namespace naming:

const matches = namespace.match( /^https?:\/\/.*\/processes\/(@?[\w\-.~:]+)\/?/i);
. It appears that regex is ignoring the part that is behind @ sign. We believe that this could be causing the issue.

I'm happy to open a PR, but I wanted to create this issue first to check if this could be causing the issue and assess the impact of it.

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