Hi,

When trying to download the actual tgz file, Artifactory tries to cache the
file into a parant folder. For example:

'coffee-script/-/coffee-script-1.8.0.tgz'

should be cached into the below folder:

'coffee-script/-/'

In your case, it looks like either the 'coffee-script' or the '-' that is
in it are exist in the remote repository cache as a *file*, so when
Artifactory tries to download and cache the actual tgz file, it fails with
an error:

'Rejected artifact download request: Parent coffee-script/- must be a
folder'

This usually happen when initially working with a wrong url or without the
api/npm path on the first try.

To solve this, just go to the tree browser - npmjs-remote-cache and delete
the cached files that expected to be folders (either the 'coffee-script' or
the '-' under it)

I hope that helps,
Shay.

On Wed, Mar 11, 2015 at 11:23 AM, SaschaS [via Artifactory] <
[email protected]> wrote:

> Hey guys,
>
> I have a short question regarding the NPM repository plugin (In.
>
> Basically I'd say that the plugin works as expected... until the URL
> contains a dash.
>
> When trying to fetch the coffee-script-npm package via Artifactory
> (v3.5.2) it shows me the following error:
>
> npm ERR! fetch failed 
> http://<myhost>/artifactory/api/npm/npmjs-remote/coffee-script/-/coffee-script-1.8.0.tgz
>
>
> This is how the Artifactory npm repo looks like (for coffee script):
>
> 1.8.0: {
> name: "coffee-script",
> description: "Unfancy JavaScript",
> version: "1.8.0",
> author: {
> name: "Jeremy Ashkenas"
> },
> [...]
> main: "./lib/coffee-script/coffee-script",
> dist: {
> tarball: 
> "http://<myhost>/artifactory/api/npm/npmjs-remote/coffee-script/-/coffee-script-1.8.0.tgz",
> shasum: "9c9f1d2b4a52a000ded15b659791703648263c1d"
> },
> [...]
>
>
> When trying to call that URL it get the following error message from
> Artifactory:
>
> {
> errors: [
> {
> status: 400,
> message: "Rejected artifact download request: Parent coffee-script/- must be 
> a folder"
> }
> ]
> }
>
>
> The URL is fine, because when I check the "original npm repository" it
> looks the same:
>
> http://registry.npmjs.org/coffee-script/
>
> [...]
> 1.8.0: {
> name: "coffee-script",
> description: "Unfancy JavaScript",
> keywords: [
> "javascript",
> "language",
> "coffeescript",
> "compiler"
> ],
> author: {
> name: "Jeremy Ashkenas"
> },
> version: "1.8.0",
> license: "MIT",
> engines: {
> node: ">=0.8.0"
> }
> [...]
> _id: "[email protected]",
> dist: {
> shasum: "9c9f1d2b4a52a000ded15b659791703648263c1d",
> tarball: "http://registry.npmjs.org/coffee-script/-/coffee-script-1.8.0.tgz";
> }
> [...]
> }
>
>
> As you can see: The URL looks pretty much the same... but for some reason
> it doesn't work with Artifactory.
>
> Any ideas? Did I forget some settings? Anything I must change/fix? Or is
> it a bug?
>
> I mean "coffee-script" is being used by so many plugins, so if this was an
> error, it would have been found already I guess.
>
> Thank you very much in advance,
>
> Sascha
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://forums.jfrog.org/NPM-Plugin-Dashes-in-the-URL-don-t-work-Did-I-miss-something-tp7580239.html
>  To start a new topic under Artifactory - Users, email
> [email protected]
> To unsubscribe from Artifactory, click here
> <http://forums.jfrog.org/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2380776&code=c2hheWJAamZyb2cuY29tfDIzODA3NzZ8MTU0NDg2MTQ3OA==>
> .
> NAML
> <http://forums.jfrog.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://forums.jfrog.org/NPM-Plugin-Dashes-in-the-URL-don-t-work-Did-I-miss-something-tp7580239p7580240.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to