Closed zinserjan closed 1 week ago
Feature request: -
directLoad: true
EISDIR: illegal operation on a directory, read
Steps to reproduce the behavior:
Add any other context about the problem here
OS:
Node.js v20.16.0
Packages:
req.baseUrl
htmlFilePath
injectUI5Url
reg.url
reg.originalUrl
@cfg74 could you please plan to get this one fixed.
Related Feature
Feature request: -
Description
directLoad: true
does not work and fails with Error:EISDIR: illegal operation on a directory, read
Steps to Reproduce
Steps to reproduce the behavior:
directLoad: true
in @sap-ux/ui5-proxy-middlewareExpected results
Actual results
EISDIR: illegal operation on a directory, read
Version/Components/Environment
Add any other context about the problem here
OS:
Node.js v20.16.0
Packages:
Root Cause Analysis
Problem
req.baseUrl
is here always an empty string https://github.com/SAP/open-ux-tools/blob/c0f92980c658ad2fc9f28de75b3e778d5fa36559/packages/ui5-proxy-middleware/src/base/utils.ts#L275-L280htmlFilePath
will be just the webapp folder instead of the path to the requested HTML fileinjectUI5Url
it tries to read the webapp directoryFix
reg.url
orreg.originalUrl