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

Reply via email to