streamnative / pulsar-manager

A tool for managing Apache Pulsar.
Apache License 2.0
12 stars 3 forks source link

ISSUE-399: Failed to login pulsar-manager in docker #212

Closed sijie closed 3 years ago

sijie commented 3 years ago

Original Issue: apache/pulsar-manager#399


What I see

I deploy a pulsar-manager instance in docker following these instructions. When I try to login in my browser, I got a 404 error shown in following picture. image

image

This request is copied as curl in this command,

curl 'http://localhost:9527/pulsar-manager/login' \
  -H 'Connection: keep-alive' \
  -H 'Pragma: no-cache' \
  -H 'Cache-Control: no-cache' \
  -H 'sec-ch-ua: " Not;A Brand";v="99", "Google Chrome";v="91", "Chromium";v="91"' \
  -H 'X-XSRF-TOKEN: undefined' \
  -H 'sec-ch-ua-mobile: ?0' \
  -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.106 Safari/537.36' \
  -H 'tenant: undefined' \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/plain, */*' \
  -H 'environment: undefined' \
  -H 'username: undefined' \
  -H 'Origin: http://localhost:9527' \
  -H 'Sec-Fetch-Site: same-origin' \
  -H 'Sec-Fetch-Mode: cors' \
  -H 'Sec-Fetch-Dest: empty' \
  -H 'Referer: http://localhost:9527/' \
  -H 'Accept-Language: en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7' \
  -H 'Cookie: _xsrf=2|4013fd3e|b6d98ef38bbba404502e0a5149e81de2|1624113166; username-localhost-8888="2|1:0|10:1624191319|23:username-localhost-8888|44:MWE3Y2Y2NWNmYTU2NGVlNDg4YjkyMWExMWYzYmM0YmQ=|b3644b7048dd362805f83e20ffd3287039a86c6b8df75b01360fddfe066e35cc"' \
  --data-raw '{"username":"admin","password":"apachepulsar"}' \
  --compressed

Expected behavior

Login successfully and redirect to the admin page.

Actual behavior

No UI response and got 404 error in console.