Make WordPress Core

Opened 2 years ago

Closed 2 months ago

#58512 closed defect (bug) (worksforme)

Enhancing Security and User Experience: Addressing Password Length Limitations and Improving Validation Process

Reported by: utsav72640's profile utsav72640 Owned by:
Milestone: Priority: normal
Severity: normal Version: 6.2.2
Component: Posts, Post Types Keywords: dev-feedback
Focuses: administration Cc:

Description

When I attempted to use a password consisting of 256 characters and tried to publish my post, I encountered an error message stating, "Updating failed. Could not update post in the database." It appears that this issue may affect all users. Therefore, I kindly request that you consider addressing this problem by either fixing it or implementing validation on the input field to prevent such errors in the future.

I used below password for password protect post :

123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345

Total Characters: 255

Could you please verify the attached video URL, https://www.awesomescreenshot.com/video/18248088?key=dd7a62697a5b66aaf5d332dec3a0a9b9

Change History (2)

#1 @johnbillion
2 years ago

  • Component changed from Application Passwords to Posts, Post Types
  • Keywords changes-requested removed

#2 @SirLouen
2 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed

Reproduction Report

Description

❌ This report can't validate that the issue can be reproduced.

Environment

  • WordPress: 6.8.2
  • PHP: 8.3.25-dev
  • Server: PHP.wasm
  • Database: WP_SQLite_Driver (Server: 5.5 / Client: 3.40.1)
  • Browser: Chrome 139.0.0.0
  • OS: Windows 10/11
  • Theme: Twenty Twenty-Five 1.3
  • MU Plugins:
    • rewrite.php
  • Plugins:
    • Test Reports 1.2.0
    • WordPress Importer v2 2.0

Instructions

  1. Create a post with the password provided in the op post (255 chars)
  2. 👌 Password is being stored and working

Actual Results

  1. ❌ Error condition is not occurring

Additional Notes

  • Tested in WordPress Playground and its not reproducible
  • Tested both in the Gutenberg Interface, in the Quick Edit Interface and the Classic Editor one.
  • Noticed though, that there is no control for passwords over 255 so I opened a new ticket [63943]
Note: See TracTickets for help on using tickets.