-
Notifications
You must be signed in to change notification settings - Fork 7
Description
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:
openeo-js-client/src/connection.js
Line 309 in 3c83cf0
| const matches = namespace.match( /^https?:\/\/.*\/processes\/(@?[\w\-.~:]+)\/?/i); |
@ 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.