After rolling back from the NewDB (PostgreSQL) to OrientDB, ran the "Reconcile component database from blob store" task, then it reported ERRORs for NPM assets:
- Install new NXRM 3.36 and start (so that "default" blob store is empty)
- Copy the attached ce1af3d0-d758-4b96-9ae8-17528dcf0e72.* to default/contents/vol-33/chap-11/, for example:
- Create "npm-proxy" repo with the remote URL https://registy.npmjs.org/ and with the "default" blob store
- Create "Reconcile component database from blob store" task and run against "default" blob store
As NXRM3 should provide the way to reconcile assets, this should restore the files.
It does not restore the asset and the task log reports "Error while restoring asset: ...".
com.sonatype.nexus.repository.npm.internal.NpmPackageId#parse decides the scope and the npm name based on the first matching "/", so that the name starts with "/" ended up generate an empty scope (eg: "") and the non modified name (eg: "/@types/lodash").
Also, reconciling NPM assets created by OrientDB may not work with Nexus + NewDB because org.sonatype.nexus.blobstore.restore.datastore.BaseRestoreBlobStrategy#restore always prepend "ASSET_PATH_PREFIX" into the assetPath.