Ticket #13612 (confirmed Bug)

Opened 3 years ago

Last modified 3 years ago

UUIDIndex missing values?

Reported by: wohnlice Owned by:
Priority: minor Milestone: 4.x
Component: General Version: 4.1
Keywords: uuid, catalog Cc:

Description

A user reported a document had no related items displaying, despite having selected one. An investigation showed that the problem was a catalog search for the related UID incorrectly returned no results. If I view the brain for that item in the portal catalog I do see that it lists the expected UID for it, but a catalog search on that UID continues to yield no results. I created a new FieldIndex named UID2 that indexes the UID field, which showed that it had 8633 unique values as opposed to the UUIDIndex's 8627.

As a sanity check I ran this: cat = context.portal_catalog uidcat = context.uid_catalog print len(cat(UID2='c9ceed27-edc0-44a2-aff9-042975e0adcc')) print len(cat(UID='c9ceed27-edc0-44a2-aff9-042975e0adcc')) print len(uidcat(UID='c9ceed27-edc0-44a2-aff9-042975e0adcc')) return printed

which prints out "1\n0\n1", so as far as I can tell it is specifically the UUIDIndex. I am not sure where to go from here. I see that UID was converted from a FieldIndex to a UUIDIndex in a 4.1 upgrade step but don't understand why.

Plone 4.1.7.

Attachments

uid.png Download (31.6 KB) - added by wohnlice 3 years ago.

Change History

Changed 3 years ago by wohnlice

comment:1 Changed 3 years ago by kleist

  • Keywords uuid, catalog added
  • Status changed from new to confirmed
  • Component changed from Unknown to General
Note: See TracTickets for help on using tickets.