[wp-trac] [WordPress Trac] #52892: Privacy Export Personal Data: JSON encoding failure generates invalid JSON in export file

WordPress Trac noreply at wordpress.org
Mon Apr 12 15:08:00 UTC 2021


#52892: Privacy Export Personal Data: JSON encoding failure generates invalid JSON
in export file
---------------------------------------------+-----------------------------
 Reporter:  hellofromTonya                   |       Owner:  hellofromTonya
     Type:  defect (bug)                     |      Status:  assigned
 Priority:  normal                           |   Milestone:  5.8
Component:  Privacy                          |     Version:  5.4
 Severity:  normal                           |  Resolution:
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+-----------------------------
Changes (by hellofromTonya):

 * keywords:  dev-feedback has-patch has-unit-tests => has-patch has-unit-
     tests commit


Comment:

 @SergeyBiryukov the patch for this ticket via
 [https://github.com/WordPress/wordpress-develop/pull/1115 PR 1115] is
 ready for commit.

 BTW @jrf and I have reviewed it thoroughly through pair programming
 sessions. We decided to generate an error instead of fixing the invalid
 JSON value. Why? Fixing the JSON creates an empty export without knowing
 why it's empty or what happened. The error provides more context, i.e. the
 JSON encoding failed.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52892#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list