Content
View differences
Updated by Sagar Gurung over 1 year ago
### Steps to reproduce
* Configure OAUTH (between `Nextcloud` and `OpenProject`)
* From `OpenProject`, connect fetch a user (admin for example) as a `Nextcloud` User
* For a openproject project (demo project for example), add the `Nextcloud` File storage for that project
* Navigate to the work packages for the demo project
* Select a work package, in the files panel (on the right corner), you can upload a file to the nextcloud.
* Once uploaded, you can open network tab and click on the file you uploaded info response from OpenProject.
* Search for the PROPFIND REQUEST with status 207 -> navigate to Preview section -> And search for the `href` in response section containing your file name you just uploaded.
* Further open the details about the files you can see the
`<d:creationdate>2024-09-06T05:51:44+00:00</d:creationdate>` date in it. `/ocs/v1.php/apps/integration_openproject/fileinfo/:id`
The Ctime is always same for every file uploaded.
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/191476/content">
### What is the buggy behavior
* creation of data ctime is always 0 or same for every file uploaded
### What is the expected behavior?
* the date of creation of the file should have the correct value according to the uploaded time or timestamp or date
* Configure OAUTH (between `Nextcloud` and `OpenProject`)
* From `OpenProject`, connect
* For a openproject project (demo project for example), add the `Nextcloud` File storage for that project
* Navigate to the work packages for the demo project
* Select a work package, in the files panel (on the right corner), you can upload a file to the nextcloud.
* Once uploaded, you can open network tab and click on the file you uploaded
* Search for the PROPFIND REQUEST with status 207 -> navigate to Preview section -> And search for the `href` in response section containing your file name you just uploaded.
* Further open the details about the files you can see the
`<d:creationdate>2024-09-06T05:51:44+00:00</d:creationdate>` date in it.
The Ctime is always same for every file uploaded.
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/191476/content">
### What is the buggy behavior
* creation of data ctime is always 0 or same for every file uploaded
### What is the expected behavior?
* the date of creation of the file should have the correct value according to the uploaded time or timestamp or date