Skip to content

AttachmentPath Column in the Notes Plugin is built incorrectly #141

@Abu-Huraira21

Description

@Abu-Huraira21

The notes plugin builts the path for a given attachment incorrectly. I'm on macOS 15 Sequoia 15.6.

The path the plugin builds for an attachment is as follows:
~/Library/Group Containers/group.com.apple.notes/Media/[UUID]/Pasted Graphic.png

However actually, the path that results is:
~/Library/Group Containers/group.com.apple.notes/Accounts/[UUID]/Media/[UUID2]/[UUID3]/Pasted Graphic.png

Looking at the code, I've got the NoteStore.sqlite file on my PC.

Steps to Reproduce

  • Create a note and paste any image into it.
  • A new entry into the table ZICCLOUDSYNCINGOBJECT is created in the NoteStore.sqilte database.
  • Run the mac_apt plugin and collect the value from the AttachmentPath column.
  • Search the path in finder. File is not found at the finder path.

Observations

  • The issue I'm facing was creating a robust query that accurately extracts the three different UUIDs (UUID1, UUID2, UUID3).
  • All of these UUIDs are available in the ZICCLOUDSYNCINGOBJECT table.

Metadata

Metadata

Assignees

Labels

bugdata_neededNeed more information or data to test and debug

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions