Defining a policy fails

rickauer - October 29, 2008 - 08:53
Project:Password policy
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

See the attached screenshot. I downloaded and installed 6.x-1.x-dev and tried to define a simple policy (Name: default, 365 days expiration, 14 days of notification). What I got is the Password Policy screen with 'no policies defined' and an unlabeled radio button.

Tried other policies too, always the same result, unless I *only* choose to define a title without an actual policy.

My Drupal version is 6.6

AttachmentSize
Screenshot-Password policies.png17.08 KB

#1

miglius - October 29, 2008 - 09:05

Can you check the database to make sure that a database tables has been created?

#2

rickauer - October 29, 2008 - 16:03

There are three tables created, password_policy + _expiration and _history. Uninstalling the module is properly deleting the tables.

#3

miglius - October 30, 2008 - 11:11

Cannot recreate. The creation and deletion of the policies work fine for me.

#4

rickauer - October 31, 2008 - 08:05

Fine. So what do you suggest? Stop using password policy, because it works for you? Maybe you should tell me what you need in order to help you fixing the bug... Maybe I am able to help you.

#5

miglius - November 3, 2008 - 11:23

Can you paste here the content of the password_policy table?

#6

rickauer - November 3, 2008 - 16:03

Sure, here we go:

== Table structure for table password_policy

|------
|Field|Type|Null|Default
|------
|//**pid**//|int(11)|Yes|NULL
|name|varchar(64)|Yes|
|description|varchar(255)|Yes|
|enabled|tinyint(4)|Yes|0
|policy|text|Yes|NULL
|created|int(11)|Yes|0
|expiration|int(11)|Yes|NULL
|warning|varchar(64)|Yes|NULL


== Dumping data for table password_policy
|1|default| |0|a:0:{}|0|365|30

#7

miglius - November 6, 2008 - 10:54
Status:active» fixed

The issue was with the particular policy name "default". This is fixed in the dev version.

#8

rickauer - November 6, 2008 - 17:37

I can confirm this for my installation. Thanks a lot!

#9

System Message - November 20, 2008 - 17:49
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.