Add Role drop down list not displaying in Chrome and Safari on Permissions Tab
Only saw this issue in Safari and Chrome on Master
Create a new folder Edit permissions, individually permission, and try to add a new role by using the drop down arrow... no roles display.
Users display in the drop down list next to +Add User, but no next to add role... Tested on two different servers running master.
http://screencast.com/t/Gd0fhVcT
the method dojo.coords(elem) have been deprecated in newer dojo. Need to find an alternative and fix every place we use it
see http://dojotoolkit.org/reference-guide/1.8/dojo/coords.html
We will need to check the image editor too On Aug 31, 2012 2:07 PM, "Jorge Urdaneta" [email protected] wrote:
the method dojo.coords(elem) have been deprecated in newer dojo. Need to find an alternative and fix every place we use it
see http://dojotoolkit.org/reference-guide/1.8/dojo/coords.html
— Reply to this email directly or view it on GitHubhttps://github.com/dotCMS/dotCMS/issues/901#issuecomment-8200332.
all good now... adding roles with no problem
Post-Merge Test Plan
Source PR: #38373 Related issues: #901
Ownership and status
| Responsibility | Developer | Status |
|---|---|---|
| Plan Reviewer - developer who implemented the fix | @freddyDOTCMS | Pending Review |
| Test Executor - independent developer | TBD | Not Started |
The Plan Reviewer must validate scope, correctness, missing cases, and possible hallucinations before execution begins.
This is a living test plan. The Plan Reviewer and Test Executor may add relevant test cases. Every added case must follow the existing format and receive a final result.
Test summary
| Test Case Number | Scenario | Result | Notes |
|---|---|---|---|
| TC-001 | Normal login still succeeds after the hash-only comparison change | Not Run Yet | |
| TC-002 | A legacy digest value can no longer be replayed as the password | Not Run Yet | |
| TC-003 | The reserved directory placeholder value never authenticates | Not Run Yet | |
| TC-004 | A SAML-provisioned account local password cannot sign in directly | Not Run Yet | |
| TC-005 | A rejected directory login leaves the local password untouched | Not Run Yet | |
| TC-006 | A fresh install stores the generated admin password as a hash | Not Run Yet | |
| TC-007 | WebDAV pre-authenticator failure return no longer denies access alone | Not Run Yet | |
| TC-008 | WebDAV failed-login log entries strip control characters | Not Run Yet | |
| TC-009 | Notify-new-users stores a hash and emails the clear-text password | Not Run Yet |
View full test plan
Summary
PR #38373 reworks password verification across dotCMS so a stored value is never compared directly against typed text: legacy digest values are matched only through the digest of the input, SAML/CAS/LDAP-provisioned accounts and the initial admin account get a securely hashed local password instead of plaintext or a fixed placeholder, directory logins only overwrite the local password after the directory itself accepts the login, and WebDAV no longer treats a pre-authenticator's plain return value as a denial (only a thrown exception is). The commit message states this PR fixes dotCMS/private-issues#901, a different, non-public issue tracker entry - the public issue #901 named for this plan ("Add Role drop down list not displaying in Chrome and Safari on Permissions Tab") describes an unrelated, years-old UI defect that this diff does not touch; cases below are written against the diff itself rather than that issue's description. None of the cases below have been executed - every result is Not Run Yet.
Test Cases
- Test ID: TC-001
- Issues: #901
- Test Name: Normal login still works after the hash-only comparison change
- Risk: Critical
- Scenario: Happy Path
- Steps To Reproduce:
1. On the build under test, log in to the back end as [email protected] with the known admin password.
2. Log out, then create a new back-end user with a password and log in as that user.
- Expected Result: Both logins succeed and reach the normal landing page; no credential error for either account.
- Test ID: TC-002
- Issues: #901
- Test Name: A legacy digest value can no longer be replayed as the password
- Risk: Critical
- Scenario: Negative
- Steps To Reproduce:
1. Create a user with a known password; set user_.password_ directly to the SHA digest of that password (the legacy format).
2. Log in typing the digest string itself as the password.
3. Log in again typing the original clear-text password.
- Expected Result: Step 2 is rejected as invalid credentials. Step 3 succeeds, and password_ is then a new secure hash, not the digest.
- Test ID: TC-003
- Issues: #901
- Test Name: The reserved directory placeholder value never authenticates
- Risk: Critical
- Scenario: Negative
- Steps To Reproduce:
1. Create a user; set password_ to the literal fake_dotCMS_LDAP_password. Log in typing that literal string.
2. Create a second user; set password_ to the secure hash of that same literal string. Log in typing the literal string.
- Expected Result: Both attempts are rejected as invalid credentials; the placeholder never authenticates, stored plain or hashed.
- Test ID: TC-004
- Issues: #901
- Test Name: A SAML-provisioned account's local password cannot sign in directly
- Risk: High
- Scenario: Negative
- Steps To Reproduce:
1. On an environment with SAML SSO, sign in as a brand-new user through the identity provider so dotCMS provisions the account.
2. At the standard back-end login screen, try that user with several guessed passwords (blank, email, "password").
- Expected Result: Every guess in step 2 is rejected; the account's local password is a random secure hash with no known clear text.
- Test ID: TC-005
- Issues: #901
- Test Name: A rejected directory login leaves the local password untouched
- Risk: High
- Scenario: Edge
- Steps To Reproduce:
1. With LDAP configured and auth.impl.ldap.syncPassword=false, note an LDAP-role user's password_ value.
2. Log in with a wrong LDAP password (rejected); re-check password_.
3. Log in with the correct LDAP password (accepted); re-check password_ again.
4. Separately confirm a local (non-LDAP) user's password_ is unaffected by a login under the same config.
- Expected Result: password_ is unchanged after step 2, replaced with a new secure hash after step 3, and untouched in step 4.
- Test ID: TC-006
- Issues: #901
- Test Name: A fresh install stores the generated admin password as a hash
- Risk: High
- Scenario: Happy Path
- Steps To Reproduce:
1. Start dotCMS against an empty database so first-run init generates and prints the admin password.
2. Query [email protected]'s password_ value in the database, then log in with the printed password.
- Expected Result: password_ is a secure hash, not the printed plaintext; the login with the printed password succeeds.
- Test ID: TC-007
- Issues: #901
- Test Name: WebDAV pre-authenticator failure return no longer denies access alone
- Risk: High
- Scenario: Negative
- Steps To Reproduce:
1. Set auth.pipeline.pre to a pre-authenticator that returns failure without throwing; connect via WebDAV with correct dotCMS credentials.
2. Set auth.pipeline.pre to a pre-authenticator that throws instead; repeat the same WebDAV connection.
- Expected Result: Step 1 succeeds (the return value alone no longer blocks access). Step 2 is denied (a thrown exception still denies access).
- Test ID: TC-008
- Issues: #901
- Test Name: WebDAV failed-login log entries strip control characters
- Risk: Medium
- Scenario: Edge
- Steps To Reproduce:
1. Attempt a WebDAV login with a username containing a carriage return plus a fake log line, and any password; let it fail.
2. Open the dotCMS log at that failed attempt.
- Expected Result: The failed-login entry renders as one line; the injected text is inline, not a second independently-formatted log line.
- Test ID: TC-009
- Issues: #901
- Test Name: Notify-new-users stores a hash and emails the clear-text password
- Risk: Medium
- Scenario: Happy Path
- Steps To Reproduce:
1. As admin, trigger "notify new users" for a user still on the default password.
2. Read the notification email for the password it contains, check that user's password_ value in the database, then log in with the emailed password.
- Expected Result: The email carries a plain usable password; password_ in the database is a secure hash, not that plaintext; the login succeeds.