UI5 / UI5/openui5

OData v4 Model - propagate http-response headers

Open
#4,288 11 comments 0 reactions 2 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
JavaScript
Stars
3.3k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

Why are you proposing this feature?

I've faced issue while attaching fnHttpListener to the freshly created oData v4 model. When requests are failing with any error, it's not being triggered.

How should a possible solution look like?

Possible solution would be to add into sap/ui/model/odata/v4/lib/_Requestor-dbg.js into
_Requestor.prototype.sendRequest function in the .catch following line:

that.oModelInterface.onHttpResponse(_Helper.parseRawHeaders(jqXHR.getAllResponseHeaders()));

This exists for the successfully performed requests but not for errored requests

Are there alternative approaches?

No response

Any further information you would like to share?

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.