tliron / prudence

An opinionated lightweight web framework built for scale
https://prudence.threecrickets.com
Apache License 2.0
13 stars 5 forks source link

Scripturian sometimes reads autosaves for resources #30

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1) What's the problem?
When an editor creates an autosave file it sometimes gets read by Scripturian, 
to the exclusion of the correct file, depending on how the editor autosaves.

2) How can someone else reproduce it?
With gedit, autosaves are denoted with a tilde (~) appended, so create a file 
such as api.m.py and api.m.py~. Have a route such as /api/* : /api/. Then go to 
the location e.g. in a browser, and see a Scripturian error on api.m.py~. If 
you remove the ~ file you will now get a 404, and upon restarting Prudence the 
correct api.m.py will be loaded. Until another autosave is created...

3) What flavor of the Prudence are you using? Which version, and on what
operating system?
Ubuntu 13.10, latest Prudence installed with Sincerity.

4) Please provide any additional information below:
Workaround is to have your editor create hidden files for autosaves.

Original issue reported on code.google.com by ooomal...@gmail.com on 15 Jan 2014 at 6:42

GoogleCodeExporter commented 9 years ago
Solved for Scripturian 1.1.2, to be part of the next stack release.

Original comment by tal.liron on 9 Mar 2014 at 10:34