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

Method DocumentModelImpl.isDownloadable() should not check non-existing property common:size

    XMLWordPrintable

    Details

    • Backlog priority:
      200
    • Sprint:
      CB Sprint 7, CB Sprint 8

      Description

      Since NXP-21025/NXP-18555, it is known that common:size is replaced with file:content/length and file:filename is replaced with file:content/name

      The interface http://community.nuxeo.com/api/nuxeo/11.1/javadoc/src-html/org/nuxeo/ecm/core/api/DocumentModel.html#line.533 does not declare isDownloadable() as deprecated, thus a usable implementation is needed.

      Thus, the code http://community.nuxeo.com/api/nuxeo/9.10/javadoc/src-html/org/nuxeo/ecm/core/api/impl/DocumentModelImpl.html#line.799 is not appropriate anymore

      Current implementation leads to the error message:

      Property 'size' is marked as removed from 'common' schema, don't use it anymore.

      Expected result: no error and a working method returning a boolean value, per interface.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                pabgrall Patrick Abgrall
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: