google-code-export / camlistore

Automatically exported from code.google.com/p/camlistore
Apache License 2.0
0 stars 0 forks source link

Static file gave Illegal URL error #509

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm tinkering with using less-1.7.4.min.js.

If I put it in the server/camlistored/ui directory and try to access it I I get:
Illegal URL - it shows 404 in the Network tab.

If I rename it to less.js via:
camlistore/server/camlistored/ui (elsigh) $ mv less-1.7.4.min.js less.js

I can access it via ui/less.js just fine.

Original issue reported on code.google.com by els...@google.com on 30 Aug 2014 at 6:20

GoogleCodeExporter commented 9 years ago
It doesn't like the periods between 1.7.4:

        staticFilePattern = regexp.MustCompile(`^([a-zA-Z0-9\-\_]+\.(html|js|css|png|jpg|gif|svg))$`)

The one before "js" is fine.

I suppose we could expand that regexp.

Original comment by bradfitz on 30 Aug 2014 at 6:25

GoogleCodeExporter commented 9 years ago

Original comment by bradfitz on 21 Oct 2014 at 3:12

GoogleCodeExporter commented 9 years ago
This issue has moved to https://camlistore.org/issue/509

Original comment by bradfitz on 14 Dec 2014 at 11:37