Red Hat Bugzilla – Bug 474678
Watch logs does not work in web interface when logged in using SSL
Last modified: 2013-01-09 23:57:36 EST
Created attachment 325744 [details]
patch to fix watchlogs.js
Description of problem:
when logged into koji web interface using SSL, the "Watch logs" feature doesn't work (at least, not when using Firefox 3).
Version-Release number of selected component (if applicable):
Whatever's running on koji.fedoraproject.org right now.
Steps to Reproduce:
1. Logon to https://koji.fedoraproject.org and select "Tasks" tab
2. Click on an active buildArch task
3. Click on the "Watch logs" link at the bottom of the page
Firefox error pops up:
Error checking if task was finished:
RequestOpenFailed [module 'urllib' version: 1.1.4]:
Opening of HTTP Request failed.
[Exception... "Access to restricted URI denied" code: "1012" nsresult: "0x805303f4 (NS_ERROR_DOM_BAD_URI)" location: "https://koji.fedoraproject.org/koji-static/js/jsolait/init.js Line: 255"]
Watch the build logs scroll.
The problem is that watchlogs.js is trying to access unsecure 'http://'+window.location.hostname from a page loaded as https://koji.fedoraproject.org. Looks like Firefox won't allow this.
Simple fix is to access window.location.protocol+'//'+window.location.hostname instead - see attachment for details.
fixed in the current koji deployment