-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
load_ml_model id: overlap between batch job id and file path? #384
Comments
True, that's not ideal. Don't have a good idea yet how to resolve it though... |
The only thing I could think of right now is to require e.g. a "./" at the beginning of file paths. This doesn't feel ideal though. |
another option is requiring some kind of scheme prefix when there is risk of confusion, e.g. |
Yeah, I thought about that too, but I found that even more confusing/unexpected. 🤔 |
Maybe define two processes? Alternatively, I'd say we say that it tries the batch job ID first and otherwise loads the file (because you can change file names but not batch job IDs.) |
I thought a bit more about this and I think we can simply remove the batch job id subtype. A batch job ID can also just be provided via the uri subtype. Either you provide the canonical (i.e. "public") link and then it's just like any external data. Or you can simply provide a URI such as I created PR #413 for it. |
Solved by #413, I think. |
openeo-processes/proposals/load_ml_model.json
Lines 23 to 33 in be14883
Batch job id has regex
"^[\\w\\-\\.~]+$"
and user-uploaded file has regex"^[^\r\n\\:'\"]+$"
.Both regexes will match on simple things like
foo-bar
, so a back-end will not be able to determine if givenid
is intended as job id or a user uploaded file? Or is a back-end supposed to try the available options and pick the first match?The text was updated successfully, but these errors were encountered: