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

User can not be properly created from inside storage

    Details

    • Sprint:
      Aconcagua Sprint 1, Aconcagua Sprint 4

      Description

      When field definition is added to the ContentType, all Content instances of that ContentType are updated by adding a field with default value defined in field definition.

      As user can be created only through UserService (or User storage handler) and not through external storage, field of the ezuser type added in such a way will not have all data properly created. Most important, it will not be possible to update such a user so that it becomes functional.

      Some options here:

      1. do not allow adding ezuser field to the ContentType that has existing Content instances
      2. handle it as a special case and create non-functional user that can be later updated (Legacy Storage way)
      3. something else?

        Issue Links

          Activity

          Show
          André Rømcke added a comment - Merged in https://github.com/ezsystems/ezpublish-kernel/commit/02adc861b17607bf67482d85d950f6d43e95c02d
          Hide
          Marcos Loureiro (Inactive) added a comment -

          Added PR with integration test for the case of create a new content type.
          https://github.com/ezsystems/ezpublish-kernel/pull/487

          Show
          Marcos Loureiro (Inactive) added a comment - Added PR with integration test for the case of create a new content type. https://github.com/ezsystems/ezpublish-kernel/pull/487
          Hide
          Petar Spanja (Inactive) added a comment -

          @Marcos Loureiro

          The comment is not correct, it was copied form the test directly below. I'll fix this.

          Show
          Petar Spanja (Inactive) added a comment - @ Marcos Loureiro The comment is not correct, it was copied form the test directly below. I'll fix this.
          Show
          Petar Spanja (Inactive) added a comment - Fixed in https://github.com/ezsystems/ezpublish-kernel/commit/fe7d2e8b59b60eb9cc4a846eb6cc691d5589d679 .
          Hide
          Marcos Loureiro (Inactive) added a comment -

          QA Approved

          Show
          Marcos Loureiro (Inactive) added a comment - QA Approved

            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 - 3 days, 1 hour, 45 minutes
                3d 1h 45m

                  Agile