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

Fallback default value of some of the FieldTypes can not be used to create Content

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Medium Medium
    • Resolution: Fixed
    • Affects Version/s: 5.1, 5.2-dev
    • Component/s: None
    • Labels:
    • Sprint:
      Aconcagua Sprint 1, Aconcagua Sprint 2

      Description

      Fallback default value returned by the getEmptyValue() method of some of the FieldTypes will produce an error if used in creation of Content.
      Exception will be thrown by FieldType::acceptValue().

      While the intention of this method is not to provide a default empty value for creation of Content (null can be used instead), nothing prevents user to use it in such a way.

      Proposed: update FieldType implementations so that acceptValue() can process such a value.

        Issue Links

          Activity

          Petar Spanja (Inactive) created issue -
          Petar Spanja (Inactive) made changes -
          Field Original Value New Value
          Link This issue discovered while testing EZP-20936 [ EZP-20936 ]
          André Rømcke made changes -
          Status Open [ 1 ] Backlog [ 10000 ]
          André Rømcke made changes -
          Rank Ranked higher
          André Rømcke made changes -
          Assignee Petar Spanja [ petar.spanja@ez.no ]
          André Rømcke made changes -
          Sprint Aconcagua Sprint 1 [ 10 ]
          André Rømcke made changes -
          Rank Ranked lower
          André Rømcke made changes -
          Remaining Estimate 1 day [ 28800 ]
          André Rømcke made changes -
          Original Estimate 1 day [ 28800 ]
          Petar Spanja (Inactive) made changes -
          Status Backlog [ 10000 ] Development [ 3 ]
          Petar Spanja (Inactive) logged work - 19/Jun/13 1:32 PM
          • Time Spent:
            3 hours
             

            implementing, fixing issues found

          Petar Spanja (Inactive) logged work - 20/Jun/13 1:32 PM
          • Time Spent:
            1 day
             

            implementing, fixing issues, reporting issues

          Petar Spanja (Inactive) made changes -
          Link This issue testing discovered EZP-21115 [ EZP-21115 ]
          Petar Spanja (Inactive) made changes -
          Remaining Estimate 1 day [ 28800 ] 5 hours [ 18000 ]
          Time Spent 3 hours [ 10800 ]
          Worklog Id 35469 [ 35469 ]
          Petar Spanja (Inactive) made changes -
          Remaining Estimate 5 hours [ 18000 ] 0 minutes [ 0 ]
          Time Spent 3 hours [ 10800 ] 1 day, 3 hours [ 39600 ]
          Worklog Id 35470 [ 35470 ]
          Show
          Petar Spanja (Inactive) added a comment - Pull request: https://github.com/ezsystems/ezpublish-kernel/pull/429
          Petar Spanja (Inactive) made changes -
          Status Development [ 3 ] Development review [ 10006 ]
          Petar Spanja (Inactive) made changes -
          Time Spent 1 day, 3 hours [ 39600 ] 1 day, 4 hours [ 43200 ]
          Worklog Id 35602 [ 35602 ]
          Petar Spanja (Inactive) logged work - 25/Jun/13 2:11 PM - edited
          • Time Spent:
            3 hours, 40 minutes
             

            refactored pull request #429 by review comment

          André Rømcke made changes -
          Rank Ranked higher
          André Rømcke made changes -
          Rank Ranked higher
          André Rømcke made changes -
          Sprint Aconcagua Sprint 1 [ 10 ] Aconcagua Sprint 1, Aconcagua Sprint 2 [ 10, 11 ]
          Petar Spanja (Inactive) logged work - 26/Jun/13 1:42 PM
          • Time Spent:
            6 hours
             

            further refactoring of the fieldtypes

          Petar Spanja (Inactive) logged work - 27/Jun/13 1:44 PM
          • Time Spent:
            6 hours
             

            further refactoring of the fieldtypes. discussion of the canges, removal of null as empty value value

          Petar Spanja (Inactive) made changes -
          Link This issue testing discovered EZP-21148 [ EZP-21148 ]
          Petar Spanja (Inactive) logged work - 28/Jun/13 1:46 PM
          • Time Spent:
            1 hour, 30 minutes
             

            finished refactoring and updated PR

          Patrick Allaert (Inactive) made changes -
          Time Spent 1 day, 4 hours [ 43200 ] 1 day, 5 hours [ 46800 ]
          Worklog Id 36013 [ 36013 ]
          Patrick Allaert (Inactive) logged work - 02/Jul/13 8:47 PM
          • Time Spent:
            1 hour
             

            Reviewing PR and commenting.

          Patrick Allaert (Inactive) made changes -
          Time Spent 1 day, 5 hours [ 46800 ] 1 day, 5 hours, 25 minutes [ 48300 ]
          Worklog Id 36040 [ 36040 ]
          Petar Spanja (Inactive) logged work - 03/Jul/13 1:58 PM
          • Time Spent:
            30 minutes
             

            fixes by PR review, discussing some remarks on GH

          Patrick Allaert (Inactive) logged work - 03/Jul/13 3:21 PM
          • Time Spent:
            25 minutes
             

            PR review

          Patrick Allaert (Inactive) made changes -
          Time Spent 1 day, 5 hours, 25 minutes [ 48300 ] 1 day, 5 hours, 35 minutes [ 48900 ]
          Worklog Id 36088 [ 36088 ]
          Patrick Allaert (Inactive) logged work - 04/Jul/13 1:47 PM
          • Time Spent:
            10 minutes
             

            Review PR

          Petar Spanja (Inactive) made changes -
          Time Spent 1 day, 5 hours, 35 minutes [ 48900 ] 1 day, 7 hours, 15 minutes [ 54900 ]
          Worklog Id 35602 [ 35602 ]
          Petar Spanja (Inactive) made changes -
          Time Spent 1 day, 7 hours, 15 minutes [ 54900 ] 2 days, 15 minutes [ 58500 ]
          Worklog Id 35602 [ 35602 ]
          Petar Spanja (Inactive) made changes -
          Time Spent 2 days, 15 minutes [ 58500 ] 2 days, 6 hours, 15 minutes [ 80100 ]
          Worklog Id 36151 [ 36151 ]
          Petar Spanja (Inactive) made changes -
          Time Spent 2 days, 6 hours, 15 minutes [ 80100 ] 3 days, 4 hours, 15 minutes [ 101700 ]
          Worklog Id 36152 [ 36152 ]
          Petar Spanja (Inactive) made changes -
          Time Spent 3 days, 4 hours, 15 minutes [ 101700 ] 3 days, 5 hours, 45 minutes [ 107100 ]
          Worklog Id 36155 [ 36155 ]
          Petar Spanja (Inactive) made changes -
          Time Spent 3 days, 5 hours, 45 minutes [ 107100 ] 3 days, 6 hours, 15 minutes [ 108900 ]
          Worklog Id 36163 [ 36163 ]
          Petar Spanja (Inactive) logged work - 05/Jul/13 12:21 PM
          • Time Spent:
            30 minutes
             

            fixes, rebase, merge

          Show
          Petar Spanja (Inactive) added a comment - Fixed in ezpublish-kernel/master: https://github.com/ezsystems/ezpublish-kernel/commit/e00807640796d3f37b4ad0e18af3d532c7f04b4f
          Petar Spanja (Inactive) made changes -
          Status Development review [ 10006 ] Development Review done [ 10028 ]
          Petar Spanja (Inactive) made changes -
          Status Development Review done [ 10028 ] Documentation done [ 10011 ]
          Marcos Loureiro (Inactive) made changes -
          Status Documentation done [ 10011 ] QA [ 10008 ]
          Assignee Petar Spanja [ petar.spanja@ez.no ] Marcos Loureiro [ marcos.loureiro@ez.no ]
          Hide
          Marcos Loureiro (Inactive) added a comment -

          QA Approved

          Show
          Marcos Loureiro (Inactive) added a comment - QA Approved
          Marcos Loureiro (Inactive) made changes -
          Assignee Marcos Loureiro [ marcos.loureiro@ez.no ]
          Status QA [ 10008 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Marcos Loureiro (Inactive) made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Marcos Loureiro (Inactive) made changes -
          Time Spent 3 days, 6 hours, 15 minutes [ 108900 ] 4 days, 1 hour, 45 minutes [ 121500 ]
          Worklog Id 36256 [ 36256 ]
          Marcos Loureiro (Inactive) made changes -
          Status Reopened [ 4 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Marcos Loureiro (Inactive) logged work - 08/Jul/13 3:59 PM
          • Time Spent:
            3 hours, 30 minutes
             

            Testing

          Petar Spanja (Inactive) made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Petar Spanja (Inactive) made changes -
          Time Spent 4 days, 1 hour, 45 minutes [ 121500 ] 4 days, 2 hours, 15 minutes [ 123300 ]
          Worklog Id 36661 [ 36661 ]
          Petar Spanja (Inactive) made changes -
          Status Reopened [ 4 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          André Rømcke made changes -
          Link This issue is duplicated by EZP-21089 [ EZP-21089 ]
          André Rømcke made changes -
          Workflow eZ Engineering Scrumban Workflow [ 56076 ] EZ* Development Workflow [ 83921 ]
          Alex Schuster made changes -
          Workflow EZ* Development Workflow [ 83921 ] EZEE Development Workflow [ 122544 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Backlog Backlog
          20h 7m 1 André Rømcke 12/Jun/13 2:29 PM
          Backlog Backlog Development Development
          6d 22h 35m 1 Petar Spanja (Inactive) 19/Jun/13 1:05 PM
          Development Development Development Review Development Review
          1d 23h 27m 1 Petar Spanja (Inactive) 21/Jun/13 12:32 PM
          Development Review Development Review Development Review done Development Review done
          16d 6h 35m 1 Petar Spanja (Inactive) 07/Jul/13 7:08 PM
          Development Review done Development Review done Documentation Review done Documentation Review done
          7s 1 Petar Spanja (Inactive) 07/Jul/13 7:08 PM
          Documentation Review done Documentation Review done QA QA
          17h 34m 1 Marcos Loureiro (Inactive) 08/Jul/13 12:42 PM
          QA QA Closed Closed
          1h 52m 1 Marcos Loureiro (Inactive) 08/Jul/13 2:35 PM
          Closed Closed Reopened Reopened
          10d 19h 46m 2 Petar Spanja (Inactive) 19/Jul/13 10:21 AM
          Reopened Reopened Closed Closed
          0s 2 Petar Spanja (Inactive) 19/Jul/13 10:21 AM

            People

            • Assignee:
              Unassigned
              Reporter:
              Petar Spanja (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 day Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 days, 2 hours, 15 minutes
                4d 2h 15m

                  Agile