Code Monkey home page Code Monkey logo

noxmox's People

Contributors

blakmatrix avatar bumbu avatar jcbsv avatar mtyaka avatar pomax avatar timoxley avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

noxmox's Issues

This won't run in a properly UAC'ed windows setting

windows with proper user control settings requires admin privileges to write anything to root, including the c:\tmp\nox dir that noxmox tries to make. Instead, on the win32 platform there is the TEMP var that indicates the current user's temp folder location, so you could do something like

if (!options.prefix) {
  if (process.platform === "win32") {
    options.prefix = process.env["TEMP"] + "/mox";
  } else {
    options.prefix = '/tmp/mox';
  }
}

on https://github.com/nephics/noxmox/blob/master/mox.js#L84 (windows doesn't care about \ vs / and will happily navigate and serve data from locations that mix the two, or even exclusively use /)

put("thing") + put("thing/edit") results in an error

interesting mox problem: calling a put("thing") will create a file "thing" in the temp dir that mox is using, and using a miniserver to serve that data shows it's there, and works great (after making the mini server serve everything as text/html content).

However, "thing" is not necessarily a file, just a URI that hides, for instance, "thing/index.html".

Performing a put("thing/edit") makes mox throw a 403 AccessDenied error, because it doesn't know what to do: "thing/edit" look like it should be a dir "thing" with a file "edit" in it, but it can't make that dir because there's already a file called "thing".

This might need a check to see if a put-path is being request for which one or more parts of the path are actually files, and do some kind of file-to-dir resolution, moving the file to .../index.html instead

unicode in URLs

Hi, knox had a problem with unicode in URLs that got fixed in Automattic/knox@6f2ad0d that I think mox might also be suffering from, where unicode characters in URLs are not getting escaped correctly, leading to an illegal URL when trying to store them.

where the url at?

This is excellent, but I notice there's a difference between knox and noxmox, url function of client is missing. Is there a reason it was removed?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.