•  
      request #16599 Uploading a new version of a file throws errors
    Infos
    #16599
    Thomas Gerbet (tgerbet)
    2020-11-14 16:29
    2020-08-25 09:40
    17906
    Details
    Uploading a new version of a file throws errors
    Reproduction scenario:
    1. Create a new file document
    2. Drag&drop a new version of this file

    Likely introduced by git #tuleap/stable/b6e0884243aaa2106db1b6937dd3b027345a1c99.


    Trace:
    Uncaught RangeError: date value is not finite in RelativeTimeFormat.format()
    formatRelativeDate relative-date-formatter.ts:335
    updateDates relative-date-element.ts:92
    connectedCallback relative-date-element.ts:35
    VueJS 19
    _callee2$ upload-file.js:91
    Babel 8
    _emitSuccess upload.js:461
    _handleUploadResponse upload.js:798
    _performUpload upload.js:716
    promise callback*_performUpload upload.js:709
    _resumeUpload upload.js:669
    promise callback*_resumeUpload upload.js:601
    _startSingleUpload upload.js:346
    start upload.js:178
    promise callback*start upload.js:171
    uploadVersion upload-file.js:103
    uploadVersionAndAssignUploader actions.js:439
    _callee32$ actions.js:415
    Babel 10
    uploadNewVersion document-3b810c2682ffa844717c.js:59580
    _callee31$ actions.js:297
    Babel 8
    createNewFileVersion actions.js:295
    wrappedActionHandler vuex.esm.js:847
    dispatch vuex.esm.js:512
    boundDispatch vuex.esm.js:402
    _callee2$ DragNDropHandler.vue:386
    Babel 8
    _callee$ DragNDropHandler.vue:193
    relative-date-formatter.ts:335:47
    format self-hosted:7585
    formatRelativeDate relative-date-formatter.ts:335
    updateDates relative-date-element.ts:92
    connectedCallback relative-date-element.ts:35
    VueJS 19
    _callee2$ upload-file.js:91
    Babel 8
    _emitSuccess upload.js:461
    _handleUploadResponse upload.js:798
    _performUpload upload.js:716
    (Asynchrone : promise callback)
    _performUpload upload.js:709
    _resumeUpload upload.js:669
    (Asynchrone : promise callback)
    _resumeUpload upload.js:601
    _startSingleUpload upload.js:346
    start upload.js:178
    (Asynchrone : promise callback)
    start upload.js:171
    uploadVersion upload-file.js:103
    uploadVersionAndAssignUploader actions.js:439
    _callee32$ actions.js:415
    Babel 10
    uploadNewVersion document-3b810c2682ffa844717c.js:59580
    _callee31$ actions.js:297
    Babel 8
    createNewFileVersion actions.js:295
    wrappedActionHandler vuex.esm.js:847
    dispatch vuex.esm.js:512
    boundDispatch vuex.esm.js:402
    _callee2$ DragNDropHandler.vue:386
    Babel 8
    uploadNewFileVersion self-hosted:935
    _callee$ DragNDropHandler.vue:193
    Doc/Documentation manager
    11.18
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Clarck Robinson (robinsoc)
    Closed
    2020-11-14
    Attachments
    Empty
    References

    Follow-ups

    User avatar
    Integrated into Tuleap 12.2.99.5

    • Status changed from Under review to Closed
    • Connected artifacts
    • Close date set to 2020-11-14
    User avatar
    • Summary
      -Uploading a new version of a file via a drag&drop throws errors 
      +Uploading a new version of a file throws errors 
    User avatar

    Last update date column is empty when a file update is made via the modal

    User can manipulate file via the modal
    User avatar
    last edited by: Clarck Robinson (robinsoc) 2020-11-13 09:23
    In addition of this error :
    When user updates a file in the document service, the value of the "Last update date" column in the document tree view disappear when the update is finished.
    In the "Quick look" the "Last update date" field is still displayed but not updated.

    This error occurs whenever an update of a file is done, drag&drop or not

    • Status changed from Verified to Under implementation
    • Assigned to changed from None to Clarck Robinson (robinsoc)