OData v4 Model - propagate http-response headers
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.