Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#44685 closed defect (bug) (fixed)

Expired validation links do not always correctly trigger errors

Reported by: desrosj Owned by: SergeyBiryukov
Priority: normal Milestone: 5.1
Component: Privacy Version: 4.9.6
Severity: normal Keywords: has-patch
Cc: Focuses:

Description

When a user clicks a confirmaction link for a privacy request and the request is not pending or failed, it should return an error saying This link has expired.. Currently, the error message is being returned as a string and not as a WP_Error instance. This is causing a success message to display to the user instead of the correct error message.

Attachments (1)

44685.diff (459 bytes ) - added by desrosj 8 years ago.

Download all attachments as: .zip

Change History (16)

@desrosj
8 years ago

#1 @SergeyBiryukov
8 years ago

#44686 was marked as a duplicate.

This ticket was mentioned in Slack in #core-privacy by desrosj. View the logs.


8 years ago

#4 @desrosj
8 years ago

  • Keywords commit added

This is good to go.

This ticket was mentioned in Slack in #core-privacy by desrosj. View the logs.


8 years ago

#6 @SergeyBiryukov
8 years ago

  • Owner set to SergeyBiryukov
  • Resolutionfixed
  • Status newclosed

In 43623:

Privacy: When clicking a confirmation link for a privacy request, return a WP_Error object if the link has expired.

Returning a string caused a success message to be displayed instead of the correct error message.

Props desrosj.
Fixes #44685.

#7 @SergeyBiryukov
8 years ago

In 43624:

Privacy: When clicking a confirmation link for a privacy request, return a WP_Error object if the link has expired.

Returning a string caused a success message to be displayed instead of the correct error message.

Props desrosj.
Merges [43623] to the 4.9 branch.
Fixes #44685.

#8 @pento
8 years ago

  • Resolution fixed
  • Status closedreopened

[43624] needs to be reverted from the 4.9 branch, then this ticket can be moved to the 5.0.1 milestone.

#9 @SergeyBiryukov
8 years ago

In 43708:

Privacy: Revert [43624] from the 4.9 branch.

This change is out of the 4.9.x scope, and will be reintroduced in 5.0.x.

See #44685.

#10 @SergeyBiryukov
8 years ago

  • Milestone 4.9.95.0.1

#11 @maxbomb
8 years ago

  • Resolutioninvalid
  • Status reopenedclosed

#12 @desrosj
8 years ago

  • Resolution invalid
  • Status closedreopened

@maxbomb Can I ask why this was closed? This is a confirmed bug that has a working patch and has been moved to the 5.0.1 milestone.

#13 @pento
8 years ago

  • Milestone 5.0.15.0.2

#14 @pento
8 years ago

  • Milestone 5.0.25.0.3

#15 @desrosj
8 years ago

  • Keywords commit removed
  • Milestone 5.0.35.1
  • Resolutionfixed
  • Status reopenedclosed

Let's leave this in 5.1. It falls outside of the 5.0.3 scope.

Note: See TracTickets for help on using tickets.