Title: Bug in deltaLink regex pattern to get deltaToken · Issue #196 · microsoftgraph/msgraph-sdk-java-core · GitHub
Open Graph Title: Bug in deltaLink regex pattern to get deltaToken · Issue #196 · microsoftgraph/msgraph-sdk-java-core
X Title: Bug in deltaLink regex pattern to get deltaToken · Issue #196 · microsoftgraph/msgraph-sdk-java-core
Description: Expected behavior A request to the delta API with non-empty deltaLink provided should return users modified as per the deltaToken in the link. UserDeltaCollectionRequest.deltaLink(deltaLink) should add the deltaToken to the request. Base...
Open Graph Description: Expected behavior A request to the delta API with non-empty deltaLink provided should return users modified as per the deltaToken in the link. UserDeltaCollectionRequest.deltaLink(deltaLink) should...
X Description: Expected behavior A request to the delta API with non-empty deltaLink provided should return users modified as per the deltaToken in the link. UserDeltaCollectionRequest.deltaLink(deltaLink) should...
Opengraph URL: https://github.com/microsoftgraph/msgraph-sdk-java-core/issues/196
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bug in deltaLink regex pattern to get deltaToken","articleBody":"### Expected behavior\r\nA request to the delta API with non-empty deltaLink provided should return users modified as per the deltaToken in the link. \r\n\r\nUserDeltaCollectionRequest.deltaLink(deltaLink) should add the deltaToken to the request.\r\n\r\nBaseDeltaCollectionRequest.getDeltaTokenFromLink(deltaLink) should return `abc` from the string `https://graph.microsoft.com/v1.0/users/microsoft.graph.delta?$deltatoken=abc`\r\n\r\n\r\n\r\n### Actual behavior\r\nUserDeltaCollectionRequest.deltaLink(deltaLink) adds an empty string, because BaseDeltaCollectionRequest.getDeltaTokenFromLink(deltaLink) returns an empty string.\r\n\r\n\r\n\r\n### Steps to reproduce the behavior\r\nUse the delta API with non-empty `deltaLink` provided. \r\n\r\n\r\n### Likely cause and fix.\r\nThere seems to be an error in the regex pattern used in the `BaseDeltaCollectionRequest.getDeltaTokenFromLink(deltaLink)` function.\r\nCurrent pattern is: \"(?i)(?>\\\\$?delta)?token=['\\\"]?([\\\\w-\\\\.]+)\"\r\nThe following pattern should work: \"(?i)(?>\\\\$?delta)?token=['\\\"]?([\\\\w\\\\-\\\\.]+)\", where the missing escape before \"-\" is added.\r\n\r\n\r\n\r\n \r\n[AB#9300](https://microsoftgraph.visualstudio.com/0985d294-5762-4bc2-a565-161ef349ca3e/_workitems/edit/9300)","author":{"url":"https://github.com/hreiten","@type":"Person","name":"hreiten"},"datePublished":"2021-05-06T07:57:26Z","url":"https://github.com/microsoftgraph/msgraph-sdk-java-core/issues/196"}
| 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:0d1b9282-af13-2e7f-4b43-f043f8606f0c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AD6E:3B27CE:D9CD88:11A66D5:6B052358 |
| html-safe-nonce | c146b8036dc40cc695672c183a39ba9072a0b9852ad7a8a628015dcaf8f52c32 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDZFOjNCMjdDRTpEOUNEODg6MTFBNjZENTo2QjA1MjM1OCIsInZpc2l0b3JfaWQiOiI3MzY5MjIzNjcwNDQwNzMxNDgwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c5a72322ffddaaec806ee02e9c802d64a822ba11ee976e7f45da691c73303c0e |
| hovercard-subject-tag | issue:877197236 |
| 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-core/196/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8d7552036ca23684f48d729f43a47dec48eaca120106fa8165e4d0adc82b7a86/microsoftgraph/msgraph-sdk-java-core/issues/196 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8d7552036ca23684f48d729f43a47dec48eaca120106fa8165e4d0adc82b7a86/microsoftgraph/msgraph-sdk-java-core/issues/196 |
| og:image:alt | Expected behavior A request to the delta API with non-empty deltaLink provided should return users modified as per the deltaToken in the link. UserDeltaCollectionRequest.deltaLink(deltaLink) should... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hreiten |
| hostname | github.com |
| expected-hostname | github.com |
| None | 854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoftgraph/msgraph-sdk-java-core git https://github.com/microsoftgraph/msgraph-sdk-java-core.git |
| octolytics-dimension-user_id | 17304259 |
| octolytics-dimension-user_login | microsoftgraph |
| octolytics-dimension-repository_id | 154607328 |
| octolytics-dimension-repository_nwo | microsoftgraph/msgraph-sdk-java-core |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 154607328 |
| octolytics-dimension-repository_network_root_nwo | microsoftgraph/msgraph-sdk-java-core |
| 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