@sapui5/sap.ushell_abap 1.120.36 → 1.120.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/main/js/sap/ushell_abap/.library +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/AppStateAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/ClientSideTargetResolutionAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/CommonDataModelAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/ConfigurationDefaultsAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/ContainerAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/LaunchPageAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/NavTargetResolutionAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/PageBuildingAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/PagePersistenceAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/PersonalizationAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/PersonalizationV2Adapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/SearchAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/SupportTicketAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/Ui5ComponentLoaderAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/hana/ContainerAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.configure.ushell.js +1 -1
- package/src/main/js/sap/ushell_abap/library.js +2 -2
- package/src/main/js/sap/ushell_abap/pbServices/ui2/ODataWrapper.js +13 -1
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<library xmlns="http://www.sap.com/sap.ui.library.xsd">
|
|
3
3
|
<name>sap.ushell_abap</name>
|
|
4
4
|
<vendor>SAP SE</vendor>
|
|
5
|
-
<version>1.120.
|
|
5
|
+
<version>1.120.37</version>
|
|
6
6
|
<copyright>Copyright (c) 2009-2023 SAP SE, All Rights Reserved</copyright>
|
|
7
7
|
<documentation>SAP library: sap.ushell_abap</documentation>
|
|
8
8
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Container header properties transported via pseudo-items are mapped to the
|
|
8
8
|
* respective header properties in setItem/getItem/delItem
|
|
9
9
|
*
|
|
10
|
-
* @version 1.120.
|
|
10
|
+
* @version 1.120.37
|
|
11
11
|
*/
|
|
12
12
|
sap.ui.define([
|
|
13
13
|
"sap/ushell_abap/adapters/abap/AdapterContainer",
|
|
@@ -16,13 +16,13 @@ sap.ui.define([
|
|
|
16
16
|
* @namespace
|
|
17
17
|
* @name sap.ushell_abap
|
|
18
18
|
* @author SAP SE
|
|
19
|
-
* @version 1.120.
|
|
19
|
+
* @version 1.120.37
|
|
20
20
|
* @private
|
|
21
21
|
* @ui5-restricted
|
|
22
22
|
*/
|
|
23
23
|
var ushellAbapLib = sap.ui.getCore().initLibrary({
|
|
24
24
|
name: "sap.ushell_abap",
|
|
25
|
-
version: "1.120.
|
|
25
|
+
version: "1.120.37",
|
|
26
26
|
dependencies: ["sap.ui.core", "sap.m"],
|
|
27
27
|
noLibraryCSS: true,
|
|
28
28
|
extensions: {
|
|
@@ -323,6 +323,16 @@ sap.ui.define([
|
|
|
323
323
|
"X-CSRF-Token": oODataService.getCsrfToken()
|
|
324
324
|
};
|
|
325
325
|
|
|
326
|
+
// Ensure fetching a csrf token for POST methods always. As of today, ABAP only requires a valid token for POST requests.
|
|
327
|
+
// Conceptual apart from HEAD request, a back-end can require a valid token for GET as well.
|
|
328
|
+
if (oODataService.getCsrfToken() === "" && sMethod !== "GET") {
|
|
329
|
+
oODataService.refreshCsrfToken(
|
|
330
|
+
this.doRequest.bind(that, sRequestUrl, sMethod, oPayload, fnSuccess, fnFailure, oHandler, /* bIsRepeatedRequest */ true),
|
|
331
|
+
fnFailure
|
|
332
|
+
);
|
|
333
|
+
return;
|
|
334
|
+
}
|
|
335
|
+
|
|
326
336
|
addGlobalSapHeaders(oHeaders);
|
|
327
337
|
addStickySessionHeader(oHeaders);
|
|
328
338
|
|
|
@@ -428,7 +438,9 @@ sap.ui.define([
|
|
|
428
438
|
sRequestUrl = this.toRequestUrl(sRelativeUrl),
|
|
429
439
|
oHeaders = addStickySessionHeader(addGlobalSapHeaders()); // may return an empty object
|
|
430
440
|
|
|
431
|
-
if
|
|
441
|
+
// if sRelativeUrl is empty, we ask for the service document, which is only used for fetching an XSRF token,
|
|
442
|
+
// so we are not taking already queued requests into account.
|
|
443
|
+
if (aBatchQueue && sRelativeUrl !== "") {
|
|
432
444
|
Log.debug('Queued OData request for GET "' + sRelativeUrl + '"', null,
|
|
433
445
|
"ODataWrapper");
|
|
434
446
|
aBatchQueue.push({
|