Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • cloudooo cloudooo
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Merge requests 7
    • Merge requests 7
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • 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
Time tracking
Source branch: for-mr-flamingo
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7