[
https://issues.apache.org/jira/browse/JAMES-3040?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Benoit Tellier closed JAMES-3040.
---------------------------------
Resolution: Fixed
https://github.com/linagora/james-project/pull/3090 closed the issue
> LinShare blob export mechanism should rely on delegation
> --------------------------------------------------------
>
> Key: JAMES-3040
> URL: https://issues.apache.org/jira/browse/JAMES-3040
> Project: James Server
> Issue Type: Improvement
> Reporter: Nguyễn Việt Đức
> Priority: Major
>
> # Description
> Currently, James allows exporting the content of a blob via LinShare.
> To do so, we rely on an administrator account that upload & share
> # Current behaviour
> To do so, we rely on an administrator account that upload & share the blob to
> the end user.
> # Expected result
> We should rather rely on "delegation APIs" to do so.
> Reuse output of [this|https://issues.apache.org/jira/browse/JAMES-3039] in
> your tests...
> Configuration inludes (k8s injected) technical user + passwd, James relies on
> simple auth mechanism upon each request.
> # Requirements:
> - A delegation account including (uuid/password)
> # Steps:
> - Get target user uuid (blobs will be uploaded to this user's spaces). For
> example: [email protected]
> {code:java}
> GET
> http://localhost:28080/linshare/webservice/rest/delegation/v2/users/{target-user-mail}
> -u "delegation-account-uuid:delegation-account-password"
> 200: Ok, created
> Not 200: Bad result
> {code}
> Response body:
> {code:java}
> {
> "uuid": "b3684f3c-f239-4826-9dcc-0731f933c6ef",
> "domain": "e57bb7b8-77b5-4d12-b6bb-a3f6894fcf5f",
> "firstName": "John",
> "lastName": "Doe",
> "mail": "[email protected]",
> "accountType": "INTERNAL",
> "external": false
> }
> {code}
> # Upload directly to user space `My Space`).
> Easy, but files structure in user spaces will be messy, an exported blob will
> be in the same place with bunch of files that users will be uploading.
> {code:java}
> POST
> localhost:28080/linshare/webservice/rest/delegation/v2/{target-user-uuid}/documents
> -u "delegation-account-uuid:delegation-account-password"
> 200: Ok, created
> Not 200: Bad result
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]