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

Fix broken LegacyDFSCluster::create()

    XMLWordPrintable

    Details

      Description

      Spun off from https://jira.ez.no/browse/EZP-25946 / https://github.com/ezsystems/ezpublish-kernel/pull/1825

      • Doc: It doesn't throw InvalidArgumentException on existing entry, it updates it instead.
      • Doc: It doesn't throw BadStateException on zero rowcount anymore, as that is unreliable across DBMSs.
      • Removed 'expired' from update statement, as that value isn't provided in the insert statement.
      • Removed rowcount check (see above).
      • Use DateTime instead of timestamp in the test, as the BinaryFileCreateStruct->mtime docblock says.
      • Convert DateTime to timestamp before insert query, but also allow timestamp since some code has been using that (see above).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              gunnstein.lye@ez.no Gunnstein Lye
              Votes:
              0 Vote for this issue
              Watchers:
              4 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 - 5 hours
                  5h