You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After calling /rest/order-history without the Authorization header causes Juice Shop to throw an error and exit completely.
Is this a regression?
Unknown
🔬 Minimal Reproduction
Call:
GET /rest/order-history HTTP/1.1
Host: :3000
Accept: application/json, text/plain, */*
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36
Referer: http://:3000/
Accept-Encoding: gzip, deflate
Connection: close
Note: I removed some other Headers but the one causing the error is Authorization. Tested by removing them one by one.
🔥 Exception or Error
TypeError: Cannot read property 'replace' of undefined
at /home/kona/Schreibtisch/juice-shop_12.7.1/build/routes/orderHistory.js:12:88
at Layer.handle [as handle_request] (/home/kona/Schreibtisch/juice-shop_12.7.1/node_modules/express/lib/router/layer.js:95:5)
at next (/home/kona/Schreibtisch/juice-shop_12.7.1/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/home/kona/Schreibtisch/juice-shop_12.7.1/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/home/kona/Schreibtisch/juice-shop_12.7.1/node_modules/express/lib/router/layer.js:95:5)
at /home/kona/Schreibtisch/juice-shop_12.7.1/node_modules/express/lib/router/index.js:281:22
at Function.process_params (/home/kona/Schreibtisch/juice-shop_12.7.1/node_modules/express/lib/router/index.js:335:12)
at next (/home/kona/Schreibtisch/juice-shop_12.7.1/node_modules/express/lib/router/index.js:275:10)
at /home/kona/Schreibtisch/juice-shop_12.7.1/build/routes/verify.js:133:5
at Layer.handle [as handle_request] (/home/kona/Schreibtisch/juice-shop_12.7.1/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/home/kona/Schreibtisch/juice-shop_12.7.1/node_modules/express/lib/router/index.js:317:13)
at /home/kona/Schreibtisch/juice-shop_12.7.1/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/home/kona/Schreibtisch/juice-shop_12.7.1/node_modules/express/lib/router/index.js:335:12)
at next (/home/kona/Schreibtisch/juice-shop_12.7.1/node_modules/express/lib/router/index.js:275:10)
at /home/kona/Schreibtisch/juice-shop_12.7.1/build/routes/verify.js:69:5
at Layer.handle [as handle_request] (/home/kona/Schreibtisch/juice-shop_12.7.1/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/home/kona/Schreibtisch/juice-shop_12.7.1/node_modules/express/lib/router/index.js:317:13)
at /home/kona/Schreibtisch/juice-shop_12.7.1/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/home/kona/Schreibtisch/juice-shop_12.7.1/node_modules/express/lib/router/index.js:335:12)
at next (/home/kona/Schreibtisch/juice-shop_12.7.1/node_modules/express/lib/router/index.js:275:10)
at logger (/home/kona/Schreibtisch/juice-shop_12.7.1/node_modules/morgan/index.js:144:5)
at Layer.handle [as handle_request] (/home/kona/Schreibtisch/juice-shop_12.7.1/node_modules/express/lib/router/layer.js:95:5)
🌳 Your Environment
v15.14.0
7.9.0
Additional Information
The text was updated successfully, but these errors were encountered:
Thanks a lot for opening your first issue with us! 🧡 We'll get back to you shortly! ⏳ If it was a Support Request, please consider asking on the community chat next time! 💬
This thread has been automatically locked because it has not had recent activity after it was closed. 🔒 Please open a new issue for regressions or related bugs.
🐛 Bug report
Description
After calling /rest/order-history without the
Authorization
header causes Juice Shop to throw an error and exit completely.Is this a regression?
Unknown
🔬 Minimal Reproduction
Call:
Note: I removed some other Headers but the one causing the error is
Authorization
. Tested by removing them one by one.🔥 Exception or Error
🌳 Your Environment
Additional Information
The text was updated successfully, but these errors were encountered: