37

I just saw at least two new posts with a title that matches two existing canonical duplicates:

As far as I'm aware, posting duplicate titles should not be possible and should produce an error that the title already exists. How was it possible that these two new questions were posted?


The fact they match the canonical exactly demonstrates why this was not allowed in the first place

13
  • 3
    Presumably related to the staging ground?
    – Wai Ha Lee
    Commented Dec 13, 2022 at 17:56
  • 7
    Neither post came through the Staging Ground. (That doesn't necessarily mean that some piece of validation hasn't gone missing due to the beta launch, but this is not a direct case of posts going through the Staging Ground circumventing the title check)
    – Henry Ecker Mod
    Commented Dec 13, 2022 at 18:22
  • 2
    There seem to be quite some questions with duplicate titles (the empty titles are probably proposed articles) - Are you sure this is a hard restriction?
    – dan1st
    Commented Dec 14, 2022 at 8:05
  • 1
    @dan1st I'm not sure when it was introduced, but writing a title which already existed would add a red border around the title, and disallow you from posting (and I believe it might show a link to the existing question with that title). That said, I don't regularly ask questions, and I previously only noticed it when editing questions, when trying to clean up/improve titles (and because of metaposts with people complaining about this check). Commented Dec 14, 2022 at 9:20
  • 4
    What I find extra strange is that I can't really imagine anyone would actually use the title "What is a NullPointerException, and how do I fix it?" exactly phrased like that. It seems a very deliberate choice to use the exact title of the canonical down to the use of punctuation.
    – Gimby
    Commented Dec 14, 2022 at 14:08
  • 5
    @Gimby might be an artefact of the suggestion system. It says something like "Did you mean <list of questions>" which the user might have taken as a prompt to re-write the title to one of these.
    – VLAZ
    Commented Dec 14, 2022 at 14:10
  • 3
    Strange. There's nothing in common between the two users, nor anything indicating they're the same person. I would've blamed the wizard, but only one of the two users went through the wizard Commented Dec 14, 2022 at 14:12
  • 1
    @VLAZ that sounds very human, indeed.
    – Gimby
    Commented Dec 14, 2022 at 14:15
  • I saw this as well: example1, example2 (10K links from my flag history). Asked in Charcoal HQ if there can be a way to tune SD to catch issues like this
    – gnat
    Commented Dec 14, 2022 at 14:41
  • 2
    @dan1st: At the least, it looks like this restriction was originally implemented in September 2011. According to this Q&A on MSE, the check doesn't apply to deleted questions with the same title, but it does apply to closed questions with the same title (though it was changed in January 2012 so that moderators can reuse the title of an existing closed question).
    – V2Blast StaffMod
    Commented Dec 14, 2022 at 19:56
  • 2
    ...And this Q&A on MSE indicates that the duplicate-title restriction is case-sensitive. It seems like the duplicate-title restriction only looks for completely identical titles (including spacing), judging from all of those Q&As together. (...Anyway, this issue has now been forwarded to the devs to look into.)
    – V2Blast StaffMod
    Commented Dec 14, 2022 at 19:57
  • 4
    @V2Blast Brand new example, matches case and everything... old question ~ How do I check if an element is hidden in jQuery?, new question How do I check if an element is hidden in jQuery?
    – Phil
    Commented Dec 16, 2022 at 1:53
  • 1
    @Phil Thanks, the examples I listed also match exactly, so something fishy is going on or the restriction has been removed. Commented Dec 16, 2022 at 9:00

1 Answer 1

13

I've looked hard into this, there seems to be multiple possible paths that could allow for a duplicate title to popup, and indeed some might be related to Staging Ground and/or First Question review queues as mentioned in the comments.

However by far the most common cases were related to small more generic titles, like "fix NullPointerException", because they are small and common enough phrases to be found contained in multiple different titles.

The way our old code worked was by searching the title, and then looking at the top 50 results. For very common titles this meant that there were a statistical improbability of finding an exact match (e.g.: top 50 out of 10k).

We are re-indexing all Post titles network-wide to the Keyword type in Elastic, this now allows us to do a direct title match, without all the top 50 shenanigans the old code did. You should see a lot of improvement in duplicate title detection over the next few hours as the re-indexing progresses.

We'll keep an eye out for other examples then, that could help us pinpoint our theories regarding Staging Ground and Review Queues.

Thanks for reporting! Appreciate the help as usual.

4
  • 1
    Could this reindexing be the cause of meta.stackoverflow.com/questions/431850/…? The timing seems about right.
    – Barmar
    Commented Oct 9 at 21:53
  • It is! Thanks @Barmar, I've responded over there.
    – Felippe Rangel StaffMod
    Commented Oct 10 at 13:53
  • 2
    Would you consider this to be [status-completed] or is there still more work to be done that leaves this in [review]?
    – Henry Ecker Mod
    Commented Oct 10 at 20:57
  • 3
    @HenryEcker good question, I've been thinking about it and given the age of the original post, I'll go ahead and [status-completed] this one, this should open space for new reports to come in (that would help point to new avenues that cause the issue). Thanks for flagging it!
    – Felippe Rangel StaffMod
    Commented Oct 15 at 18:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .