Skip to content

Conversation

@mrow4a
Copy link
Contributor

@mrow4a mrow4a commented Mar 29, 2017

-1 query as well here

@mention-bot
Copy link

@mrow4a, thanks for your PR! By analyzing the history of the files in this pull request, we identified @IljaN and @PVince81 to be potential reviewers.

@mrow4a mrow4a added this to the 10.0 milestone Mar 29, 2017
@mrow4a mrow4a changed the base branch from optimize_put to master March 29, 2017 08:31
@mrow4a
Copy link
Contributor Author

mrow4a commented Mar 30, 2017

Needs additional unit test or integration?

As in all other PRs https://github.com/owncloud/core/pulls/mrow4a, this pops up occasionaly with reordered users , @butonic
selection_125

@PVince81
Copy link
Contributor

PVince81 commented Apr 6, 2017

Did we merge your sorting fix ? If yes then you can rebase this.

@PVince81 PVince81 modified the milestones: 10.0.1, 10.0 Apr 26, 2017
@DeepDiver1975 DeepDiver1975 modified the milestones: 10.0.1, 10.1 May 17, 2017
@mrow4a mrow4a force-pushed the optimize_put_3 branch 2 times, most recently from a00f8b8 to 5481629 Compare May 23, 2017 22:31
*/
public function getMetaData($path) {
$parentMetaData = $this->getWrapperStorage()->getMetaData($path);
// Check if it is partial file. Partial file metadata are only checksums
Copy link
Contributor

Choose a reason for hiding this comment

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

add $parentMetaData = [] in the case we don't fetch it. I know PHP is "clever" and will make an array out thin air, but having it explicit is more readable

@PVince81
Copy link
Contributor

PVince81 commented Jul 4, 2017

@mrow4a any update ? After making the change requested above please rebase to get more integration tests from master

@mrow4a
Copy link
Contributor Author

mrow4a commented Jul 28, 2017

@PVince81 @DeepDiver1975 @jvillafanez I think this is ready :>

@PVince81
Copy link
Contributor

@mrow4a seems you missed my comment ?

@mrow4a
Copy link
Contributor Author

mrow4a commented Jul 28, 2017

Ohh, true, thanks! Will change

*
* @param string $file
* @return boolean
*/
Copy link
Member

Choose a reason for hiding this comment

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

We should have an utility method for common path checks. This isn't the first time I've seen (nor written 😞 ) this function.
I'd leave it as technical debt for now, but it should be tackled as soon as time allows it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@DeepDiver1975 where will you put this utility?

public static function isPartialFile($file) {
if (pathinfo($file, PATHINFO_EXTENSION) === 'part') {
return true;
}
Copy link
Member

Choose a reason for hiding this comment

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

Any case for this? a/b.part/c will be consider as a part file, which I guess it's ok because a/b.part shouldn't exists in the first place, or the file is inside a "part" directory which is fine to ignore.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

I think .part files are ignored by the scanner

@mrow4a mrow4a force-pushed the optimize_put_3 branch 2 times, most recently from 64539f8 to 36675cd Compare August 9, 2017 07:18
@mrow4a
Copy link
Contributor Author

mrow4a commented Aug 9, 2017

@jvillafanez @PVince81 can we merge, I checked with DiagnosticApp and it works as desired.

Copy link
Contributor

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

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

👍

@PVince81 PVince81 merged commit 5216283 into master Aug 9, 2017
@PVince81 PVince81 deleted the optimize_put_3 branch August 9, 2017 13:27
@PVince81
Copy link
Contributor

PVince81 commented Aug 9, 2017

@mrow4a please backport to stable10

@PVince81
Copy link
Contributor

Note: this causes an issue when uploading ".part" files directly through Webdav, see #28929 (comment)

However we're not supposed to allow uploading ".part" files anyway through Webdav. The latter will be fixed in #7496 (comment).

This is also for information purposes. No fix is needed for the code from this PR here.

@DeepDiver1975 DeepDiver1975 modified the milestones: 10.1, development Oct 10, 2017
@lock
Copy link

lock bot commented Aug 2, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 2, 2019
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