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

Allow to not overwrite an existing folder at import

    XMLWordPrintable

    Details

    • Impact type:
      API change
    • Upgrade notes:
      Hide

      Added:

      • FileManager#createFolder(CoreSession documentManager, String fullname, String path, boolean overwrite)
      • FileManagerService#defaultCreateFolder(CoreSession documentManager, String fullname, String path, boolean overwrite)
      • FileManagerService#defaultCreateFolder(CoreSession documentManager, String fullname, String path, String containerTypeName, boolean checkAllowedSubTypes, boolean overwrite)

      Deprecated:

      • FileManager#createFolder(CoreSession documentManager, String fullname, String path)
      • FileManagerService#defaultCreateFolder(CoreSession documentManager, String fullname, String path)
      • FileManagerService#defaultCreateFolder(CoreSession documentManager, String fullname, String path, String containerTypeName, boolean checkAllowedSubTypes)
      Show
      Added: FileManager#createFolder(CoreSession documentManager, String fullname, String path, boolean overwrite) FileManagerService#defaultCreateFolder(CoreSession documentManager, String fullname, String path, boolean overwrite) FileManagerService#defaultCreateFolder(CoreSession documentManager, String fullname, String path, String containerTypeName, boolean checkAllowedSubTypes, boolean overwrite) Deprecated: FileManager#createFolder(CoreSession documentManager, String fullname, String path) FileManagerService#defaultCreateFolder(CoreSession documentManager, String fullname, String path) FileManagerService#defaultCreateFolder(CoreSession documentManager, String fullname, String path, String containerTypeName, boolean checkAllowedSubTypes)
    • Sprint:
      nxfit 9.1.8, nxfit 9.1.9
    • Story Points:
      3

      Description

      By default FileManagerService#createFolder(CoreSession documentManager, String fullname, String path) overwrites an existing folder with the same title as the one being created.

      As we have an overwrite boolean parameter in both

          DocumentModel createDocumentFromBlob(CoreSession documentManager, Blob input, String path, boolean overwrite,
                  String fullName) throws IOException;
          DocumentModel createDocumentFromBlob(CoreSession documentManager, Blob input, String path, boolean overwrite,
                  String fullName, boolean noMimeTypeCheck) throws IOException;
      

      we should have the same thing for createFolder.

      This is required by NXDRIVE-668 to avoid sending a duplicate id to Drive when it asks the server to create a folder with an existing title.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 4 hours
                  1d 4h