•  
     
    story #12612 upload document via REST route
Summary
Empty
upload document via REST route

Add the new option dowload file in modal + add the corresponding REST route:

Technically:

A new REST route to create the file :

  • POST to create the file
    • return the url of the endpoint where to upload the file

The endpoint to upload the file uses the tus.io protocol.

If file with an existing name already exists we should raise an error.

Expiration time is set to 12H SYSTEM_CHECK will purged the partially updated file whose expiration time has exceed this limitation

We should check that non fully uploaded document are not displayed in old view.

Empty
Empty
Empty
Status
Empty
Done
Development
  • [ ] Does it involves User Interface? 
  • [ ] Are there any mockups?
  • [ ] Are permissions checked?
  • [ ] Does it need Javascript development?
  • [ ] Does it need a forge upgrade bucket?
  • [ ] Does it need to execute things in system events?
  • [ ] Does it impact project creation (templates)?
  • [ ] Is it exploratory?
Empty
Details
#12612
Marie Ange Garnier (marieange)
2019-01-02 15:45
2018-12-10 10:02
4219

References
Referencing story #12612

Git commit

tuleap/tuleap/stable

Implement a minimal route to test the tus.io protocol implementation 426ca739d3
The test endpoint for uploading document can authenticate users like the REST API d5d31558f8
Document manager PHPUnit unit tests should be executed by the CI 4a1a1c7cf9
Document manager upload endpoint can be used cross-origin like the REST API 90adb7cf29
The Tus server can notify when a upload is finished 1cc973aff5
Block item creation if there is an item being uploaded with the same name and parent b3fa975e59
Introduce the data structure to share document manager item ID between tables 8e0b650db1
Documents uploaded via the tus endpoint are added to the document manager 5df4a2b2f6
Extract the docman item POST representation 6280c8b56a
Document plugin must have a dependency to the docman plugin on RHEL/CentOS 7 358e6677e1
File document can be created through the REST API 87556c876f
Clean unused work files for documents that were being uploaded 06a7fbf77c
The tus endpoint for uploading a file should be accessible for everyone ed393daab8
A document should be marked as uploaded once it is added to the document manager 2a1bec72d6
A file can be added to the document manager using the REST API with the FTS plugin 82bed5b50a

Follow-ups

User avatar
Thomas Gerbet (tgerbet)2018-12-12 11:58
Updating the story to mention that the file will be uploaded with the tus.io protocol.

  • So that
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes
  • Status changed from Ready (stalled) to On going
User avatar
  • So that
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes
User avatar
  • So that
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes