Title: Webmachine::QuotedString#quote fails when trying to quote `request.if_match` when it's nil · Issue #201 · webmachine/webmachine-ruby · GitHub
Open Graph Title: Webmachine::QuotedString#quote fails when trying to quote `request.if_match` when it's nil · Issue #201 · webmachine/webmachine-ruby
X Title: Webmachine::QuotedString#quote fails when trying to quote `request.if_match` when it's nil · Issue #201 · webmachine/webmachine-ruby
Description: My resource ends up failing in state g9 because request.if_match is nil. This can be fixed by changing: # Escapes quotes within a quoted string. def escape_quotes(str) str.gsub(/"/, '\\"') end # Unescapes quotes within a quoted string de...
Open Graph Description: My resource ends up failing in state g9 because request.if_match is nil. This can be fixed by changing: # Escapes quotes within a quoted string. def escape_quotes(str) str.gsub(/"/, '\\"') end # Un...
X Description: My resource ends up failing in state g9 because request.if_match is nil. This can be fixed by changing: # Escapes quotes within a quoted string. def escape_quotes(str) str.gsub(/"/, '\\&qu...
Opengraph URL: https://github.com/webmachine/webmachine-ruby/issues/201
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Webmachine::QuotedString#quote fails when trying to quote `request.if_match` when it's nil","articleBody":"My resource ends up failing in state g9 because `request.if_match` is nil. This can be fixed by changing:\n\n``` ruby\n # Escapes quotes within a quoted string.\n def escape_quotes(str)\n str.gsub(/\"/, '\\\\\"')\n end\n\n # Unescapes quotes within a quoted string\n def unescape_quotes(str)\n str.gsub(%r{\\\\}, '')\n end\n```\n\nwith\n\n``` ruby\n # Escapes quotes within a quoted string.\n def escape_quotes(str)\n String(str).gsub(/\"/, '\\\\\"')\n end\n\n # Unescapes quotes within a quoted string\n def unescape_quotes(str)\n String(str).gsub(%r{\\\\}, '')\n end\n```\n\nBut I'm not totally confident I'm doing everything correctly. Totally willing to make the change, but I want to confirm that this is, indeed, unexpected behavior. At the very least, this seems to cause a 415 to be returned, even though I suspect it should return something in the 500-series (since this is a server-side problem).\n","author":{"url":"https://github.com/jfredett","@type":"Person","name":"jfredett"},"datePublished":"2014-10-30T15:24:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/201/webmachine-ruby/issues/201"}
| 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:f73a5ed5-efc3-2c3f-54b9-200d00fabaea |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BD78:3BBB5A:358348:4897ED:6A4D8EBA |
| html-safe-nonce | 35ac199a09511e3f49a9f6b76d634ee5501c6288323dc44cf851c5e1225883e2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDc4OjNCQkI1QTozNTgzNDg6NDg5N0VEOjZBNEQ4RUJBIiwidmlzaXRvcl9pZCI6IjkxNzY1Nzk2NDU1NTM2MTA0MjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | bd29e6eec126a17fa8c4d50a43f856950d1c3829e74ba4b8b0e816185321f694 |
| hovercard-subject-tag | issue:47283514 |
| 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/webmachine/webmachine-ruby/201/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2d9886d7e23523bf8dd59002bd0f9ba9c93fd531f8bef1f2e3aabafd4b15629c/webmachine/webmachine-ruby/issues/201 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2d9886d7e23523bf8dd59002bd0f9ba9c93fd531f8bef1f2e3aabafd4b15629c/webmachine/webmachine-ruby/issues/201 |
| og:image:alt | My resource ends up failing in state g9 because request.if_match is nil. This can be fixed by changing: # Escapes quotes within a quoted string. def escape_quotes(str) str.gsub(/"/, '\\"') end # Un... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jfredett |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9f8758a3953dfe943439713a6fa4f90d542a3431f10e861ca03dd7f39009f320 |
| turbo-cache-control | no-preview |
| go-import | github.com/webmachine/webmachine-ruby git https://github.com/webmachine/webmachine-ruby.git |
| octolytics-dimension-user_id | 12663056 |
| octolytics-dimension-user_login | webmachine |
| octolytics-dimension-repository_id | 1838008 |
| octolytics-dimension-repository_nwo | webmachine/webmachine-ruby |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1838008 |
| octolytics-dimension-repository_network_root_nwo | webmachine/webmachine-ruby |
| 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 | bffd5484f01713a661b03469b77678f72b6574ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width