Title: graphServiceClient.users(userId).photo().getContent().buildRequest().put(imageBytes) throws java.lang.ClassCastException · Issue #176 · microsoftgraph/msgraph-sdk-java · GitHub
Open Graph Title: graphServiceClient.users(userId).photo().getContent().buildRequest().put(imageBytes) throws java.lang.ClassCastException · Issue #176 · microsoftgraph/msgraph-sdk-java
X Title: graphServiceClient.users(userId).photo().getContent().buildRequest().put(imageBytes) throws java.lang.ClassCastException · Issue #176 · microsoftgraph/msgraph-sdk-java
Description: Expected behavior graphServiceClient.users(userId).photo().getContent().buildRequest().put(imageBytes) should not throw an invalid cast exception from BufferedInputStream to ProfilePhoto Actual behavior java.lang.ClassCastException: java...
Open Graph Description: Expected behavior graphServiceClient.users(userId).photo().getContent().buildRequest().put(imageBytes) should not throw an invalid cast exception from BufferedInputStream to ProfilePhoto Actual beh...
X Description: Expected behavior graphServiceClient.users(userId).photo().getContent().buildRequest().put(imageBytes) should not throw an invalid cast exception from BufferedInputStream to ProfilePhoto Actual beh...
Opengraph URL: https://github.com/microsoftgraph/msgraph-sdk-java/issues/176
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"graphServiceClient.users(userId).photo().getContent().buildRequest().put(imageBytes) throws java.lang.ClassCastException","articleBody":"### Expected behavior\r\n\r\ngraphServiceClient.users(userId).photo().getContent().buildRequest().put(imageBytes) should not throw an invalid cast exception from BufferedInputStream to ProfilePhoto\r\n\r\n### Actual behavior\r\n\r\njava.lang.ClassCastException: java.io.BufferedInputStream cannot be cast to com.microsoft.graph.models.extensions.ProfilePhoto\r\n\r\n### Steps to reproduce the behavior\r\n\r\ngraphServiceClient.users(userId).photo().getContent().buildRequest().put(imageBytes)\r\n\r\n\r\n","author":{"url":"https://github.com/krisoblucki-okta","@type":"Person","name":"krisoblucki-okta"},"datePublished":"2018-12-11T00:58:44Z","url":"https://github.com/microsoftgraph/msgraph-sdk-java/issues/176"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:977459f6-9a5d-7287-0777-71a3500cafca |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B87E:9393C:159BC1D:1C1C6ED:6B0506EE |
| html-safe-nonce | b76f9930248cba382ba853514481579a9db2d597e9e27e64f23caefdd54ce212 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODdFOjkzOTNDOjE1OUJDMUQ6MUMxQzZFRDo2QjA1MDZFRSIsInZpc2l0b3JfaWQiOiI2NzUzMjcwNDU3NjI3Mzc5NDM4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 6b95bbb67f49377b673f92c60a953a0ac2177bcc2f1e4a91b3e72e2272e5dd06 |
| hovercard-subject-tag | issue:389551979 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoftgraph/msgraph-sdk-java/176/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cd0dd1eff23d3ec85ff917c87f61ac6122a2e5891ea0bb998bc3267b0c4d640f/microsoftgraph/msgraph-sdk-java/issues/176 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cd0dd1eff23d3ec85ff917c87f61ac6122a2e5891ea0bb998bc3267b0c4d640f/microsoftgraph/msgraph-sdk-java/issues/176 |
| og:image:alt | Expected behavior graphServiceClient.users(userId).photo().getContent().buildRequest().put(imageBytes) should not throw an invalid cast exception from BufferedInputStream to ProfilePhoto Actual beh... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | krisoblucki-okta |
| hostname | github.com |
| expected-hostname | github.com |
| None | 854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoftgraph/msgraph-sdk-java git https://github.com/microsoftgraph/msgraph-sdk-java.git |
| octolytics-dimension-user_id | 17304259 |
| octolytics-dimension-user_login | microsoftgraph |
| octolytics-dimension-repository_id | 103300409 |
| octolytics-dimension-repository_nwo | microsoftgraph/msgraph-sdk-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 103300409 |
| octolytics-dimension-repository_network_root_nwo | microsoftgraph/msgraph-sdk-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 220e980097d94ce616d5d11fbd5316d208e3fc93 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width