No description
  • Python 97.1%
  • Dockerfile 1.6%
  • Shell 1.3%
Find a file
Adrian Likins c19d251643
Handle the multipart/form bodies sent from ansible2.9 (#159)
In ansible-galaxy versions 2.9, the body of the multipart/form
POST'ed as part of the 'publish' command causes the default
django/drf multipart/form parsers to ignore the 'sha256' content.

When the parser ignores it, the sha256 value is None, which
the galaxy-api publish code considers an optional value.
So when the publish / import is passed to pulp api via
galaxy_pulp, the pulp side doesn't check that the artifacts
sha256sum matches the 'sha256' value (since it is None).

This adds a custom parser that subclasses the drf 'MultiPartParser'
but does some pre-processing on the request body stream to
correct it before it is sent to the base MultiPartParser.

Fixes ansible/galaxy-dev#246
2020-03-17 09:56:23 -04:00
bindings Enable yamllint and make the repo yamllintable (#137) 2020-02-12 13:25:03 +01:00
galaxy_api Handle the multipart/form bodies sent from ansible2.9 (#159) 2020-03-17 09:56:23 -04:00
openapi Enable yamllint and make the repo yamllintable (#137) 2020-02-12 13:25:03 +01:00
scripts Add Dockerfile and related scripts (#113) 2019-11-05 11:17:58 +01:00
tests While creating namespace, make sure submitted owner's ID is a digit (#153) 2020-02-07 12:17:38 +00:00
.gitignore Add TravisCI and unit tests configuration (#32) 2019-07-29 16:44:03 +02:00
.travis.yml Enable yamllint and make the repo yamllintable (#137) 2020-02-12 13:25:03 +01:00
.yamllint Enable yamllint and make the repo yamllintable (#137) 2020-02-12 13:25:03 +01:00
Dockerfile Load settings from /etc/galaxy/settings.py (#141) 2019-12-17 12:42:37 +01:00
LICENSE Initial commit 2019-06-18 13:29:12 +02:00
Pipfile Use django-prometheus to bootstrap prometheus metrics (#138) 2020-01-06 10:15:39 -05:00
Pipfile.lock Use django-prometheus to bootstrap prometheus metrics (#138) 2020-01-06 10:15:39 -05:00
README.rst Add README (#38) 2019-07-30 17:47:26 +02:00
setup.cfg Update to reflect changes caused by integration with Pulp 2019-07-02 13:12:25 +02:00
setup.py Update to reflect changes caused by integration with Pulp 2019-07-02 13:12:25 +02:00
tox.ini Enable yamllint and make the repo yamllintable (#137) 2020-02-12 13:25:03 +01:00

==========
Galaxy API
==========

.. image:: https://travis-ci.com/ansible/galaxy-api.svg?branch=master
    :target: https://travis-ci.com/ansible/galaxy-api