accessing source files results in errors and directory creation #191

Closed
opened 6 years ago by sorawee · 1 comments
sorawee commented 6 years ago (Migrated from github.com)

Say I access http://localhost:8080/a/b/c/blah.pm (which might or might not exist) in browser. This results in the following exception:

cached-metas: contract violation
  expected: path to existing file
  given: "/path/to/a/b/c/blah.pm"

In case that a/b/c doesn't exist, Pollen will create the directories.

This seems bizarre, and the side effect is even more bizarre. I expect that I will simply get the 404 page.

Say I access `http://localhost:8080/a/b/c/blah.pm` (which might or might not exist) in browser. This results in the following exception: ``` cached-metas: contract violation expected: path to existing file given: "/path/to/a/b/c/blah.pm" ``` In case that `a/b/c` doesn't exist, Pollen will create the directories. This seems bizarre, and the side effect is even more bizarre. I expect that I will simply get the 404 page.
mbutterick commented 6 years ago (Migrated from github.com)

Agreed. Fixed.

Agreed. Fixed.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mbutterick/pollen#191
Loading…
There is no content yet.