Commit Graph

11944 Commits

Author SHA1 Message Date
mofanke
af72fa1cc7
Update handlers.py
Remove or correct this useless self-assignment
2020-11-23 14:46:49 +08:00
Zachary Sailer
32bd47068b
Merge pull request #5874 from kevin-bates/port-sec-advisory
Apply security advisory fix to master
2020-11-18 11:08:32 -08:00
Min RK
e8459d97eb
Release 6.1.5 2020-11-18 10:14:34 -08:00
Min RK
ee64f5475d
changelog for 6.1.5 2020-11-18 10:13:09 -08:00
Min RK
1abd95130c
Validate redirect target in TrailingSlashHandler
Fixes open redirect vulnerability GHSA-c7vm-f5p4-8fqh
2020-11-18 10:13:08 -08:00
Zachary Sailer
5a73a8e402
Merge pull request #5870 from yuvipanda/authenticate-prometheus
Allow toggling auth for prometheus metrics
2020-11-17 13:21:31 -08:00
YuviPanda
c0ab18a534 Allow toggling auth for prometheus metrics
Equivalent to https://github.com/jupyterhub/jupyterhub/pull/2224

Prometheus metrics can potentially leak information about
the user, so they should be kept behind auth by default.
However, for many JupyterHub deployments, they would need
to be scraped by a centralized Prometheus instance that can not
really authenticate separately to each user notebook without
a lot of work. Admins can use this setting to allow unauthenticated
access to the /metrics endpoint.
2020-11-17 23:14:54 +05:30
Kevin Bates
cd7a06ce88
Merge pull request #5845 from bollwyvl/add-wasm-mime
Add wasm mimetype override
2020-11-04 08:04:12 -08:00
Zachary Sailer
57f8150ab9
Merge pull request #5847 from kevin-bates/restore-mac-ctrl-enter
Restore ctrl-enter shortcut behavior for macOS users
2020-11-04 07:32:23 -08:00
Nicholas Bollweg
c508af3cff add wasm mimetype 2020-11-03 22:34:30 -05:00
Kevin Bates
c893b59a9b
Restore ctrl-enter shortcut for mac users 2020-11-03 16:07:01 -08:00
Kevin Bates
72217183c8
Merge pull request #5826 from pgajdos/denose
do not require nose for testing
2020-10-29 07:17:14 -07:00
pgajdos
30a716fb85 remove redundant print statements 2020-10-29 08:53:35 +01:00
Kevin Bates
8a53994144
Merge pull request #5823 from rjn01/master
[docs] Update Chinese and Hindi readme.md
2020-10-27 11:58:00 -07:00
pgajdos
3e7f4b9518 ipython_genutils requires nose 2020-10-26 12:39:03 +01:00
pgajdos
2e8c3159e5 fix pytest argument 2020-10-23 12:59:15 +02:00
pgajdos
fdf14b4ab3 run tests with pytest 2020-10-23 11:45:28 +02:00
pgajdos
ec3c3dd89e fix one more function 2020-10-22 15:59:20 +02:00
pgajdos
1c3dbcc6bf do not use nose for testing 2020-10-22 15:34:17 +02:00
rjn01
11b317a1e9
update zh-CN/README.md 2020-10-21 04:43:45 +05:30
rjn01
81246861e8
update zh-CN/README.md and hi-IN/README.md 2020-10-21 04:34:55 +05:30
rjn01
30fb63bbf4
update zh-CN/README.md 2020-10-21 04:13:20 +05:30
rjn01
e894230bd0
Update hi-IN/Readme.md 2020-10-21 03:13:28 +05:30
Kyle Kelley
87aa278971
Merge pull request #5813 from kevin-bates/http-new-terminal
Add support for creating terminals via GET
2020-10-19 15:16:26 -07:00
Kevin Bates
c297a01758
Merge pull request #5787 from virejdasani/master
Made doc translations in Hindi and Chinese
2020-10-19 07:53:53 -07:00
virejdasani
3cfe512417 Update Chinese docs 2020-10-18 15:19:08 +05:30
virejdasani
b6699d8b7e Update Hindi translations 2020-10-17 12:50:18 +05:30
Kevin Bates
639da8d813
Add separate handler for /terminals/new 2020-10-15 15:42:55 -07:00
Kevin Bates
84ba421e86
Create auto-named terminals via /terminals/new 2020-10-15 14:58:19 -07:00
Kevin Bates
7778dc3202
Allow for redundant accesses of same endpoint 2020-10-14 14:57:57 -07:00
Kevin Bates
ac50d2e530
Add support for creating terminals via GET 2020-10-14 10:07:23 -07:00
Kevin Bates
1550410229
Merge pull request #5799 from mriedem/5798-json-logging
Add support for JSON formatted logs
2020-10-13 18:26:25 -07:00
Kevin Bates
545dbab070
Merge pull request #5807 from rahulporuri/cln/remove-dead-code
Remove code for unsupported python versions
2020-10-13 18:25:29 -07:00
Kevin Bates
18e4834b12
Merge pull request #5806 from rahulporuri/cln/update-super-usage
Update super usage
2020-10-13 16:27:34 -07:00
Matt Riedemann
67ad5a1c06 Merge remote-tracking branch 'origin/master' into 5798-json-logging 2020-10-13 18:21:02 -05:00
Kevin Bates
158cc007e8
Merge pull request #5805 from rahulporuri/cln/remove-unnecessary-future-imports
Remove unnecessary future imports
2020-10-13 15:29:54 -07:00
Kevin Bates
7f7ea8e85c
Merge pull request #5804 from rahulporuri/cln/remove-utf8-coding-cookies
Remove utf8 coding cookies
2020-10-13 15:09:45 -07:00
Kevin Bates
d85323aad7
Merge pull request #5811 from adcdr/fix-render-errors
Fix broken links
2020-10-13 14:22:16 -07:00
Kevin Bates
c7b50c6c00
Merge pull request #5812 from lresende/fix-build
Fix build issue with npm upgrade
2020-10-13 14:19:55 -07:00
Luciano Resende
b89d9f04ea Fix build issue with npm upgrade 2020-10-13 14:02:11 -07:00
adcdr
05a9b02bb7
Fix broken links
The documentation linked below contains 3 rendering errors:
https://jupyter-notebook.readthedocs.io/en/stable/examples/Notebook/What%20is%20the%20Jupyter%20Notebook.html

These are caused by limitations in the Sphinx tool used to render the page:
https://docutils.sourceforge.io/FAQ.html#is-nested-inline-markup-possible

This PR fixes them with the least amount of changes.
2020-10-13 21:11:23 +01:00
Matt Riedemann
6a883e0a1c Fix NotebookAppJSONLoggingTests.test_log_json_enabled
The intent of the test is to make sure that log_json defaults
to True when JUPYTER_ENABLE_JSON_LOGGING is set to "true" so
this makes the test more explicit and to pass when json-logging
is not installed so that does not interfere due to validation.
2020-10-13 10:25:07 -05:00
Matt Riedemann
4ee4bb24f9 Use unittest assertion methods for improved logging 2020-10-12 16:39:28 -05:00
Matt Riedemann
08f8ccd1f8 Add log_json=True test for log_request
Basic test just to make sure log_request handles log_json=True
properly.
2020-10-12 16:31:15 -05:00
Matt Riedemann
093aee290f Add some basic tests for log_json config
Make sure the default value is handled properly based
on environment variables. Also checks the validation
code based on whether or not json_logging is imported.
2020-10-12 16:06:02 -05:00
Matt Riedemann
fac228567e Fix logging in _validate_log_json
Just use the app logger since that has the default LogFormatter
logging until we change it to JSON.
2020-10-12 12:17:24 -05:00
Matt Riedemann
8b06db3eae Address review comments 2020-10-12 11:54:38 -05:00
Sai Rahul Poruri
2641b64ada CLN : Remove code for unsupported python versions
specifically, code which was handling python 2.x and < 3.4

	modified:   notebook/base/zmqhandlers.py
	modified:   notebook/services/contents/tests/test_manager.py
	modified:   notebook/tests/test_serverextensions.py
2020-10-10 16:02:36 +01:00
Sai Rahul Poruri
667e0d7519 CLN : Remove unnecessary future imports
specifically print_function and absolute_import future imports
2020-10-10 15:54:34 +01:00
Sai Rahul Poruri
84df5297d5 CLN : Update super usage
This commit updates the super usage. Because Python 2 is not supported
anymore, super usage can be updated such that super is called without
any arguments in the default case where super is called with the class
name and self.

Note that all usage of super has not been updated - a few cases which
smelled funny have been ignored.
2020-10-10 15:49:55 +01:00