Description of problem: "Submit job" button redirects to 'http' URL when it should be 'https' URL Version-Release number of selected component (if applicable): beaker-server-20.1-1.el6eng How reproducible: Always if the lab is configured to use https Steps to Reproduce: 1. Go to Scheduler->Reserve page from web UI 2. Enter provisioning parameters 3. Press "Submit job" button Expected results: Redirected to 'https' URL if your lab is configured to use 'https'. Actual results: Redirected to 'http' URL and get error. Additional information: The same problem is observed with "Add+" button in Systems page. I set 'https' in tg.url_scheme of /etc/beaker/server.cfg. This is a regression from 0.18.
I think the problem is that we are relying on Flask to convert the Location header to absolute URLs in these cases, and it isn't aware of the TurboGears config. I expect it will use the URL scheme from wsgi.url_scheme which will be set to 'http' if mod_wsgi thinks it is serving the application over HTTP, which is what happens if you serve the application over HTTP with a reverse proxy in front doing SSL termination...
http://gerrit.beaker-project.org/4348
This is only reproducible if: * the server is configured to use HTTPS (tg.url_scheme="https" in /etc/beaker/server.cfg) * the redirect to HTTPS is not enabled (RewriteCond and RewriteRule in /etc/httpd/conf.d/beaker-server.conf not uncommented) * the application is accessed over HTTP, or there is an SSL-terminating reverse proxy which accesses the application over HTTP None of our environments have this configuration which is why we haven't spotted the problem before.
This bug fix is included in beaker-server-21.1-0.git.3.58733b1.el6eng, which is currently available for download here: https://beaker-project.org/nightlies/release-21/RedHatEnterpriseLinux6/
Beaker 21.1 has been released.