openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

Table uses getUriParameters from jquery.sap.script but does not require it

Open cevou opened this issue 8 years ago • 2 comments

OpenUI5 version: 1.58.4

In the init function of sap.ui.Table jQuery.sap.getUriParameters() is called.

https://github.com/SAP/openui5/blob/6b234d940e2eb2b8acf9356f7983e36ad3e74d26/src/sap.ui.table/src/sap/ui/table/Table.js#L771

This function is defined in jquery.sap.script. This file is not required in the sap.ui.define dependencies and if it hasn't been loaded by a different file before an error is thrown, because the function is not defined.

cevou avatar Oct 19 '18 15:10 cevou

Hello @cevou ,

Thank you for sharing this finding. I've created an internal incident 1880649881. The status of the issue will be updated here in GitHub.

Regards, Georgi

ghristanov avatar Oct 24 '18 12:10 ghristanov

Hi @cevou ,

Thank you for reporting this issue. An error would not be thrown, because the module will be loaded lazily when #getUriParameters is called. But this is a synchronous call. And because we want to avoid them, we changed the implementation in the table.

Best Regards, Alex

JumpNRun avatar Dec 20 '18 09:12 JumpNRun