Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-23109

Require schema prefix everywhere

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: QualifiedToSchedule
    • Component/s: Schema

      Description

      There are various places in Nuxeo where we allow referring to properties without the schema's prefix, either for compatibility with old things or because the schema is configured without a prefix. On the other hand there are also places where we allow skipping the schema prefix even when it's configured.

      This kind of leniency is bad and inconsistent and we should use and require schemas everywhere, which would clarify and simplify a lot some parts of the code.

      We need to be backward compatible with user code for a while, so there should be a flag, on by default, to allow old usage.

      One issue is that of storage, because DBS unfortunately uses the unprefixed form for schemas without prefix ("icon", "content"). This will need a database-level migration step.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: