Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-21611

unpublish cronjob uses anonymous credentials

    XMLWordPrintable

    Details

      Description

      unpublish cronjob uses anonymous credentials, therefore it doesn't affect nodes in restricted areas of the site.

      steps to reproduce (in 4.x):

      . configure article class in content.ini|UnpublishSettings|ClassList
      . create an article and fill in unpublish_date field (to a date in the past)
      . set the node section to restricted
      . run "php runcronjobs.php" (unpublish.php will run)
      . verify that the object was not affected

      steps to reproduce (in 5.x):

      . configure a class to have a datetime field with unpublish_date as identifier
      . configure <your class> in content.ini|UnpublishSettings|ClassList
      . create an <your class> and fill in unpublish_date field (to a date in the past)
      . set the node section to restricted
      . run "php runcronjobs.php" (unpublish.php will run)
      . verify that the object was not affected

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            joaquim.cavalleri-obsolete@ez.no Joaquim Cavalleri (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 30 minutes
                2h 30m