{ "info": { "author": "4teamwork AG", "author_email": "mailto:info@4teamwork.ch", "bugtrack_url": null, "classifiers": [ "Framework :: Plone", "Framework :: Plone :: 4.3", "Framework :: Plone :: 5.1", "License :: OSI Approved :: GNU General Public License (GPL)", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "ftw.protectinactive\n===================\n\n``ftw.protectinactive`` protects inactive content from unauthorized access.\n\nPlone provides fields to set publication and expiration dates.\nIf the publication date is in the future or the expiration date is in the past the content is inactive.\nThis inactive state determines if the content should appear on the site or not.\n\n**The problem is that this check is only performed on the catalog.**\n\nIt works for listings and all other instances where catalog queries are used.\nBut it does not protect the content from beeing accessed directly via the url.\nAn unauthorized user is able to access the content whether it is inactive or not.\nThis behaviour is highly unintuitive and is often met with incomprehension.\n\n``ftw.protectinactive`` was created to protect inactive content and provide the expected behaviour.\nIt performs the check for inactive content in a ``IPubAfterTraversal`` hook.\nIf the content is inactive and the user has no permission to see it, ``ftw.protectinactive``\nraises an exception.\n\n\nFeatures\n--------\n* check if content is inactive\n* supports Dexterity content\n* respects ``Access inactive portal content`` and ``Access future portal content`` permissions (on site root)\n* configurable exception type\n\n\nInstallation\n------------\n- Add ``ftw.protectinactive`` to your buildout configuration:\n\n::\n\n [instance]\n eggs +=\n ftw.protectinactive\n\n- Install the generic import profile.\n\n\nConfiguration\n-------------\n\nThe exception raised by ``ftw.protectinactive`` can be configured in the plone registry.\nIt will raise an ``Unauthorized`` exception by default. This, however, confirms the\nexistence of the content, which is a potential unwanted information disclosure.\nTo avoid this the exception can be changed to a ``NotFound`` exception in the registry.\n\nIn addition you can also completaly disable the hook via the plone registry.\n\n\nInstallation local development-environment\n------------------------------------------\n\n.. code:: bash\n\n $ git clone git@github.com:4teamwork/ftw.protectinactive.git\n $ cd ftw.protectinactive\n $ ln -s development.cfg buildout.cfg\n $ python2.7 bootstrap.py\n $ bin/buildout\n $ bin/test\n\n\n\nCompatibility\n-------------\n\nRuns with `Plone `_ `5.1`.\n\n\nLinks\n-----\n\n- Github: https://github.com/4teamwork/ftw.protectinactive\n- Issues: https://github.com/4teamwork/ftw.protectinactive/issues\n- Continuous integration: https://jenkins.4teamwork.ch/search?q=ftw.protectinactive\n\nCopyright\n---------\n\nThis package is copyright by `4teamwork `_.\n\n``ftw.protectinactive`` is licensed under GNU General Public License, version 2.\n\nChangelog\n=========\n\n\n2.1.0 (2021-03-08)\n------------------\n\n- Implement option to disable the hook. [mathias.leimgruber]\n\n\n2.0.0 (2019-10-23)\n------------------\n\n- Drop Plone 4.2 compatibility. [jone]\n- Add Plone 5.1 support. [tinagerber]\n- Drop archetypes support. [tinagerber]\n\n1.0.2 (2018-01-09)\n------------------\n\n- Improve traversal hook in order not block authorized users from viewing\n content they should be allowed to view. [mbaechtold]\n\n- Fix failing tests because of recent changes in \"ftw.testbrowser\". [mbaechtold]\n\n- Test against Plone 4.2. [mbaechtold]\n\n- plone.api 1.4.11 is needed at least:\n See https://github.com/plone/plone.api/blob/1.4.11/docs/CHANGES.rst#1411-2016-01-08\n [mathias.leimgruber]\n\n- Updated description in setup.py. [lknoepfel]\n\n\n1.0.1 (2016-07-25)\n------------------\n\n- Specify required plone.api version. [lknoepfel]\n\n\n1.0.0 (2016-07-20)\n--------------------\n\n- Initial implementation and first release. [lknoepfel]", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/4teamwork/ftw.protectinactive", "keywords": "ftw protectinactive", "license": "GPL2", "maintainer": "4teamwork", "maintainer_email": "", "name": "ftw.protectinactive", "package_url": "https://pypi.org/project/ftw.protectinactive/", "platform": "", "project_url": "https://pypi.org/project/ftw.protectinactive/", "project_urls": { "Homepage": "https://github.com/4teamwork/ftw.protectinactive" }, "release_url": "https://pypi.org/project/ftw.protectinactive/2.1.0/", "requires_dist": null, "requires_python": "", "summary": "Protects inactive plone content from unauthorized access.", "version": "2.1.0", "yanked": false, "yanked_reason": null }, "last_serial": 13253232, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "b17bb7a4683445dca1ba065c4ffca254", "sha256": "c49b3887dc5aad355a8e8e108a7fea97eff9e8440629ef2d7f95e9c8666e6df0" }, "downloads": -1, "filename": "ftw.protectinactive-1.0.0.zip", "has_sig": false, "md5_digest": "b17bb7a4683445dca1ba065c4ffca254", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15952, "upload_time": "2016-07-20T13:29:21", "upload_time_iso_8601": "2016-07-20T13:29:21.399490Z", "url": "https://files.pythonhosted.org/packages/66/65/1e913b4fe4355fdc9a74107f18c441eeb0df100f87e3b539b797eedc8554/ftw.protectinactive-1.0.0.zip", "yanked": false, "yanked_reason": null } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "465360a60bd1a0c8c2d5f1beaeeb8304", "sha256": "bae47771d2b913f6e3280acc7122ca554f1a06e37cea94ba6188021458d94093" }, "downloads": -1, "filename": "ftw.protectinactive-1.0.1.zip", "has_sig": false, "md5_digest": "465360a60bd1a0c8c2d5f1beaeeb8304", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16510, "upload_time": "2016-07-25T10:18:02", "upload_time_iso_8601": "2016-07-25T10:18:02.519641Z", "url": "https://files.pythonhosted.org/packages/0b/84/ca80370eb4a7268a7be12dde927bac632f99b00fb6c011e13fe915e3fcd4/ftw.protectinactive-1.0.1.zip", "yanked": false, "yanked_reason": null } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "b76ed046d753f054d64a1ffdd594ace8", "sha256": "bdfaecf82a9ff5581c76148426680f6e776ad0cac89bdc92ced95e357080e48f" }, "downloads": -1, "filename": "ftw.protectinactive-1.0.2.tar.gz", "has_sig": false, "md5_digest": "b76ed046d753f054d64a1ffdd594ace8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9410, "upload_time": "2018-01-09T16:55:52", "upload_time_iso_8601": "2018-01-09T16:55:52.744388Z", "url": "https://files.pythonhosted.org/packages/c8/2e/2471d9506e6ae99febbf033f2de36832daacbf68d23cc3ac51c618f73dcd/ftw.protectinactive-1.0.2.tar.gz", "yanked": false, "yanked_reason": null } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "02b3fdb8fe045a31d26a5af48b83e508", "sha256": "c0a590e43cdb372bbdd66a30dde3a07fd8d3437270efb51704997096e89d5a1b" }, "downloads": -1, "filename": "ftw.protectinactive-1.0.3.tar.gz", "has_sig": false, "md5_digest": "02b3fdb8fe045a31d26a5af48b83e508", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10845, "upload_time": "2021-03-08T19:00:36", "upload_time_iso_8601": "2021-03-08T19:00:36.156791Z", "url": "https://files.pythonhosted.org/packages/dd/71/facfb031f03a2fa38f1638ada4e643d1ee84104a96ed67216a162c4a9206/ftw.protectinactive-1.0.3.tar.gz", "yanked": false, "yanked_reason": null } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "6df99f9c006d289b1f9df3a47afa1faa", "sha256": "390ef782b5904ca2d0c6121450ef57062149efdf13f2a6bfc0885ccd79d017ea" }, "downloads": -1, "filename": "ftw.protectinactive-1.1.0.tar.gz", "has_sig": false, "md5_digest": "6df99f9c006d289b1f9df3a47afa1faa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9080, "upload_time": "2019-10-09T06:40:24", "upload_time_iso_8601": "2019-10-09T06:40:24.990859Z", "url": "https://files.pythonhosted.org/packages/6b/6a/d1f7419cda87e497c69a39b8879f05dec99695923215c2d4345394f4283c/ftw.protectinactive-1.1.0.tar.gz", "yanked": false, "yanked_reason": null } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "939855430d44106857fd84ceb3611764", "sha256": "5443323cc331523c0278366d4d3b8ad788c9e44cc5fb078d1446303c065a7844" }, "downloads": -1, "filename": "ftw.protectinactive-2.0.0.tar.gz", "has_sig": false, "md5_digest": "939855430d44106857fd84ceb3611764", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9173, "upload_time": "2019-10-23T14:26:48", "upload_time_iso_8601": "2019-10-23T14:26:48.875829Z", "url": "https://files.pythonhosted.org/packages/20/ef/767aeb7418cb3d6901d22b221c70d03a0ca736d3833eae7fc087d6d43dfd/ftw.protectinactive-2.0.0.tar.gz", "yanked": false, "yanked_reason": null } ], "2.1.0": [ { "comment_text": "", "digests": { "md5": "21c3983df47ba371e068d53c4809f4cc", "sha256": "9824b0d6314b104a9565fea70e8171a24d5eb7aa0c7bf5a8be010e7ea016dcba" }, "downloads": -1, "filename": "ftw.protectinactive-2.1.0.tar.gz", "has_sig": false, "md5_digest": "21c3983df47ba371e068d53c4809f4cc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10599, "upload_time": "2021-03-08T19:08:48", "upload_time_iso_8601": "2021-03-08T19:08:48.607726Z", "url": "https://files.pythonhosted.org/packages/d2/df/64ba06d574e973e345c5cc281373420e023b000b018ceb1f78dd2031d603/ftw.protectinactive-2.1.0.tar.gz", "yanked": false, "yanked_reason": null } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "21c3983df47ba371e068d53c4809f4cc", "sha256": "9824b0d6314b104a9565fea70e8171a24d5eb7aa0c7bf5a8be010e7ea016dcba" }, "downloads": -1, "filename": "ftw.protectinactive-2.1.0.tar.gz", "has_sig": false, "md5_digest": "21c3983df47ba371e068d53c4809f4cc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10599, "upload_time": "2021-03-08T19:08:48", "upload_time_iso_8601": "2021-03-08T19:08:48.607726Z", "url": "https://files.pythonhosted.org/packages/d2/df/64ba06d574e973e345c5cc281373420e023b000b018ceb1f78dd2031d603/ftw.protectinactive-2.1.0.tar.gz", "yanked": false, "yanked_reason": null } ], "vulnerabilities": [] }