nlight-jdev / jcouchdb

Automatically exported from code.google.com/p/jcouchdb
Other
0 stars 0 forks source link

JarBasedCouchDBUpdater fails on Windows with 'invalid path' #33

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use a JarBasedCouchDBUpdater with a pathInsideJar containing forward slashes
2. Call updateDesignDocuments() on the updater

What is the expected output? What do you see instead?
The updater should find the map and reduce JavaScript files and use the
remaining path to create the design document (createViewFor). This call
fails because the pathes retrieved from the JarFile contain forward slashes
but createViewFor requires OS-dependent path separators. The call therefore
fails at:

Assert.isTrue(parts.size() > 1, "invalid dir structure");

What version of the product are you using? On what operating system?
0.10.0-3

Please provide any additional information below.
This problem only occurs on Windows platforms.

Original issue reported on code.google.com by kyth...@googlemail.com on 17 Dec 2009 at 2:28

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r238.

Original comment by ff...@gmx.de on 22 Jan 2010 at 9:51

GoogleCodeExporter commented 8 years ago
Hope this really fixed the issue. Don't really have a windows platform to test 
on. If
not, reopen this issue or create a new one.

Original comment by ff...@gmx.de on 22 Jan 2010 at 9:51