Uploaded image for project: 'Nuxeo Studio'
  1. Nuxeo Studio
  2. NXS-6283

Ensure we cannot create project not following nuxeo-connect-client pattern

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Acknowledged
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: Not Ready for Grooming
    • Fix Version/s: None
    • Component/s: Studio Packaging

      Description

      Using PrototypeCreator it is possible to create a trial project not following org.nuxeo.connect.update.PackageUtils#SYMBOLIC_NAME_PATTERN rule and make unable to download Studio Package using `/nuxeo/studiopackage` endpoint called from a Nuxeo Instance.

      See: Test

      public void bla() {
              String pkg = "20210215dy-someon-0.0.0-SNAPSHOT";
              String packageName = PackageUtils.getPackageName(pkg);
              assertThat(packageName).isEqualTo("20210215dy-someon"); //null here.
      
              String version = PackageUtils.getPackageVersion(pkg);
              assertThat(version).isEqualTo("0.0.0-SNAPSHOT");
          }
      

      PackageRepository
      com.nuxeo.connect.packagerepository.PackageRepositoryComponent#getStudioPackageFile

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated: