Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-10571

Hardcoded application paths in VaultPackageUtils.detectPackageType

    XMLWordPrintableJSON

Details

    Description

      while investigating SLING-10467 i noticed hardcoded paths for what should be considered application content in VaultPackageUtils.detectPackageType.

      the method looks as follows:

      public static @NotNull PackageType detectPackageType(String path) {
              if ("/apps".equals(path)
                      || path.startsWith("/apps/")
                      || "/libs".equals(path)
                      || path.startsWith("/libs/")) {
                  return PackageType.APPLICATION;
              } else {
                  return PackageType.CONTENT;
              }
          }
      

      instead of hardcoding /apps and /libs which are details of Adobe AEM, these paths should be configured with the converter-launcher. in particular since the list looks a bit arbitrary as there are other paths that IMHO should be considered application content like nodetype registry, namespace registry, privilege registry, service users etc.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              angela Angela Schreiber
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: