Making WordPress.org

Opened 10 years ago

Closed 4 years ago

#354 closed defect (bug) (fixed)

Encoding issue in WP.org notifications

Reported by: sergeybiryukov's profile SergeyBiryukov Owned by: coffee2code's profile coffee2code
Milestone: Priority: normal
Component: Profiles Keywords:
Cc:

Description

Previously: #wp21542

In my WP.org profile, I've set a notification for my name in Cyrillic ("Сергей", 6 letters). It seems to work fine, however, I also get notifications for six question marks in a row (??????, see this post on Polyglots for an example).

Attachments (2)

354.png (7.1 KB) - added by SergeyBiryukov 4 years ago.
354.2.png (7.3 KB) - added by SergeyBiryukov 4 years ago.

Download all attachments as: .zip

Change History (20)

#1 @Otto42
10 years ago

  • Owner set to coffee2code
  • Status changed from new to assigned

@coffee2code: You might want to take a look at this, probably some character encoding issue in the notifications code.

#2 follow-up: @SergeyBiryukov
10 years ago

Still getting notifications each time someone writes "??????" on the forums.

Last edited 9 years ago by SergeyBiryukov (previous) (diff)

#3 in reply to: ↑ 2 @SergeyBiryukov
9 years ago

...or in a BuddyPress ticket.

#4 follow-up: @coffee2code
9 years ago

@SergeyBiryukov: I just pushed up a bunch of updates for the notifications code. I created the same notification rule as you have ("Сергей") for myself and have since gotten the "??????" notifications as you reported (while the old code was still in use). When testing with the new code while sandboxed, I was unable to reproduce the issue. Now that the new code is live, I'll continue to monitor if the issue persists. If so, I'll get those errant emails and investigate.

#5 in reply to: ↑ 4 @SergeyBiryukov
9 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

Replying to coffee2code:

Now that the new code is live, I'll continue to monitor if the issue persists. If so, I'll get those errant emails and investigate.

Cheers! Closing as fixed then, will reopen if it happens again.

#6 @SergeyBiryukov
8 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

@coffee2code: Got a notification for a comment on lt.wordpress.org:

[wporg-match] on Lithuania (match: ??????)

#7 follow-up: @SergeyBiryukov
8 years ago

Got a notification for this comment as well:

[wporg-match] Stephen Edgar on WordPress Trac (match: ??????)

#8 in reply to: ↑ 7 @netweb
8 years ago

Replying to SergeyBiryukov:

Got a notification for this comment as well:

[wporg-match] Stephen Edgar on WordPress Trac (match: ??????)

That was me on a Mac using CTRL+CMD+SPACE and selecting the "thumbs up" emoji :+1:

#9 @SergeyBiryukov
8 years ago

[wporg-match] Mosterd3d on WordPress Trac (match: ??????) (ref)

#10 follow-up: @coffee2code
7 years ago

@SergeyBiryukov: Just check in, is this still an issue you're seeing?

#11 in reply to: ↑ 10 @SergeyBiryukov
7 years ago

Replying to coffee2code:

Just check in, is this still an issue you're seeing?

Yep, the latest notification was 4 months ago from this topic. For a quick test, just post "??????" somewhere and I'll tell you if I get it :)

#12 @coffee2code
7 years ago

  • Resolution set to fixed
  • Status changed from reopened to closed

@SergeyBiryukov: I don't believe this is still an issue. Since this ticket was opened I've had a notification for "Сергей" set up so I could see the problem firsthand. I was able to verify getting notifications for occurrences of "??????" for awhile, but eventually that stopped. I haven't received an errant "??????" notification in many many months.

I recently posted to the support forums from a test account with "??????" in the reply content and haven't received a notification about it.

As such, I'm going to close this as fixed.

@SergeyBiryukov
4 years ago

#13 @SergeyBiryukov
4 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

Just noticed that while notifications themselves seem to work, non-Latin keywords are not correctly displayed in the notification settings, both when viewing and editing. I have not tried to re-save them yet, as I'm not quite sure that it won't break the notifications.

See 354.png, these should be displayed as "Бирюков" and "Сергей", respectively.

#14 @dd32
4 years ago

Looks like this will only be the case with notifications added prior to a certain date when the Latin1 database was being treated as utf8.

Looking through the affected notifications, there's definitely a few legitimate ones like this, but the majority are spam and vulnerability testers.

I'll see if I can convert them over automatically without too much difficulty..

#15 follow-up: @dd32
4 years ago

  • Resolution set to fixed
  • Status changed from reopened to closed

Hey Сергей

Can you confirm that your notifications now look correct, and that this triggered a notification?

Marking as fixed, preemptively.

@SergeyBiryukov
4 years ago

#16 in reply to: ↑ 15 @SergeyBiryukov
4 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

Replying to dd32:

Can you confirm that your notifications now look correct, and that this triggered a notification?

Nope, "Сергей" is better than question marks, but still quite different from "Сергей" :)

The notification did work though.

#17 @dd32
4 years ago

Nope, "Сергей" is better than question marks, but still quite different from "Сергей" :)

Hrrmmm.. That's been double UTF8->latin1 encoded.. that should not have happened.. I'll check it again..

Your notifications page looked fine to me yesterday, and no longer does, so I'd be willing to bet I accidentally ran the query again somehow..

#18 @dd32
4 years ago

  • Resolution set to fixed
  • Status changed from reopened to closed

I fixed the DB again, and have left it for a few days, and still looks correct to me still. So I'm guessing it was my error.

There were a few other users who also had mis-encoded data, I believe from a previous conversion fix, that I've also mostly fixed.

Hopefully Сергей will trigger a notification correctly this time.

Note: See TracTickets for help on using tickets.