EMFUtil.AbsoluteURIPreservingURIHandler should not be a singleton · Issue #157 · eclipse-cdo/cdo · GitHub
Skip to content

EMFUtil.AbsoluteURIPreservingURIHandler should not be a singleton #157

Closed

Description

@vsennedot

A URIHandler should not be a singleton as its baseURI field can be set. Consequently, when multiple load/save operations occur in different threads, the baseURI field could have the value of another resource, leading to an undesirable deresolve result.

Although this can be avoided using the "org.eclipse.emf.cdo.common.model.EMFUtil.CONVERT_TO_RELATIVE_URIS" property, I don’t think it should remain a singleton in any case.

Activity

  1. claesrosell commented on Apr 16, 2026

    @claesrosell
    Contributor

    I have ran into this bug when we tried to upgrade to the latest version of CDO.
    We have multiple meta-models with cross-references and the readCDOPackageUnit() method of CDODataInputImpl.java simply fails to ready packages when multiple models are read at the same time.
    We to can avoid it by setting org.eclipse.emf.cdo.common.model.EMFUtil.CONVERT_TO_RELATIVE_URIS to true but I would really like to use the default behaviour since I suspect that the new model migration stuff works better with it.

    I will provide a PR for this

  2. estepper commented on Apr 17, 2026

    @estepper
    Contributor

    Please give me a few days more to catch up with my backlog. I hope to find time next week...

  3. self-assigned this
    on Aug 12, 2026
  4. added this to the 4.36 milestone on Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

cdo-coreCDO Model Repository (Core)enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions