Jolokia: Ensure all requests are run with context classloader set

Internal lookups can fail/exception otherwise, esp. write case

Signed-off-by: Calle Wilund <calle@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
Httpserver: http headers should be treated case-insensitive

Signed-off-by: Calle Wilund <calle@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
Httpserver: HTTP body request content should not be dependent on "Content-Type"

Only Content-Length should determine the request body.

Signed-off-by: Calle Wilund <calle@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
Httpserver: Do not pick up empty string as "allowed domain" for CORS

Signed-off-by: Calle Wilund <calle@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
Httpserver test: Don't kill OSv instance if running in "connect mode"

Server starts alive, server ends alive.

Signed-off-by: Calle Wilund <calle@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
Httpserver tests: Trace REST API tests

Signed-off-by: Calle Wilund <calle@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
Httpserver tests: Jolokia REST API tests

Signed-off-by: Calle Wilund <calle@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
cli: top.py CLI replacement

Shows thread information from the API. It is advised to use this command
outside of an interactive shell since there's no proper way to stop it, yet,
except using ^C.

For example:
```
export OSV_API=http://192.168.122.89:8000
./cli -- top -s # :)
```

Closes #489.

Signed-off-by: Or Cohen <orc@fewbytes.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
vfs: fix comment describing locking in get_arcbuf

vn_lock is no longer taken when calling VOP_CACHE,
thus the locking description should be fixed.

Signed-off-by: Raphael S. Carvalho <raphaelsc@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
Swagger API: clean the API to alligned to 1.2

This patch clean the swagger definition file so it could be validated
with a 1.2 swagger validator.

The main changes are:
all types are declared as "type"
all modules have an "id" field

The only code change result from this patch is the result of renaming
path parameter "if" to "intf" as "if" was rejected as a reserve word.

Signed-off-by: Amnon Heiman <amnon@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>