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

ODataModel issue about to response 501 Not Implemented #13

Closed
tyrone782 opened this issue Mar 18, 2014 · 4 comments
Closed

ODataModel issue about to response 501 Not Implemented #13

tyrone782 opened this issue Mar 18, 2014 · 4 comments

Comments

@tyrone782
Copy link

I use the example with ODataModel From https://openui5.hana.ondemand.com/#docs/guide/ODataModel.html,

var oModel = new sap.ui.model.odata.ODataModel("http://services.odata.org/Northwind/Northwind.svc/");

Run it, it is load metadata with http request method options, as a result response 501 not implemented.

Please tell me there are ways to change the http request method?

@qmacro
Copy link
Member

qmacro commented Mar 18, 2014

I might be wrong, but I'm guessing this is the OPTIONS method being sent by the browser in the case of a cross-domain access request, and it's Northwind's (valid) response saying it doesn't support that method. If you run via a proxy or with relaxed browser security restrictions (for example), this won't occur - see http://jsbin.com/wevac/6/edit for example.

@matz3
Copy link
Member

matz3 commented Mar 18, 2014

Like @qmacro already said, the problem is that the Northwind Service doesn't seem to support Cross-Domain Requests.
You should use a proxy to handle this, but if you have access to the service (so if you run an own for your app) you should enable CORS there and it should work fine.

An example using cors-anywhere: http://jsbin.com/qozusiwu/1/edit

@rohitraja
Copy link

Correct , use this URL to add proxy over it.

var oModel = new sap.ui.model.odata.ODataModel("proxy/http/services.odata.org/Northwind/Northwind.svc");

irinagoetz added a commit that referenced this issue Aug 10, 2015
IE11 needs ASCII 10 for a new line. &#13 is not sufficient.

Change-Id: I2eaefab7000cc1790c1706666d845b5bcf4000d1
BCP:1570780235
irinagoetz added a commit that referenced this issue Aug 14, 2015
IE11 needs ASCII 10 for a new line. &#13 is not sufficient.

Change-Id: I2eaefab7000cc1790c1706666d845b5bcf4000d1
BCP:1570780235
(cherry picked from commit 2a50566)

Change-Id: I1b677da30fbf664a4f4ba98bd7ae9bde0659b314
CR-Id: 012006153200004235422015
irinagoetz added a commit that referenced this issue Aug 14, 2015
IE11 needs ASCII 10 for a new line. &#13 is not sufficient.

Change-Id: I2eaefab7000cc1790c1706666d845b5bcf4000d1
BCP:1570780235
(cherry picked from commit 2a50566)
CR-Id: 012006153200004235432015
petermuessig pushed a commit that referenced this issue Jun 7, 2018
Merge pull request #13 from D068664/master

fix popup on mobile devices
@gregorwolf
Copy link
Contributor

I've just commented on the issue OData/ODataSamples#29 and perhaps we get http://service.odata.org fixed.

openui5bot pushed a commit that referenced this issue Nov 3, 2021
…geParameters, filter, sort

PS1: red integration test and POC w.r.t. PATCH
PS2: review comments, first steps towards bIgnoreKeptAlive
PS3: improve integration tests; POC to make all green
PS4: TODOs for bKeepCacheOnError, move oOldCache.setKeepAlive(false),
  add creation row, ODataModel#hasPendingChanges, etc.
PS5: add changes to items table; drop ODataModel#hasPendingChanges again
PS6: #setKeepAlive after #setProperty; no need to mark POSTs anymore;
  TODOs
PS7: bKeepCacheOnError
PS8: PP BTH; review and strip down integration tests
PS9: PP BTH; red integration test and POC for bKeepCacheOnError
PS10: PP BTH; TDD to pass information about bKeepCacheOnError to
  #fetchCache
PS11: PP BTH; task #4
PS12: PP BTH; task #5 (half way)
PS13: task #5 completed
PS14: PP BTH; task #5 fixed
PS15: PP BTH; task #6,7,8
PS16: PP BTH; task #3 completed, all old integration tests green again
PS17: PP BTH; task #10 pass keep alive information in Context#doSetProperty
PS18: PP BTH; fix file indentation
PS19: PP BTH; task #11
PS20: PP BTH; task #12 ODataBinding
PS21: PP BTH; task #12 ODataParentBinding
PS22: PP BTH; task #12 ODataParentBinding code review
PS23: PP BTH; task #13
PS24: PP BTH; task #14
PS25: comments by KTH, URE
PS26: PP BTH; comments by TCH, URE; BCP: 2170236485
PS27: comments by TCH
PS28: rebased
PS29: ESLint, indentation
PS30: PP BTH; red integration test, POC, and TDD for not passing
  bIgnoreKeptAlive to dependent bindings; comments by KTH, URE
PS31: remove "isA"; TODOs
PS32: PP BTH; kept-alive elements and bKeepCacheOnError
PS33: PP BTH; try to address merging of PATCHes; comments by KTH, TCH
PS34: TDD; comments by MUH, TCH
PS35: avoid cleanup of oFetchCacheCallToken
PS36: JSDoc
PS37: MIT & OPA for FlexibleColumnLayout app
PS38: comments by KTH
PS39: rebased
PS40: rebased
PS41: comment by KTH

Change-Id: I8e133826e622a48756539077bbd92f16c4fbac86
JIRA: CPOUI5ODATAV4-1105
JIRA: CPOUI5ODATAV4-1230
JIRA: CPOUI5ODATAV4-1231
JIRA: CPOUI5ODATAV4-1232
JIRA: CPOUI5ODATAV4-1233
JIRA: CPOUI5ODATAV4-1234
JIRA: CPOUI5ODATAV4-1235
JIRA: CPOUI5ODATAV4-1236
JIRA: CPOUI5ODATAV4-1237
JIRA: CPOUI5ODATAV4-1238
JIRA: CPOUI5ODATAV4-1239
JIRA: CPOUI5ODATAV4-1240
JIRA: CPOUI5ODATAV4-1241
JIRA: CPOUI5ODATAV4-1247
JIRA: CPOUI5ODATAV4-1260
JIRA: CPOUI5ODATAV4-1261
JIRA: CPOUI5ODATAV4-1262
JIRA: CPOUI5ODATAV4-1266
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants