Skip to content

Conversation

@tobiasKaminsky
Copy link
Member

This allows to fetch file versions.

Signed-off-by: tobiasKaminsky tobias@kaminsky.me

// loop to update every child
for (int i = 1; i < remoteData.getResponses().length; ++i) {
we = new WebdavEntry(remoteData.getResponses()[i], splitElement);
versions.add(new FileVersion(fileId, we));
Copy link
Member

Choose a reason for hiding this comment

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

we as a variable isn't needed and could be dropped since it is needed only for the versions.add call

Log_OC.e(TAG, "Synchronized with id " + fileId + ": " + result.getLogMessage(),
result.getException());
} else {
Log_OC.e(TAG, "Synchronized with id " + fileId + ": " + result.getLogMessage());
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't this rather be a warning then? I can also live with error though.

@AndyScherzinger
Copy link
Member

AndyScherzinger commented Jun 4, 2018

👍 just some minor comments

Approved with PullApprove

@tobiasKaminsky
Copy link
Member Author

Changed & rebased

@AndyScherzinger
Copy link
Member

@tobiasKaminsky can't test, your Nc14 instance seems broken as in the server code might need updating:

*** status code: 404 ; response message: {"ocs":{
"meta":{"status":"failure","statuscode":404,
"message":"Invalid query, please check the syntax. API specifications are here: http:\/\/www.freedesktop.org\/wiki\/Specifications\/open-collaboration-services.\n"},"data":[]}}

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
@AndyScherzinger
Copy link
Member

Sorry @mario totally forgot about this one :(

@AndyScherzinger
Copy link
Member

I tested it and it works

@mario
Copy link
Contributor

mario commented Jun 15, 2018

👍

Approved with PullApprove

@AndyScherzinger AndyScherzinger added this to the NC lib 1.0.43 milestone Jun 15, 2018
@AndyScherzinger AndyScherzinger merged commit 060285b into master Jun 15, 2018
@AndyScherzinger AndyScherzinger deleted the fileVersioning branch June 15, 2018 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants