Skip to content

Add support for file versions#150

Merged
AndyScherzinger merged 3 commits into
masterfrom
fileVersioning
Jun 15, 2018
Merged

Add support for file versions#150
AndyScherzinger merged 3 commits into
masterfrom
fileVersioning

Conversation

@tobiasKaminsky

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

AndyScherzinger commented Jun 4, 2018

Copy link
Copy Markdown
Member

👍 just some minor comments

Approved with PullApprove

@tobiasKaminsky

Copy link
Copy Markdown
Member Author

Changed & rebased

@AndyScherzinger

Copy link
Copy Markdown
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
Copy Markdown
Member

Sorry @mario totally forgot about this one :(

@AndyScherzinger

Copy link
Copy Markdown
Member

I tested it and it works

@mario

mario commented Jun 15, 2018

Copy link
Copy Markdown
Contributor

👍

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.

3 participants