🕶 addons.mozilla.org Django app and API 🎉
Перейти к файлу
Mathieu Pillard 0fa369a6ee
Add a task before validation that repacks add-on uploads (#10961)
Add a task before validation that repacks add-on uploads

This ensures that we can't hide content from validation by abusing the
differences between the various implementations of zip files reading in
our stack, since we re-create a zip file from what addons-server saw
initially.

* Refactor repack_fileupload to avoid issues with Celery < 4.2

on_error isn't fired for tasks chains so we need to be creative...
this folds the repack_fileupload() and validate_file_path() into a
single task that is then decorated by @validation_task for error
handling.

* Fix tests now that we're repackaging

* Add tests and fix hash generation
2019-03-19 18:08:53 +01:00
.circleci Fix ui tests for new nginx config (#10888) 2019-03-11 19:20:06 -04:00
docker Upgrade to node 10 (#10431) 2019-01-17 19:12:51 +08:00
docs Fix small mistake in account notification unsubscribe docs 2019-03-12 11:11:40 +00:00
locale Pontoon: Update Spanish (es) localization of AMO 2019-03-19 13:12:18 +00:00
logs Actually commit logs/.gitkeep 2015-09-18 17:03:01 +01:00
requirements change travis to test on django22; drop python2 tests (#10943) 2019-03-18 11:39:28 +00:00
scripts Fix ui tests for new nginx config (#10888) 2019-03-11 19:20:06 -04:00
services python3 unicode fixes for theme_update.py (#10960) 2019-03-19 14:41:51 +00:00
src/olympia Add a task before validation that repacks add-on uploads (#10961) 2019-03-19 18:08:53 +01:00
static restore widget_attrs for UserEmailField (+rename) (#10915) 2019-03-12 12:57:57 +00:00
storage Expose correct addons and user-media paths in docker container. (#9706) 2018-10-16 13:45:29 +02:00
tests [UI-Tests] Add preference that prints console logs to geckodriver log. (#10958) 2019-03-18 22:42:04 -04:00
.dockerignore WIP: Cleanup locustio based performance / smoke tests, add more entities (#8358) 2018-05-30 16:46:16 +02:00
.gitignore Ignore docs/_build again (in the global .gitignore this time) 2019-02-13 17:38:08 +01:00
.jshintrc Fixing migration from config.json to .jshintrc 2014-11-12 19:45:54 +01:00
.travis.yml change travis to test on django22; drop python2 tests (#10943) 2019-03-18 11:39:28 +00:00
CODE_OF_CONDUCT.md Fix markdown 2017-04-04 14:19:43 +01:00
CONTRIBUTING.rst Add a note about "good first bug" procedure (#3175) 2016-08-01 21:33:29 +02:00
Dockerfile Implement mimetype categorization for easier file-type / preview detection (#10750) 2019-02-22 14:01:44 +01:00
Dockerfile.perftests WIP: Cleanup locustio based performance / smoke tests, add more entities (#8358) 2018-05-30 16:46:16 +02:00
Dockerfile.python2.deploy Implement mimetype categorization for easier file-type / preview detection (#10750) 2019-02-22 14:01:44 +01:00
Dockerfile.python3 Implement mimetype categorization for easier file-type / preview detection (#10750) 2019-02-22 14:01:44 +01:00
Dockerfile.python3.deploy Implement mimetype categorization for easier file-type / preview detection (#10750) 2019-02-22 14:01:44 +01:00
ISSUE_TEMPLATE.md Update first line of issue template 2016-09-14 09:23:24 +01:00
LICENSE Update copyright notice, I think it's 2016 already. (#2806) 2016-05-31 06:22:19 +02:00
Makefile Fix codestyle and docs jobs (#10683) 2019-02-13 16:21:05 +01:00
Makefile-docker use utf8mb4 everywhere; replace reset_db (#10935) 2019-03-18 10:57:49 +00:00
Makefile-os Fix codestyle and docs jobs (#10683) 2019-02-13 16:21:05 +01:00
PULL_REQUEST_TEMPLATE.md Fix type and grammar in PR_TEMPLATE (#10036) 2018-11-21 11:07:21 +00:00
README.rst fixing a couple of typos 2017-09-10 21:42:04 +01:00
conftest.py Python 3 fixes for the `es` job (#10483) 2019-01-23 06:01:09 +01:00
contribute.json Update irc contacts in contribute.json (#9537) 2018-09-26 13:49:19 +01:00
docker-compose.override.yml Addon Install Test (#6641) 2018-01-12 06:58:00 +01:00
docker-compose.yml Fix ui tests for new nginx config (#10888) 2019-03-11 19:20:06 -04:00
manage.py Set a default settings module 2016-02-24 20:51:11 +01:00
package.json fix(package): update uglify-js to version 3.4.10 2019-03-16 01:29:50 +00:00
schematic move schematic from mozilla/schematic (#10537) 2019-01-30 20:30:31 +08:00
settings.py use utf8mb4 everywhere; replace reset_db (#10935) 2019-03-18 10:57:49 +00:00
settings_test.py Add tests for utf8mb4 encoding (#10726) 2019-02-20 20:15:18 +01:00
setup.cfg Replace pytest-responses with our own custom implementation. (#10410) 2019-01-16 12:26:45 +01:00
setup.py Remove unused imports from setup.cfg 2016-01-06 10:48:03 +01:00
tox.ini Fix ui tests for new nginx config (#10888) 2019-03-11 19:20:06 -04:00
version.json change source in version.json to new repo name 2016-02-05 16:20:28 -08:00

README.rst

Этот файл содержит неоднозначные символы Юникода!

Этот файл содержит неоднозначные символы Юникода, которые могут быть перепутаны с другими в текущей локали. Если это намеренно, можете спокойно проигнорировать это предупреждение. Используйте кнопку Экранировать, чтобы подсветить эти символы.

.. image:: https://img.shields.io/badge/%E2%9D%A4-code%20of%20conduct-blue.svg
    :target: https://github.com/mozilla/addons-server/blob/master/CODE_OF_CONDUCT.md
    :alt: Code of conduct

.. image:: https://travis-ci.org/mozilla/addons-server.svg?branch=master
    :target: https://travis-ci.org/mozilla/addons-server

.. image:: https://pyup.io/repos/github/mozilla/addons-server/shield.svg
    :target: https://pyup.io/repos/github/mozilla/addons-server/
    :alt: Updates

.. image:: https://codecov.io/gh/mozilla/addons-server/branch/master/graph/badge.svg
    :target: https://codecov.io/gh/mozilla/addons-server

.. image:: https://pyup.io/repos/github/mozilla/addons-server/python-3-shield.svg
    :target: https://pyup.io/repos/github/mozilla/addons-server/
    :alt: Python 3


Addons-Server
=============

Welcome to the Addons Server repository!  Please feel free to visit the web page of the current project hosted on `addons.mozilla.org`_. If you want to install it follow our guide located in `install docs`_.  We'd love your help!  You can come talk to us on `irc.mozilla.org #amo`_ if you have any questions.

Please report bugs here: https://github.com/mozilla/addons/issues or https://github.com/mozilla/addons-server/issues
You can access the AMO dev environment at https://addons-dev.allizom.org/ and the AMO stage environment at https://addons.allizom.org/

You can join our mailing list at https://mail.mozilla.org/listinfo/dev-addons

.. _`addons.mozilla.org`: https://addons.mozilla.org
.. _`install docs`: https://addons-server.readthedocs.io/en/latest/topics/install/docker.html
.. _`irc.mozilla.org #amo`: irc://irc.mozilla.org/amo


.. marker-for-security-bug-inclusion-do-not-remove

Security Bug Reports
--------------------

This code and its associated production web page are included in the Mozillas web and services `bug bounty program`_. If you find a security vulnerability, please submit it via the process outlined in the program and `FAQ pages`_. Further technical details about this application are available from the `Bug Bounty Onramp page`_.

Please submit all security-related bugs through Bugzilla using the `web security bug form`_. Never submit security-related bugs through a Github Issue or by email.

.. _bug bounty program: https://www.mozilla.org/en-US/security/web-bug-bounty/
.. _FAQ pages: https://www.mozilla.org/en-US/security/bug-bounty/faq-webapp/
.. _Bug Bounty Onramp page: https://wiki.mozilla.org/Security/BugBountyOnramp/
.. _web security bug form: https://bugzilla.mozilla.org/form.web.bounty