Skip to content

make versions of shared files downloadable - #13182

Merged
schiessle merged 1 commit into
masterfrom
download_versions
Jan 12, 2015
Merged

schiessle merged 1 commit into
masterfrom
download_versions

Conversation

@schiessle

Copy link
Copy Markdown
Contributor

fix download of versions from shared files.

Step to test:

  • enable encryption
  • user1 creates a file "test.txt"
  • user1 edits the file so that we have at least one version
  • user1 shares the file with user2
  • login as user2
  • try to download a version from the shared file

fix #12221

@karlitschek

Copy link
Copy Markdown
Contributor

great 👍

@ghost

ghost commented Jan 8, 2015

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/6099/
👍 Test PASSed. 👍

@MorrisJobke

Copy link
Copy Markdown
Contributor

@karlitschek @schiesbn @DeepDiver1975 Should this be part of owncloud 8.0 or 8.1?

@karlitschek

Copy link
Copy Markdown
Contributor

yes please

@MorrisJobke

Copy link
Copy Markdown
Contributor

@karlitschek This was an "or"-question ;) 8.0 OR 8.1? Which one?

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.

What about injecting IUserManager in this function and then use \OCP\IUserManager::userExists?

That would actually make that function unit-testable. As far I can see it is not really tested now.

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.

lol. @MorrisJobke i meant 8.0 :-)

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.

I don't like the idea to have completely unrelated parameters. I can also write a unit test for it the way it is.... I will add it.

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.

In case the helper class would not be static injecting IUserManager in the ctor would be the way to go - for now: let's keep it that way.

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.

@DeepDiver1975 agree, but that's not something we want to do in a bug fix

@DeepDiver1975 DeepDiver1975 added this to the 8.0-current milestone Jan 9, 2015
@scrutinizer-notifier

Copy link
Copy Markdown

The inspection completed: 12 new issues, 42 updated code elements

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.

Versioning + encryption: former versions are not decrypted when downloaded

7 participants