Bepasty

Latest version: v1.2.1

Safety actively analyzes 624845 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

1.2.1

--------------------------

Fixes:

- fix compatibility to werkzeug 3 (url quoting), 312

Other changes:

- allow rendering previews for larger image-files (up to 20MB) by default
- tests:

- fallback to Chrom(e|ium) if the Firefox driver for selenium isn't available
- test on Python 3.12 also

1.2.0

--------------------------

Fixes:

- use xstatic-fontawesome < 5, minimal workaround for 305

New features:

- upload: guess file content type also using pygments, 303

Other changes:

- drop support for python 3.7
- use pyproject.toml file, remove setup.*
- fix readthedocs build, 298
- misc code cleanups related to deprecations in flask and werkzeug
- adapt http response code in test for werkzeug >= 2.3
- docs: REST POST response returns file URI in Content-Location
- CI: run tests on Ubuntu 22.04

1.1.0

--------------------------

Fixes:

- adapt to Pygments >= 2.12.0 (and also require it), 281
- adapt to recent Flask/Werkzeug releases

New features:

- add a carousel view for lists of images, 148
- list item view: add thumbnail columns (needs "Pillow" extra)
- add a thumbnail view that dynamically computes thumbnails for image items
(for unsupported item types, return a placeholder svg thumbnail)

Other changes:

- remove Python 3.5 and 3.6 support, add support for Python 3.10 and 3.11
- use setup.cfg for most metadata, 276
- github actions CI: fixes and updates
- fix rest_server testing failures / adapt to recent Flask/Werkzeug
- docs: how to authenticate with http basic auth / for the REST api, 273
- source: pyupgrade --py37-plus *.py

1.0.0

--------------------------

Compatibility:

* require Python >= 3.5, drop Python 2.x support

Fixes:

* pygments compatibility fix, 258.
don't crash on ``('JSONBareObject', (), (), ())``.

Other changes:

* move away from Travis-CI, use github workflow for CI

0.6.0

--------------------------

Compatibility:

* drop python 3.4 support, 195
* note: this will likely be the last bepasty release supporting
Python 2.x (2.7) and 3.5 (both are not supported by Python
development any more).

Fixes:

* fix bad types for b64(en|de)code, 200
* use simple links in list/display view instead of <form> tags
* security fix: if PERMISSIONS in config are changed, we invalidate old
clientside cookies now.
* fix creating empty file in storage/*
* fix dealing with expired items
* fix item.meta.get() in ItemDownloadView(), must be called with an argument.
* fix typo in get_maxlife (MONTH => MONTHS).

New features:

* add support for asciinema recordings, 175
* show QR code with link to bepasty item, 176
* support text/x-bepasty-redirect for URL redirects:
just paste the target URL and choose this as mimetype to create a
redirect. you may use the delay=<seconds> url argument to adjust
the delay, default is 3s.
* add "modify" operation to modify uploaded data (web UI and REST),
this is controlled by "modify" permissions entry.
* add optional python-magic support for application/octet-stream.
Disabled by default, you can enable via: USE_PYTHON_MAGIC = True
* REST api:

- add delete/lock/unlock REST api
- use json for error response of REST api
- use application/json for upload REST api

Other changes:

* support / test on py38, py39, 223
* move development section from README to project docs, 192
* use twine to upload releases, qubes gpg support, 197
* add config for readthedocs, 191
* code: some cleanups, fix warnings, fix minor errors
* theme:

- upgrade to use bootstrap 4
- use font-awesome everywhere, remove font-glyphicon, 232
- use xstatic package for local font delivery
- sort permission icons
- misc. cosmetic fixes
* robustness / consistency improvements:

- handle bad Transaction-ID, bad Content-Length, bad Maxlife-{Value,Unit},
bad Range/Content-Range header
- add exception handler for REST api to get consistent behaviour.
* tests:

- add test for APP_BASE_PATH (for our prefix middleware)
- add screen shots test for UI
- add REST api tests

0.5.0

Not secure
--------------------------

Compatibility:

* drop support for python 2.6 and 3.3
* add support for python 3.5, 3.6 and 3.7
* thus, you now need python 2.7 or python >= 3.4
* changes in source code layout: package bepasty is below src/ now
* thus, you need to install bepasty now: pip install -e .
* changed maxlife default from FOREVER to 1 MONTH. this avoids creating an
ever-growing pastebin. users can still give other value if they like.

Fixes:

* REST api: fix off-by-one error in range calculations, 124
* config: reduce default body size by a 8kiB safety margin, 155
* multiple abort buttons for multiple file uploads, 29
* progress bar fixes, 131
* fix display of "undefined", should be "never", 129
* abort button now works w/ multiple files, 111
* upload form: don't linebreak in numbers, 122
* +list: work around 0-byte .meta files breaking the view, 147

New features:

* run bepasty at non-root URLs, see APP_BASE_PATH in the config.
* use icons instead of text for permissions (with hover-text)
* REST api: GET /apis/rest/items returns the list of all items

Other changes:

* re-style upload form
* add a favicon.ico (plus svg source)
* docs updates
* docs/config: clarify config updating, credentials/secrets, 151
* lots of cleanups for packaging, testing, source code
* upgrade xstatic package requirements, 171

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.