Bug 961526 - htpasswd prompt not appearing in python cartridge
Summary: htpasswd prompt not appearing in python cartridge
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OKD
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Mrunal Patel
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-09 20:14 UTC by Sumana Annam
Modified: 2015-05-14 23:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-05-09 21:56:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Sumana Annam 2013-05-09 20:14:33 UTC
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 21:56:14 UTC
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.