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

Code expects metadata to be present at .../$metadata/ instead of .../$metadata (no slash) #22

Open
nicenemo opened this issue Jun 14, 2018 · 0 comments

Comments

@nicenemo
Copy link

According to the OData specification $metadata urls should work without trailing '/'. They may also work with trailing slash.

4.1 Addressing the Model for a Service

OData services expose their entity
model according to OData-CSDL at the metadata URL, formed by
appending $metadata to the service root URL

Example 5: Metadata document URL

http://host/service/$metadata

OData services MAY expose their entity model
as a service, according to [OData-CSDL], by appending a trailing slash (/) to the metadata document URL.

Example 6: Metadata service root URL

http://host/service/$metadata/

Olingo Odata services for example do not have the trailing '/' in their $metadata url.

I forked your repo and fixed that. I did not fix the unit test yet. Do you want a pull request?

Fixes:

fspot added a commit to ToucanToco/toucan-connectors that referenced this issue Jun 21, 2019
fspot added a commit to ToucanToco/toucan-connectors that referenced this issue Jun 21, 2019
* patch odata $metadata (cf. tuomur/python-odata#22)

* add test
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