Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
108 commits
Select commit Hold shift + click to select a range
d63fcaa
fix typo after refactoring in docs (#123)
jensens Oct 12, 2021
ad94518
fix test to use document_view as default view for site root
agitator Nov 12, 2021
fce4053
add news
agitator Nov 12, 2021
8047c39
fix test for Plone < 6
agitator Nov 15, 2021
3a8e69c
Merge pull request #126 from plone/agttr-dxsiteroot-view
jensens Nov 16, 2021
ca4ed7d
pyparsing = 2.4.5 (#129)
tisto Dec 26, 2021
70e1ec7
test(deprecation): Fix some warnings from our code (#128)
rpatterson Dec 27, 2021
55f140f
Preparing release 2.0.0a2
tisto Jan 25, 2022
55986be
Back to development: 2.0.0a3
tisto Jan 25, 2022
e6d6df6
Use Black 21.12b0 (#131)
tisto Feb 12, 2022
5a29afd
++api++ traverser should be kept on 30x redirections (#130)
mamico Feb 12, 2022
a37928e
Fix towncrier file for #127
tisto Feb 12, 2022
7979c2f
Add internal towncrier config
tisto Feb 12, 2022
f23d336
Preparing release 2.0.0a3
tisto Feb 12, 2022
7426d36
Back to development: 2.0.0a4
tisto Feb 12, 2022
4891ad1
redirect with view (#132)
mamico Mar 24, 2022
f1dce1b
Fix #132 changelog entry
tisto Mar 24, 2022
e00dd01
Preparing release 2.0.0a4
tisto Mar 24, 2022
c0d9db2
Back to development: 2.0.0a5
tisto Mar 24, 2022
456d2de
Fix an infinite loop with redirections from parent to child (#134)
ericof Apr 7, 2022
a95d774
Upgrade zc.buildout==2.13.4
tisto Apr 7, 2022
964fe9d
Preparing release 2.0.0a5
tisto Apr 7, 2022
b873ee0
Back to development: 2.0.0a6
tisto Apr 7, 2022
2787319
Add changelog for final re-release
tisto Oct 15, 2022
a28a1cc
Preparing release 2.0.0
tisto Oct 15, 2022
e259ac8
Back to development: 2.0.1
tisto Oct 15, 2022
8960b8f
Should redirection response be temporarily instead of permanent (#135)
mamico Jan 28, 2023
a7c8d6f
Add python_requires to setup.py (#138)
tisto Jan 28, 2023
96c224f
Drop support for Plone 4.3, 5.0, and 5.1 (#142)
tisto Jan 28, 2023
b0e31a8
Add official support for Plone 6 (#144)
tisto Jan 29, 2023
5a4100f
Add official support for Python 3.9, 3.10, and 3.11 (#145)
tisto Jan 29, 2023
9384e31
Declare #135 as breaking
tisto Jan 29, 2023
0e8874c
Add README section for Plone/Python support
tisto Jan 29, 2023
86d001f
Update maintainer in README
tisto Jan 29, 2023
4ab2e83
Add credits section
tisto Jan 29, 2023
f471ca2
Make rstcheck happy
tisto Jan 29, 2023
c56f44d
Exclude all requirement files from release
tisto Jan 29, 2023
309da9e
Fix Plone 6 buildout
tisto Jan 29, 2023
dc7dd00
Preparing release 3.0.0
tisto Jan 29, 2023
5d0f4dc
Back to development: 3.0.1
tisto Jan 29, 2023
77c8f06
Dont publish items that are acquired.
jaroel May 17, 2023
cbe58a3
Renamed IExplicitAcquisitionPublishingAllowed to IShouldAllowAcquired…
jaroel May 18, 2023
7f71de1
Add some tests
jaroel May 18, 2023
db0cb9a
When ++api++ is in the url multiple times, redirect to the proper url.
mauritsvanrees Sep 19, 2023
77846a9
Merge pull request from GHSA-h6rp-mprm-xgcq
mauritsvanrees Sep 21, 2023
6d51874
Preparing release 3.0.1
mauritsvanrees Sep 21, 2023
0958370
Back to development: 3.0.2
mauritsvanrees Sep 21, 2023
de3266d
Drop Python 2.7, 3.6 and 3.7 (#156)
tisto Sep 22, 2023
df7fc7d
Use ubuntu-latest and rename GHA tests
tisto Sep 22, 2023
d83a8ad
Merge branch 'master' of github.com:plone/plone.rest
tisto Sep 22, 2023
f6d7bc8
Fix CI badge in README. Update checkouts to use main instead of master
tisto Sep 22, 2023
4ead81e
Merge branch 'main' into explicitacquisition
jaroel Sep 22, 2023
576f000
Use released Products.CMFCore
jaroel Sep 22, 2023
bd6d112
Update Plone/Python support section. (#158)
tisto Sep 22, 2023
3c79d7c
Add .pre-commit-config.yaml
tisto Sep 22, 2023
dfea52a
Merge branch 'main' of github.com:plone/plone.rest
tisto Sep 22, 2023
f61e3c7
Minor changelog amendment for #141
tisto Sep 22, 2023
21f9de3
Ignore pre-commit on MANIFEST
tisto Sep 22, 2023
64c5be3
Preparing release 4.0.0
tisto Sep 22, 2023
6bb2903
Back to development: 4.0.1
tisto Sep 22, 2023
33cbd40
Use src instead of released egg
tisto Sep 22, 2023
79f1d19
Pre commit tisto (#161)
tisto Oct 1, 2023
44fd7a4
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Oct 3, 2023
47e2ac8
Merge pull request #164 from plone/pre-commit-ci-update-config
gforcada Oct 3, 2023
46fcb23
Support IShouldAllowAcquiredItemPublication without requiring a newer…
jaroel Oct 9, 2023
619577c
Test IShouldAllowAcquiredItemPublication conditionally
jaroel Oct 9, 2023
fa9f2d2
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 9, 2023
054b023
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 9, 2023
809346b
Merge pull request #151 from plone/explicitacquisition
mauritsvanrees Oct 10, 2023
77b4ce6
Fixup explicitacquisition tests.
jaroel Oct 11, 2023
00d55e2
Fixup tests
jaroel Oct 12, 2023
0945e85
Fixup tests
jaroel Oct 12, 2023
9c2f497
Add Python 3.12 support
tisto Oct 14, 2023
46a1974
Add changelog
tisto Oct 14, 2023
f04ad78
GHA: update python-setup
tisto Oct 14, 2023
f41f5a1
GHA: simplify running buildout. Ignore ci.cfg
tisto Oct 14, 2023
aa88ca6
Delete ci.cfg
tisto Oct 14, 2023
61f678a
Fix requirements files
tisto Oct 14, 2023
ac9ba3f
grpcio-tools = 1.59.0
tisto Oct 14, 2023
db725d9
Pin everything that is needed to make the p.a.contenttypes rf test de…
tisto Oct 14, 2023
85a2265
Fix QA complaints
mauritsvanrees Oct 16, 2023
327323a
Use public interface for availability check, not an internal flag
jaroel Oct 17, 2023
f2c12a1
Use public interface for availability check, not an internal flag
jaroel Oct 17, 2023
8c97385
Use public interface for availability check, not an internal flag
jaroel Oct 17, 2023
eb1bd30
make flake8 happy again
jaroel Oct 17, 2023
2f42480
Fixes by pre-commit.
mauritsvanrees Oct 17, 2023
46f6283
Merge pull request #167 from plone/py-3.12
mauritsvanrees Oct 17, 2023
4aac529
Merge branch 'main' into explicitacquisition-fixup
mauritsvanrees Oct 17, 2023
5bdfe5b
Use https://pypi.org/simple index.
mauritsvanrees Oct 17, 2023
c95d326
Merge pull request #166 from plone/explicitacquisition-fixup
mauritsvanrees Oct 17, 2023
eb59f3d
Use proper changelog format
tisto Oct 18, 2023
2b4a9c6
Preparing release 4.1.0
tisto Oct 18, 2023
5f98989
Back to development: 4.1.1
tisto Oct 18, 2023
1bd2477
Reset SKIP_PTA to whatever it was.
jaroel Oct 20, 2023
d83b13b
changelog
jaroel Oct 20, 2023
65a5394
Rename 168.bugfix to 168.internal
jaroel Oct 20, 2023
772e5b6
Merge pull request #168 from plone/explicitacquisition-fixup-2
davisagli Oct 20, 2023
facbb91
Preparing release 4.1.1
tisto Oct 23, 2023
4b1d086
Back to development: 4.1.2
tisto Oct 23, 2023
ca5bee8
fix for weird requests with media types with extra /
djay Aug 23, 2023
c7115e6
add test
davisagli Sep 9, 2023
dc7eccf
black
davisagli Sep 9, 2023
7daa917
changelog
davisagli Sep 9, 2023
7ec7247
Merge with main
tiberiuichim Oct 26, 2023
73a7712
Run black
tiberiuichim Oct 26, 2023
9eca0d2
Merge pull request #153 from plone/fix_bad_media_type
davisagli Oct 26, 2023
e97437d
Merge remote-tracking branch 'origin/main' into simplify-traversal-up…
tiberiuichim Oct 27, 2023
08eb522
Remove duplicated lines in test
tiberiuichim Oct 27, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ jobs:
restore-keys: |
${{ runner.os }}-pip-

# install black
# install black (extract version from versions.cfg)
- name: install black
run: pip install black
run: pip install click==8.0.4 black==$(awk '/^black =/{print $NF}' versions.cfg)

# run black
- name: run black
Expand Down
32 changes: 15 additions & 17 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
name: plone.rest CI
name: Tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [3.8, 3.7, 2.7]
plone-version: [5.2, 5.1, 4.3]
python-version: ["3.12", "3.11", "3.10", "3.9", "3.8"]
plone-version: ["6.0", "5.2"]
exclude:
- python-version: 3.7
plone-version: 4.3
- python-version: 3.7
plone-version: 5.1
- python-version: 3.8
plone-version: 4.3
- python-version: 3.8
plone-version: 5.1
- python-version: 3.12
plone-version: 5.2
- python-version: 3.11
plone-version: 5.2
- python-version: 3.10
plone-version: 5.2
- python-version: 3.9
plone-version: 5.2
steps:

# git checkout
- uses: actions/checkout@v2

# python setup
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "pip"

# python cache
- uses: actions/cache@v1
Expand All @@ -40,13 +40,11 @@ jobs:
- run: pip install virtualenv
- run: pip install wheel
- name: pip install
run: pip install -r requirements.txt
- name: choose Plone version
run: sed -ie "s#plone-x.x.x.cfg#plone-${{ matrix.plone-version }}.x.cfg#" ci.cfg
run: pip install -r requirements-${{ matrix.plone-version }}.txt

# buildout
- name: buildout
run: buildout -t 10 -c ci.cfg
run: buildout -t 10 -c plone-${{ matrix.plone-version }}.x.cfg
env:
CI: true

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
/.Python
/include
/lib
/lib64
/.mr.developer.cfg
*.mo
local/
Expand Down
38 changes: 38 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Generated from:
# https://github.com/plone/meta/tree/master/config/default
ci:
autofix_prs: false
autoupdate_schedule: monthly

repos:
- repo: https://github.com/asottile/pyupgrade
rev: v3.14.0
hooks:
- id: pyupgrade
args: [--py38-plus]
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 23.9.1
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
hooks:
- id: flake8
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
- id: codespell
additional_dependencies:
- tomli
- repo: https://github.com/mgedmin/check-manifest
rev: "0.49"
hooks:
- id: check-manifest
- repo: https://github.com/regebro/pyroma
rev: "4.2"
hooks:
- id: pyroma
122 changes: 120 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,124 @@ Changelog

.. towncrier release notes start

4.1.1 (2023-10-23)
------------------

Internal:


- Fix test leakage, enabling the publication check when it shouldn't be active. @jaroel (#168)


4.1.0 (2023-10-18)
------------------

New features:


- Add support for Python 3.12. @tisto (#167)


Bug fixes:


- Make REST endpoints check for acquired items. @jaroel (#166)


4.0.0 (2023-09-22)
------------------

Breaking changes:


- Drop support for Python 2.7, 3.6, and 3.7 @tisto (#141)


3.0.1 (2023-09-21)
------------------

Bug fixes:


- When ``++api++`` is in the url multiple times, redirect to the proper url.
When the url is badly formed, for example ``++api++/something/++api++``, give a 404 NotFound.
Fixes a denial of service.
See `security advisory <https://github.com/plone/plone.rest/security/advisories/GHSA-h6rp-mprm-xgcq>`_.
[maurits] (#1)


3.0.0 (2023-01-29)
------------------

Breaking changes:


- Change the HTTP status from 301 (Moved Permanently) to 302 (Found) for GET requests and to 307 (Temporary Redirect) for other request methods.
This fixes problems when an existing redirect is re-used.
[mamico] (#135)
- Drop official support for Plone 4.3, 5.0 and 5.1 (most likely the package will continue to work though)
[tisto] (#140)


New features:


- Add official support for Plone 6
[tisto] (#143)
- Add official support for Python 3.9, 3.10, and 3.11
[tisto] (#147)


2.0.0 (2022-10-15)
------------------

Bug fixes:


- Re-release 2.0.0a6 as 2.0.0 [tisto] (#136)


2.0.0a5 (2022-04-07)
--------------------

Bug fixes:


- Fix an infinite loop with redirections from parent to child [ericof] (#133)


2.0.0a4 (2022-03-24)
--------------------

Bug fixes:


- ++api++ traverser should be kept on 30x redirections [mamico] (#132)


2.0.0a3 (2022-02-12)
--------------------

Bug fixes:


- ++api++ traverser should be kept on 30x redirections [mamico] (#127)


2.0.0a2 (2022-01-25)
--------------------

Bug fixes:


- Fix typo in `README.rst` [jensens] (#123)
- Use document_view as default for site root.
[agitator] (#126)
- Resolve all the deprecation warnings that originate in this package's code that are
exposed by running the tests that do not stem from backwards compatibility we support.
[rpatterson] (#128)


2.0.0a1 (2021-10-05)
--------------------

Expand Down Expand Up @@ -151,7 +269,7 @@ Bugfixes:
[buchi]

- Fallback to regular views during traversal to ensure compatibility with
views beeing called with a specific Accept header.
views being called with a specific Accept header.
[buchi]


Expand Down Expand Up @@ -201,7 +319,7 @@ Bugfixes:

- Refactor traversal of REST requests by using a traversal adapter on the site
root instead of a traversal adapter for each REST service. This prevents
REST services from being overriden by other traversal adapters.
REST services from being overridden by other traversal adapters.
[buchi]


Expand Down
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ exclude .flake8
exclude bootstrap-buildout.py
exclude Makefile
exclude requirements.txt
exclude requirements-*.txt
exclude CODEOWNERS
exclude .pre-commit-config.yaml
global-exclude *.pyc
include pyproject.toml
recursive-exclude news *
Expand Down
13 changes: 10 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
SHELL := /bin/bash
CURRENT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))

version = 3
version = 3.9

# We like colors
# From: https://coderwall.com/p/izxssa/colored-makefile-for-golang-projects
Expand All @@ -12,7 +12,7 @@ GREEN=`tput setaf 2`
RESET=`tput sgr0`
YELLOW=`tput setaf 3`

all: .installed.cfg
all: build-plone-6.0

# Add the following 'help' target to your Makefile
# And add help text after each target name starting with '\#\#'
Expand All @@ -36,7 +36,7 @@ update: ## Update Make and Buildout
bin/buildout: bin/pip
bin/pip install --upgrade pip
bin/pip install -r requirements.txt
bin/pip install black || true
bin/pip install pip install black==$$(awk '/^black =/{print $$NF}' versions.cfg)
@touch -c $@

bin/python bin/pip:
Expand Down Expand Up @@ -83,6 +83,13 @@ build-plone-5.2-performance: .installed.cfg ## Build Plone 5.2
bin/pip install -r requirements.txt
bin/buildout -c plone-5.2.x-performance.cfg

build-plone-6.0: ## Build Plone 6.0
python$(version) -m venv .
bin/pip install --upgrade pip
bin/pip install -r requirements-6.0.txt
bin/pip install pip install black==$$(awk '/^black =/{print $$NF}' versions.cfg)
bin/buildout -c plone-6.0.x.cfg

.PHONY: Test
test: ## Test
bin/test
Expand Down
Loading