OSC / ood-fileexplorer

[MOVED] The Open OnDemand File Explorer
https://osc.github.io/Open-OnDemand/
MIT License
4 stars 1 forks source link

[WIP] whitelist dirs for initial dir load #179

Closed ericfranz closed 5 years ago

ericfranz commented 6 years ago

Hold off till upgrading node.js to rh-nodejs6

for the initial request to load the app, this middleware filters the requested path through a whitelist if provided

this doesn't address directory changes due to AJAX calls or content download requests of directories due to zip, and might not address other AJAX requests like fetching and saving the content of a file by the file editor

also, it uses lodash, but this should probably be replaced by built in methods after upgrading node.js

ericfranz commented 6 years ago

rh-nodejs6-nodejs-path-is-inside.noarch will be available after upgrading; in fact nearly everything except https://github.com/Microsoft/node-pty for the shell app and the https://www.npmjs.com/package/dotenv is missing...

ericfranz commented 5 years ago

dup of https://github.com/OSC/ood-fileexplorer/pull/182