------------------------------------------------------------------------------ To reply, visit https://hellosplat.com/s/beanbag/tickets/4946/ ------------------------------------------------------------------------------
New ticket #4946 by aparker591 For Beanbag, Inc. > Review Board Status: New Tags: Priority:Medium, Type:Defect File attachments: * nginxtemplate <https://hellosplat.com/s/beanbag/attachments/1392/> * docker-compose.yaml <https://hellosplat.com/s/beanbag/attachments/1393/> ------------------------------------------------------------------------------ Review Board site configured with non-standard port causes draft API call to fail ============================================================================== # What version are you running? 4.0.4 # What's the URL of the page containing the problem? http://reviews.example.com:2001/r/1/ # What steps will reproduce the problem? 1. Brand new, clean RB site spun up with slightly modified Docker Compose example configuration published in the Review Board documentation. Server OS is RHEL 8 with latest Docker. The key modification I made to the config was that we're running nginx with a nonstandard port (2001). See attached for redacted Docker configs. This example uses plain HTTP, but it doesn't affect the result. 2. Run the docker compose and watch as the clean site is set up from scratch. 3. Log into the site with the default admin credentials. 4. Go to Admin > General and add :2001 to the end of what's in the Server textbox. So in this example, it would be http://reviews.example.com:2001 now. Save the change. 5. Click New Review Request and enter anything in Description, then click OK. # What is the expected output? What do you see instead? The expected output is that the change is accepted and the Loading spinner at the top goes away quickly. Instead, the spinner gets stuck does not accept the change. When looking at the browser's dev tools, this is the draft API call that is issued. Note that it is missing the :2001 port and therefore fails. http://reviews.example.com/api/review-requests/1/draft/?api_format=json&force-text-type=html&include-text-types=raw&expand=depends_on,target_people,target_groups There are other API calls logged in the dev tools as the page originally loaded, and those properly use the port, leading me to believe this is a bug somewhere. # What operating system are you using? What browser? Server: RHEL 8 Docker Client: Windows 10 with Firefox, Chrome, and Edge all affected # Please provide any additional information below. Bonus issue: Not sure if this is related, but after saving the change to the Server textbox in the Admin > General configuration page (step 4), if you repeatedly click the General link, it'll reload the page sometimes with the correct "Server" value and sometimes with the previous value that was there before the change was saved. Flushing memcached doesn't seem to stop this from happening. ------------------------------------------------------------------------------ -- You received this message because you are subscribed to the Google Groups "reviewboard-issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/reviewboard-issues/20211018224439.31158.30168%40ip-10-1-54-209.ec2.internal.
