mirror of
https://github.com/penpot/penpot.git
synced 2026-10-29 14:00:37 +00:00
* 🐛 Fix legacy path migrations on content without coordinates PRE still returned 500 on get-team-shared-files after #12357, now with "expected rect instance" in legacy-6. When a path has no points, legacy-6 rebuilds its rect from the content, but content whose points are not numbers (NaN or infinite coordinates, segments without params, only a close path) gives no rect either, and rect->points rejects nil. Fall back to the empty rect in legacy-6. A path with segments missing coordinates then failed later, in 0003-convert-path-content-v2, since the binary path data can not store them; drop those segments there. Relates to #12343 AI-assisted-by: claude-opus-5-5 * 🐛 Skip shared files that fail to load in get-team-shared-files get-team-shared-files loads and migrates every shared file of the team, so one file whose migration fails made the whole request return 500 and the "Add library" modal could not open. Catch the error per file, log it with the file and team ids, and leave that file out of the list. The other libraries still show, and the error report names the broken file. Closes #12343 AI-assisted-by: claude-opus-5-5