OfficeDev / Office-365-SDK-for-Android

Microsoft Services SDKs for Android produced by MS Open Tech.
https://dev.office.com/android
Other
224 stars 74 forks source link

getOperations() on OutlookClient returns null #95

Closed FabianFrank closed 9 years ago

FabianFrank commented 9 years ago

I have OutlookClient outlookClient = newOutlookClient (OUTLOOK_BASE_URL,myADALDependencyResolver); and outlookClient.getMe().getOperations returns null when called. The samples look like getMe().getOperations().sendMail() is the correct chain of calls, however. There isn't anything in the logs that would indicate what's wrong.

Receiving lists of folders and lists of messages works fine, though. I have all email permissions enabled for my app.

FabianFrank commented 9 years ago

I am using the following dependencies:

    compile 'com.microsoft.services:outlook-services:1.0.0'
    compile 'com.microsoft.services.orc:orc-android:1.0.0@aar'
    compile 'com.microsoft.aad:adal:1.1.3@aar'
marcote commented 9 years ago

Strange, I'll take a look next Monday.

FabianFrank commented 9 years ago

Thanks @marcote, any ideas?

marcote commented 9 years ago

@FabianFrank I'll be reviewing this today. I'll let you know what I find.

marcote commented 9 years ago

Cannot reproduce the error. I tried both building the source code and the published aar without luck. Also I tried running our end2end test app : https://github.com/OfficeDev/Office-365-SDK-for-Android/tree/master/tests/e2e-test-app

Specifically: https://github.com/OfficeDev/Office-365-SDK-for-Android/blob/master/tests/e2e-test-app/app/src/main/java/com/microsoft/office365/test/integration/tests/ExchangeTests.java#L816

These are the artifacts used:

compile 'com.microsoft.services:outlook-services:1.0.0'
compile(group: 'com.microsoft.services.orc', name: 'orc-android', version: '1.0.0', ext: 'aar')

I would like to see, if possible, a code snippet that reproduces the error.

marcote commented 9 years ago

I cannot reproduce this. Directory Services may need an special configuration, but the rest of the artifacts works fine. If you can reproduce the error, please re-open the issue.