Title: Strings passed to .itemWithPath are not URL encoded · Issue #259 · microsoftgraph/msgraph-sdk-java · GitHub
Open Graph Title: Strings passed to .itemWithPath are not URL encoded · Issue #259 · microsoftgraph/msgraph-sdk-java
X Title: Strings passed to .itemWithPath are not URL encoded · Issue #259 · microsoftgraph/msgraph-sdk-java
Description: Expected behavior When a file name/path is passed to IGraphServiceClient.itemWithPath, the file name/path should be properly URL encoded by IGraphServiceClient when the input string is concatenated to the URL generated by IGraphServiceCl...
Open Graph Description: Expected behavior When a file name/path is passed to IGraphServiceClient.itemWithPath, the file name/path should be properly URL encoded by IGraphServiceClient when the input string is concatenated...
X Description: Expected behavior When a file name/path is passed to IGraphServiceClient.itemWithPath, the file name/path should be properly URL encoded by IGraphServiceClient when the input string is concatenated...
Opengraph URL: https://github.com/microsoftgraph/msgraph-sdk-java/issues/259
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Strings passed to .itemWithPath are not URL encoded","articleBody":"### Expected behavior\r\nWhen a file name/path is passed to IGraphServiceClient.itemWithPath, the file name/path should be properly URL encoded by IGraphServiceClient when the input string is concatenated to the URL generated by IGraphServiceClient.\r\n\r\n### Actual behavior\r\nPassing a valid file name/path to .itemWIthPath (e.g., \"iText in Action 2nd ed - B. Lowagie (Manning, 2011) WW.pdf\") will result in a java.net.URISyntaxException, due to an illegal character (in this case, the spaces) when the request is posted.\r\n\r\n### Steps to reproduce the behavior\r\nInvoke the following:\r\n```\r\nclient\r\n .users(oneDriveUserId)\r\n .drive()\r\n .root()\r\n .itemWithPath(\"iText in Action 2nd ed - B. Lowagie (Manning, 2011) WW.pdf\")\r\n .createUploadSession(new DriveItemUploadableProperties())\r\n .buildRequest()\r\n .post();\r\n```\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/etovian","@type":"Person","name":"etovian"},"datePublished":"2019-06-10T14:13:28Z","url":"https://github.com/microsoftgraph/msgraph-sdk-java/issues/259"}
| 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:6e9c19e9-2ef2-0b3b-50b1-d2f0eca8a670 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8C64:6FB4F:159222:1CE396:6B050EF0 |
| html-safe-nonce | 4bf19a2f9adc9cdc79fbae2e7be15606acde82d0ae0c34e5d134f63cf1f143d8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzY0OjZGQjRGOjE1OTIyMjoxQ0UzOTY6NkIwNTBFRjAiLCJ2aXNpdG9yX2lkIjoiNjg2NTM4NTQ0NjQwMzU0Mjc2OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 447ed0af843c0f5361160dafc0814ee98809ca9c136c617962d049edb9fc27a2 |
| hovercard-subject-tag | issue:454191874 |
| 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/259/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ce886a7897c312e9499210caa414d71fd9da713328726162c6c08d975a5a451d/microsoftgraph/msgraph-sdk-java/issues/259 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ce886a7897c312e9499210caa414d71fd9da713328726162c6c08d975a5a451d/microsoftgraph/msgraph-sdk-java/issues/259 |
| og:image:alt | Expected behavior When a file name/path is passed to IGraphServiceClient.itemWithPath, the file name/path should be properly URL encoded by IGraphServiceClient when the input string is concatenated... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | etovian |
| 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