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

PAPI image/binary should avoid using orignal name & hitting filesystem node limits

    Details

      Description

      When creating image objects through the Public API, image content is placed directly in the legacy images root, for example:

          var/<something>/storage/images/1712-1-eng-GB/Chrysanthemum.jpg
      

      However in this case where the Content name is "test", it should be something like

          var/<something>/storage/images/171/2/1/eng-GB/test.jpg
      

      The example is just an example, this can be solved different ways, here it makes sure all id's are splinted per 3 digits, it could be 4. Also the language folder can be skipped if field is untranslatable, but only if this is easily achievable.

        Issue Links

          Activity

          André Rømcke created issue -
          André Rømcke made changes -
          Field Original Value New Value
          Description When creating image objects through the Public API, image content is placed directly in the legacy images root, for example:

              var/<something>/storage/images/1712-1-eng-GB/Chrysanthemum.jpg


          However in this case where the Content name is "test", it should be something like

              var/<something>/storage/images/171/2-1-eng-GB/Chrysanthemum.jpg
          André Rømcke made changes -
          Description When creating image objects through the Public API, image content is placed directly in the legacy images root, for example:

              var/<something>/storage/images/1712-1-eng-GB/Chrysanthemum.jpg


          However in this case where the Content name is "test", it should be something like

              var/<something>/storage/images/171/2-1-eng-GB/Chrysanthemum.jpg
          When creating image objects through the Public API, image content is placed directly in the legacy images root, for example:
          {noformat}
              var/<something>/storage/images/1712-1-eng-GB/Chrysanthemum.jpg
          {noformat}

          However in this case where the Content name is "test", it should be something like
          {noformat}
              var/<something>/storage/images/171/2-1-eng-GB/Chrysanthemum.jpg
          {noformat}
          André Rømcke made changes -
          Description When creating image objects through the Public API, image content is placed directly in the legacy images root, for example:
          {noformat}
              var/<something>/storage/images/1712-1-eng-GB/Chrysanthemum.jpg
          {noformat}

          However in this case where the Content name is "test", it should be something like
          {noformat}
              var/<something>/storage/images/171/2-1-eng-GB/Chrysanthemum.jpg
          {noformat}
          When creating image objects through the Public API, image content is placed directly in the legacy images root, for example:
          {noformat}
              var/<something>/storage/images/1712-1-eng-GB/Chrysanthemum.jpg
          {noformat}

          However in this case where the Content name is "test", it should be something like
          {noformat}
              var/<something>/storage/images/171/2-1-eng-GB/test.jpg
          {noformat}
          André Rømcke made changes -
          Description When creating image objects through the Public API, image content is placed directly in the legacy images root, for example:
          {noformat}
              var/<something>/storage/images/1712-1-eng-GB/Chrysanthemum.jpg
          {noformat}

          However in this case where the Content name is "test", it should be something like
          {noformat}
              var/<something>/storage/images/171/2-1-eng-GB/test.jpg
          {noformat}
          When creating image objects through the Public API, image content is placed directly in the legacy images root, for example:
          {noformat}
              var/<something>/storage/images/1712-1-eng-GB/Chrysanthemum.jpg
          {noformat}

          However in this case where the Content name is "test", it should be something like
          {noformat}
              var/<something>/storage/images/171/2/1/eng-GB/test.jpg
          {noformat}

          The example is just an example, this can be solved different ways, here it makes sure all id's are splinted per 3 digits, it could be 4. Also the language folder can be skipped if field is untranslatable, but only if this is easily archivable.
          Bertrand Dunogier made changes -
          Description When creating image objects through the Public API, image content is placed directly in the legacy images root, for example:
          {noformat}
              var/<something>/storage/images/1712-1-eng-GB/Chrysanthemum.jpg
          {noformat}

          However in this case where the Content name is "test", it should be something like
          {noformat}
              var/<something>/storage/images/171/2/1/eng-GB/test.jpg
          {noformat}

          The example is just an example, this can be solved different ways, here it makes sure all id's are splinted per 3 digits, it could be 4. Also the language folder can be skipped if field is untranslatable, but only if this is easily archivable.
          When creating image objects through the Public API, image content is placed directly in the legacy images root, for example:
          {noformat}
              var/<something>/storage/images/1712-1-eng-GB/Chrysanthemum.jpg
          {noformat}

          However in this case where the Content name is "test", it should be something like
          {noformat}
              var/<something>/storage/images/171/2/1/eng-GB/test.jpg
          {noformat}

          The example is just an example, this can be solved different ways, here it makes sure all id's are splinted per 3 digits, it could be 4. Also the language folder can be skipped if field is untranslatable, but only if this is easily achievable.
          André Rømcke made changes -
          Status Open [ 1 ] Confirmed [ 10037 ]
          André Rømcke made changes -
          Status Confirmed [ 10037 ] InputQ [ 10001 ]
          Bertrand Dunogier made changes -
          Status InputQ [ 10001 ] Development [ 3 ]
          Assignee Bertrand Dunogier [ bertrand.dunogier@ez.no ]
          Bertrand Dunogier made changes -
          Remaining Estimate 0 minutes [ 0 ]
          Time Spent 4 hours [ 14400 ]
          Worklog Id 42658 [ 42658 ]
          Bertrand Dunogier made changes -
          Status Development [ 3 ] Development review [ 10006 ]
          Bertrand Dunogier made changes -
          Remote Link This issue links to "ezpublish-kernel#638 (Web Link)" [ 12932 ]
          Bertrand Dunogier made changes -
          Status Development review [ 10006 ] Development Review done [ 10028 ]
          Fix Version/s 5.3 [ 11282 ]
          Fix Version/s 5.1 Maintenance [ 12301 ]
          Fix Version/s 5.2 Maintenance [ 12782 ]
          Bertrand Dunogier made changes -
          Status Development Review done [ 10028 ] Development Acceptance Done [ 10030 ]
          Bertrand Dunogier made changes -
          Time Spent 4 hours [ 14400 ] 1 day, 4 hours [ 43200 ]
          Worklog Id 42760 [ 42760 ]
          Bertrand Dunogier made changes -
          Fix Version/s 5.1 Maintenance [ 12301 ]
          Fix Version/s 5.2 Maintenance [ 12782 ]
          Bertrand Dunogier made changes -
          Status Development Acceptance Done [ 10030 ] Documentation done [ 10011 ]
          Joao Pingo (Inactive) made changes -
          Status Documentation done [ 10011 ] QA [ 10008 ]
          Assignee Bertrand Dunogier [ bertrand.dunogier@ez.no ] Joao Pingo [ joao.pingo@ez.no ]
          Joao Pingo (Inactive) made changes -
          Status QA [ 10008 ] InputQ [ 10001 ]
          Assignee Joao Pingo [ joao.pingo@ez.no ]
          Joao Pingo (Inactive) made changes -
          Time Spent 1 day, 4 hours [ 43200 ] 1 day, 7 hours, 30 minutes [ 55800 ]
          Worklog Id 42853 [ 42853 ]
          Bertrand Dunogier made changes -
          Status InputQ [ 10001 ] Development [ 3 ]
          Assignee Bertrand Dunogier [ bertrand.dunogier@ez.no ]
          Bertrand Dunogier made changes -
          Remote Link This issue links to "PR #2 ezpublish-kernel#641 (Web Link)" [ 12940 ]
          Bertrand Dunogier made changes -
          Status Development [ 3 ] Development review [ 10006 ]
          Bertrand Dunogier made changes -
          Status Development review [ 10006 ] Development Review done [ 10028 ]
          Bertrand Dunogier made changes -
          Status Development Review done [ 10028 ] Documentation done [ 10011 ]
          Joao Pingo (Inactive) made changes -
          Status Documentation done [ 10011 ] QA [ 10008 ]
          Assignee Bertrand Dunogier [ bertrand.dunogier@ez.no ] Joao Pingo [ joao.pingo@ez.no ]
          Joao Pingo (Inactive) made changes -
          Time Spent 1 day, 7 hours, 30 minutes [ 55800 ] 2 days, 1 hour, 30 minutes [ 63000 ]
          Worklog Id 43236 [ 43236 ]
          Joao Pingo (Inactive) made changes -
          Assignee Joao Pingo [ joao.pingo@ez.no ]
          Status QA [ 10008 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Joao Pingo (Inactive) made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Joao Pingo (Inactive) made changes -
          Time Spent 2 days, 1 hour, 30 minutes [ 63000 ] 2 days, 3 hours [ 68400 ]
          Worklog Id 43246 [ 43246 ]
          Joao Pingo (Inactive) made changes -
          Status Reopened [ 4 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Joao Pingo (Inactive) made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Joao Pingo (Inactive) made changes -
          Time Spent 2 days, 3 hours [ 68400 ] 2 days, 3 hours, 30 minutes [ 70200 ]
          Worklog Id 43246 [ 43246 ]
          Joao Pingo (Inactive) made changes -
          Status Reopened [ 4 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Joao Pingo (Inactive) made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Joao Pingo (Inactive) made changes -
          Time Spent 2 days, 3 hours, 30 minutes [ 70200 ] 3 days, 30 minutes [ 88200 ]
          Worklog Id 43291 [ 43291 ]
          Joao Pingo (Inactive) made changes -
          Status Reopened [ 4 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Joao Pingo (Inactive) made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Joao Pingo (Inactive) made changes -
          Remaining Estimate 0 minutes [ 0 ] 5 hours [ 18000 ]
          Time Spent 3 days, 30 minutes [ 88200 ] 2 days, 3 hours, 30 minutes [ 70200 ]
          Worklog Id 43291 [ 43291 ]
          Worklog Time Spent 5 hours [ 18000 ]
          Joao Pingo (Inactive) made changes -
          Status Reopened [ 4 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          André Rømcke made changes -
          Workflow eZ Engineering Scrumban Workflow [ 60236 ] EZ* Development Workflow [ 84550 ]
          Alex Schuster made changes -
          Workflow EZ* Development Workflow [ 84550 ] EZEE Development Workflow [ 123210 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              André Rømcke
            • 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:
                Time Spent - 2 days, 3 hours, 30 minutes Remaining Estimate - 5 hours
                5h
                Logged:
                Time Spent - 2 days, 3 hours, 30 minutes Remaining Estimate - 5 hours
                2d 3h 30m