ui5-tooling icon indicating copy to clipboard operation
ui5-tooling copied to clipboard

ui5 serve --open can not resolve relative path with single quote 'xxxxxx'

Open geng19 opened this issue 1 year ago • 5 comments

ui5 serve --open will open web server root directory in default browser. Optionally, supplied relative path will be appended to the root URL. But when i use it in my case, the relative path was with '' and it had the error ''failed to load resource: the server responded with a status of 404 (not found)''

code with error : "scripts": { "start": "ui5 serve --open 'index.html'" }, but it worked with "index.html" or just index.html without prefix and suffix

geng19 avatar Jun 26 '24 13:06 geng19

Hi @geng19, thanks for sharing this finding. I tested it on my machine (macos v14.5, node v20.13.1, ui5/cli v3.11.0). With following 3 options the index.html opens as desired in my default browser.

  1. ui5 serve --open index.html
  2. ui5 serve --open "index.html"
  3. ui5 serve --open 'index.html' So, I guess your machine/os differs from my one. Could you please share your operating system, installed node version and @ui5/cli version?

flovogt avatar Jun 27 '24 05:06 flovogt

Node.js v20.12.0 [image: image.png]

Florian Vogt @.***> 于2024年6月27日周四 07:50写道:

Hi @geng19 https://github.com/geng19, thanks for sharing this finding. I tested it on my machine (macos v14.5, node v20.13.1, ui5/cli v3.11.0). With following 3 options the index.html opens as desired in my default browser.

  1. ui5 serve --open index.html
  2. ui5 serve --open "index.html"
  3. ui5 serve --open 'index.html' So, I guess your machine/os differs from my one. Could you please share your operating system, installed node version and @ui5/cli version?

— Reply to this email directly, view it on GitHub https://github.com/SAP/ui5-tooling/issues/971#issuecomment-2193843085, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARUFUIDFFZSXKRXE7YKQAXTZJOR27AVCNFSM6AAAAABJ56GI66VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJTHA2DGMBYGU . You are receiving this because you were mentioned.Message ID: @.***>

geng19 avatar Jun 27 '24 09:06 geng19

Node.js v20.12.0 [image: image.png]

Sadly that image didn't go through. Could you please try uploading it via a new comment in the browser?

RandomByte avatar Jun 27 '24 10:06 RandomByte

Also, please share your npm version as well as your operating system with us. Thanks!

RandomByte avatar Jun 27 '24 11:06 RandomByte

This issue has been automatically marked as stale because it has been open for 60 days with no activity. It will be closed in 10 days if no further activity occurs.

github-actions[bot] avatar Aug 26 '24 20:08 github-actions[bot]