bugfix + notes...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2022-08-27 14:34:08 +03:00
parent 365b6ad319
commit 3d1598052a
2 changed files with 13 additions and 12 deletions

View File

@ -568,10 +568,13 @@ module.MetaStore = {
var store = Object.keys(this.substores ?? {})
// normalize store paths to the given path...
.filter(function(p){
return path.startsWith(
root ?
'/'+p
: p) })
p = root ?
'/'+p
: p
return path.startsWith(p)
&& (path[p.length] == null
|| path[p.length] == '/'
|| path[p.length] == '\\')})
.sort(function(a, b){
return a.length - b.length })
.pop()

View File

@ -1,14 +1,12 @@
/**********************************************************************
*
*
* XXX BUG: for some reason pwiki.get('/TestPage').raw does nothing when
* the root store is not BaseStore...
* ...the cause is:
* pwiki.store.substore('/TestPage') -> 'Test'
* should be:
* pwiki.store.substore('/TestPage') -> undefined
* XXX BUG service pages (*Error) now print "[ native code ]" instead of
* the path and replacing @quote(..) with @source(..) breaks things...
* XXX BUG with non-BaseStore root, the paths under /Test/.. report
* recursion errors when rendered by /tree...
* /Test/tree -- works fine
* XXX BUG service pages (NotFoundError, RecursionError, ...) now print
* "[ native code ]" instead of the path and replacing @quote(..)
* with @source(..) breaks things...
* ...this seems to happen only if the root store is not
* MetaStore/BaseStore...
* XXX BUG: .get(..) does not seem to resolve to <store>.next...