Bug 961526 - htpasswd prompt not appearing in python cartridge
htpasswd prompt not appearing in python cartridge
Status: CLOSED NOTABUG
Product: OpenShift Origin
Classification: Red Hat
Component: Containers (Show other bugs)
2.x
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Mrunal Patel
libra bugs
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-09 16:14 EDT by Sumana Annam
Modified: 2015-05-14 19:11 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-05-09 17:56:14 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Sumana Annam 2013-05-09 16:14:33 EDT
Description of problem:

Forum ref: https://www.openshift.com/forums/openshift/htpasswd-prompt-not-appearing#comment-29974

User write-up:
--------------

I have the .htaccess and .htpasswd files setup, but the prompt for authenticating a user is not appearing. There is no error message. The website that I am trying to protect appears properly, though. Here's what I have:

[****-****.rhcloud.com wsgi]\> ls -al
total 32
drwxr-xr-x. 4 *********** *********** 4096 May  7 23:56 .
drwxr-x---. 6 *********** *********** 4096 May  7 23:54 ..
-rw-r--r--. 1 *********** ***********  685 May  6 20:28 application
-rw-r--r--. 1 *********** ***********  665 May  6 20:29 applicationc
-rw-r--r--. 1 *********** ***********  155 May  8 00:06 .htaccess
-rw-r--r--. 1 *********** ***********   18 May  7 23:13 .htpasswd
drwxr-xr-x. 4 *********** *********** 4096 May  7 23:56 helloworld
drwxr-xr-x. 2 *********** *********** 4096 May  6 20:28 static
[****-****.rhcloud.com wsgi]\>
[****-****.rhcloud.com wsgi]\> cat .htaccess
AuthUserFile /var/lib/openshift/************/app-root/runtime/repo/wsgi/.htpasswd
AuthType Basic
AuthName "restricted area"
require valid-user
[****-****.rhcloud.com wsgi]\>
[****-****.rhcloud.com wsgi]\> cat .htpasswd
*****:evwvyzyD3Tv4k
[****-****.rhcloud.com wsgi]\> pwd
/var/lib/openshift/************/app-root/runtime/repo/wsgi
I am using the Python 2.7 cartridge with MySQL 5.1

Note: This feature is not working for couple of users and I personally couldn't get it working.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:
Comment 1 Mrunal Patel 2013-05-09 17:56:14 EDT
We don't use apache as the webserver for python-2.7 and so this feature isn't supported today. If at a later point in time, we move to apache for 2.7, it will be supported.

Note You need to log in before you can comment on or make changes to this bug.