Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fix/some bugs #171

Merged
merged 4 commits into from
Feb 3, 2017
Merged

Bug fix/some bugs #171

merged 4 commits into from
Feb 3, 2017

Conversation

mgmart
Copy link
Member

@mgmart mgmart commented Feb 3, 2017

WebDAVTransferManager is now in Swift
Only Core Data deleted attribute remains as warning
Side-effects of #167 and #169 should be tackled completely

http redirection is not implemented and tested because I do miss a test-environment for that. Nevertheless if there are no other errors I would propose this for beta-test (with the request to give immediate feedback 😉 )

This eliminates at least one warning
Switched off fullscreen, this fixes MobileOrg#168
Triggered by MobileOrg#169
Also added status code. New Dropbox API does not have http status
codes anymore. This could lead to some misbehaviour of state machine.
authentication challenge logic was not handled correctly
http redirection still not handled
error handling was missing in new webdavtransfermanager
@mgmart mgmart added this to the v1.7.2 (bug-fixing) milestone Feb 3, 2017
@@ -753,6 +753,19 @@ - (void)transferComplete:(TransferContext*)context {

- (void)transferFailed:(TransferContext*)context {
//NSLog(@"Failed %@ with code %d", [context remoteUrl], [context statusCode]);

switch ([context statusCode] ) {
Copy link
Member

Choose a reason for hiding this comment

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

very nice

NSURLCredential *credential = [NSURLCredential credentialForTrust:challenge.protectionSpace.serverTrust];
[challenge.sender useCredential:credential forAuthenticationChallenge:challenge];

UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"SSL Handshake" message:@"Server Ceritificate could not be validated.\nWould you like to continiue?" preferredStyle:UIAlertControllerStyleAlert];
Copy link
Member

Choose a reason for hiding this comment

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

much clearer

@webframp webframp merged commit fadb072 into MobileOrg:develop Feb 3, 2017
@mgmart mgmart deleted the bug-fix/someBugs branch July 15, 2017 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants