Skip to content
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

Validate IRIs when creating OML Modules #275

Open
NicolasRouquette opened this issue Apr 11, 2018 · 0 comments
Open

Validate IRIs when creating OML Modules #275

NicolasRouquette opened this issue Apr 11, 2018 · 0 comments

Comments

@NicolasRouquette
Copy link
Member

The Eclipse-based OML APIs generally use EMF's URI for constructing IRIs; e.g.:

import org.eclipse.emf.common.util.URI

val organization = "..."
val datasource = "..."
val s_suffix = ".."
val systemURI = URI.createURI('''http://«organization»/user-model/«datasource»/«s_suffix»''')

Unfortunately, the EMF URI API allows creating ill-formed IRIs; e.g.:

...
val systemURI = URI.createURI('''http:///«organization»/user-model/«datasource»/«s_suffix»''')

This is allowed by the Eclipse EMF URI API but it is ill-formed per RFC7230, see Effective Request URI syntax

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant