Hey Robert, Hmm, it seems it only occurs when you make files in the format of _test_file.scss, try doing a vlt commit of that file. It will give the same error:
Collecting commit information... adding..... _test_file.scss Transmitting file data... [ERROR] Error while writing artifacts of /apps: javax.jcr.NamespaceException: test: is not a registered namespace prefix. [ERROR] commit: com.day.jcr.vault.vlt.VltException: Error while committing caused by: javax.jcr.NamespaceException: test: is not a registered namespace prefix. Checking out a file that is called _test_file.scss will check it out with double underscore as prefix instead of a single underscore: __test_file.scss Guess it is possible to work around it then by altering the files to double underscore on maven deploy… Thanks :)! Roy > On 06 Apr 2016, at 17:04, Robert Munteanu <romb...@apache.org> wrote: > > Hi Roy, > > On Wed, 2016-04-06 at 09:57 +0200, Roy Teeuwen wrote: >> Hello all, >> >> I am currently trying to develop a sass compiler that will compile >> the sass files natively in Sling instead of using CSS files. The >> issue that I am facing at this moment though is that when I try to >> upload the sass files I get following exception: >> >> *ERROR* [qtp2101349382-74] >> org.apache.jackrabbit.vault.packaging.impl.ZipVaultPackage Error >> during install. >> javax.jcr.RepositoryException: OakName0001: Invalid namespace >> prefix([, nt, xmpRights, pdf, stFNT, album, xs, crxde, social, >> prismusagerights, rdf, sv, xmpBJ, idPriv, fn, prism, tiff, exif, dc, >> plus, oauth, acdsee, xmp, xml, MP, cq, sling, scg, pdfx, dam, cc, lr, >> s7sitecatalyst, dex, xmpPLUS, xmpNote, jcr, slingevent, DICOM, >> mediapro, oak, stEvt, stMfs, stRef, MicrosoftPhoto, photoshop, xmpDM, >> granite, crs, s7userdata, adobe_dam, xmpTPg, xmpGImg, xmpG, fn_old, >> crx, mix, viewerpreset, psAux, vlt, xmpMM, slice, Iptc4xmpExt, >> Iptc4xmpCore, rep, prl]): colors >> at >> org.apache.jackrabbit.oak.api.CommitFailedException.asRepositoryExcep >> tion(CommitFailedException.java:249) >> at >> org.apache.jackrabbit.oak.api.CommitFailedException.asRepositoryExcep >> tion(CommitFailedException.java:212) >> >> This is because all the sass partial files are being prefixed with an >> underscore, this is how sass works by default, partials are snippets >> that will be imported in the main css file and should be prefixed >> with an underscore. The file it is complaining about now is called >> _colors.sass. Is there any way around this, that it doesn’t look at >> these files like if it they have a namespace? > > The compiler sounds pretty cool :-) > > Related to the error, I was able to create a file named _test.txt in > the Sling launchpad without any issues, so I don't think the issue is > at the JCR level. > > It looks to me like the issue is with the vault package, which IIRC > uses '_' to mask the ':' character in file names. But I'm not sure if > this is a bug in the package manager or something that you can adjust > in your package. > > Robert