Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
cloudooo cloudooo
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Labels
    • Labels
  • Merge requests 7
    • Merge requests 7
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedi
  • cloudooocloudooo
  • Merge requests
  • !37

Merged
Created Jul 16, 2025 by Titouan Soulard@tsoulardDeveloper

manager: avoid `KeyError` in `run_getmetadata`

  • Overview 4
  • Commits 1
  • Pipelines 2
  • Changes 3

Part of removing base data on ERP5 Documents, I wanted to systematically run run_getmetadata to get metadata of a document, previously extracted from the call to run_convert to base data. I got an error for documents where title was not set, which apparently comes from a Cloudooo backward-compatibility feature.

I also noticed, but not fixed in this MR, a discrepancy between run_convert and run_getmetadata: one has backward compatibility for MIMEType, and the other for Title. I think we should unify, what do you think of moving these to getFileMetadataItemList?

/cc @jerome @kazuhiko

Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: for-mr-flamingo
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7