Skip to content

Adding foundation for the direct download url - #12854

Merged
karlitschek merged 2 commits into
masterfrom
add-direct-download-link
Dec 29, 2014
Merged

karlitschek merged 2 commits into
masterfrom
add-direct-download-link

Conversation

@DeepDiver1975

Copy link
Copy Markdown
Contributor

refs #12286

@dragotin @danimo @guruz @ogoffart @karlitschek @icewind1991 THX

  • rename dav property to avoid unexpected behavior of client 1.7.x series
  • add implementation for S3
  • add implementation for SWIFT

@karlitschek

Copy link
Copy Markdown
Contributor

looks good 👍

Comment thread lib/private/files/storage/common.php Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For return type you still need array instead of [] afaik

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe return an empty array instead of null when not supported?

@DeepDiver1975
DeepDiver1975 force-pushed the add-direct-download-link branch from ac0f047 to 4c7cdbd Compare December 16, 2014 11:36
Comment thread apps/files_external/lib/smb.php Outdated

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@icewind1991 yet another mount config option - what is the plan to incorporate this? THX

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why would there be a config for this? shouldn't the backend have enough info to determine if it can be used?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why would there be a config for this? shouldn't the backend have enough info to determine if it can be used?

we want to give the admin to explicitly enable/disable direct download on mount level.

@DeepDiver1975

Copy link
Copy Markdown
Contributor Author

@owncloud-bot retest this please

@ghost

ghost commented Dec 22, 2014

Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/5410/
👍 Test PASSed. 👍

@karlitschek

Copy link
Copy Markdown
Contributor

ping. can anyone have a look?
@dragotin @danimo @guruz @ogoffart @karlitschek @icewind1991

@schiessle

Copy link
Copy Markdown
Contributor

Code looks good, but currently it doesn't do anything useful, or do I miss something? The only implementation of getDirectDownload() returns a empty array.

What about the open point "rename dav property to avoid unexpected behavior of client 1.7.x series"?

@DeepDiver1975 Is this PR complete? Any steps to try it?

@karlitschek

Copy link
Copy Markdown
Contributor

I guess this requires an implementation in a storage backend.
@DeepDiver1975

@danimo danimo changed the title Adding basement for the direct download url Adding foundation for the direct download url Dec 23, 2014
@DeepDiver1975

Copy link
Copy Markdown
Contributor Author

@schiesbn besides the fact that the dav property has to be renamed - this PR is ready

hopefully I find the time to submit pull requests to implement S3 and/or swift

@ogoffart @guruz make me an X-Mas present and propse a cool new name 😉

@ogoffart

Copy link
Copy Markdown

Be explicit? "downloadURL"

@DeepDiver1975
DeepDiver1975 force-pushed the add-direct-download-link branch from 661726c to d5657ac Compare December 24, 2014 21:21
@ghost

ghost commented Dec 24, 2014

Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/5556/
👍 Test PASSed. 👍

@DeepDiver1975
DeepDiver1975 force-pushed the add-direct-download-link branch from d5657ac to 81243b0 Compare December 28, 2014 16:17
@scrutinizer-notifier

Copy link
Copy Markdown

The inspection completed: 3 new issues, 5 updated code elements

@ghost

ghost commented Dec 28, 2014

Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/5600/
👍 Test PASSed. 👍

@icewind1991

Copy link
Copy Markdown
Contributor

👍

@karlitschek

Copy link
Copy Markdown
Contributor

cool. Let´s merge.

karlitschek added a commit that referenced this pull request Dec 29, 2014
Adding foundation for the direct download url
@karlitschek
karlitschek merged commit cd53da4 into master Dec 29, 2014
@karlitschek
karlitschek deleted the add-direct-download-link branch December 29, 2014 17:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants