Skip to content

PagefilesManager should tolerate wrong datetime of files #42

@gerritvanaaken

Description

@gerritvanaaken

Short description of the issue

$page->filesManager->getFile('some_image.jpg')

If the database entry for "some_image.jpg" has a created-datetime like "1970-01-01 01:00:10", it does not pass the validation and won’t get selected, even if the image itself would be perfectly okay to handle.

Expected behavior

Image gets selected and can be used as an image object.

Actual behavior

Return is NULL

Steps to reproduce the issue

  1. Upload an image within CK editor (see image upload via CK Edit popup –> wrong datetime in database #41)
  2. in the template, try $page->filesManager->getFile('some_image.jpg')
  3. You get NULL as a result

Setup/Environment

  • ProcessWire version: 3.0.35
  • (Optional) PHP version: 5.6.25
  • (Optional) MySQL version: 5.6.28

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions