Title: JVM profiler rejects traces dirs whose path contains a dot, so tests fail in dotted checkouts · Issue #6455 · getsentry/sentry-java · GitHub
Open Graph Title: JVM profiler rejects traces dirs whose path contains a dot, so tests fail in dotted checkouts · Issue #6455 · getsentry/sentry-java
X Title: JVM profiler rejects traces dirs whose path contains a dot, so tests fail in dotted checkouts · Issue #6455 · getsentry/sentry-java
Description: Problem JavaContinuousProfiler (sentry-async-profiler) refuses any profiling traces directory whose path contains one of 26 characters, . among them. That has two effects: Tests: JavaContinuousProfilerTest's fixture uses a relative tmp c...
Open Graph Description: Problem JavaContinuousProfiler (sentry-async-profiler) refuses any profiling traces directory whose path contains one of 26 characters, . among them. That has two effects: Tests: JavaContinuousProf...
X Description: Problem JavaContinuousProfiler (sentry-async-profiler) refuses any profiling traces directory whose path contains one of 26 characters, . among them. That has two effects: Tests: JavaContinuousProf...
Opengraph URL: https://github.com/getsentry/sentry-java/issues/6455
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"JVM profiler rejects traces dirs whose path contains a dot, so tests fail in dotted checkouts","articleBody":"## Problem\n\n`JavaContinuousProfiler` (`sentry-async-profiler`) refuses any profiling traces directory whose path contains one of 26 characters, `.` among them. That has two effects:\n\n* **Tests:** `JavaContinuousProfilerTest`'s fixture uses a relative `tmp` cache dir that resolves to an absolute path. In any checkout whose path has a dot, such as a worktree under `.claude/worktrees/` or a `.workflow` directory, 16 of the 23 tests fail. CI's checkout path has no dot, so CI never sees it.\n* **Users:** a cache dir like `/home/app/.sentry` or `/opt/my.app/cache` logs \"Disabling profiling because traces directory path contains invalid character: .\". Because `init()` returned `true` on every call after the first, only the first start was refused, so users lose the first profile chunk and see a misleading warning.\n\n## Cause\n\nThe blocklist was added in b065ef1587 (\"re-add asyncprofiler classes, cr changes\", #4556), about an hour after Seer flagged the async-profiler command string as a possible injection risk. It reads like a list of shell metacharacters, but no shell runs the command. async-profiler 4.4's `Arguments::parse` treats only two characters in the path specially:\n\n* `,` separates arguments (`start,jfr,...,file=\u003cpath>`);\n* `%` starts a file-name pattern (`%p`, `%t`, `%n{MAX}`, `%{ENV}`).\n\nIt splits `key=value` at the first `=`, so `=` is safe too.\n\n## Fix\n\ngetsentry/sentry-java#6334 rejects only `,` and `%`, and makes a rejected config stay rejected, as `AndroidContinuousProfiler` does.","author":{"url":"https://github.com/runningcode","@type":"Person","name":"runningcode"},"datePublished":"2026-11-03T14:40:09Z","url":"https://github.com/getsentry/sentry-java/issues/6455"}
| 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:ff3f1d5f-8524-2cd8-79cb-06685e331656 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BF2A:271798:26B2BD:35812F:6B04688C |
| html-safe-nonce | 27adef7ff4ba6f224a85b8c058f12faf197923e9f1ad4d0369a7508b135fa60a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjJBOjI3MTc5ODoyNkIyQkQ6MzU4MTJGOjZCMDQ2ODhDIiwidmlzaXRvcl9pZCI6IjkwODM4NjU5MTMxMjM2OTQ3MzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c3192adca431b689d77992a24a7643f993483abbc9059828388b3431f70fbbfd |
| hovercard-subject-tag | issue:6184835311 |
| 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/getsentry/sentry-java/6455/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ab60077cae0fc9959bf1c3edbe458c9b14eec34f750740ca07690d44e6c74ac9/getsentry/sentry-java/issues/6455 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ab60077cae0fc9959bf1c3edbe458c9b14eec34f750740ca07690d44e6c74ac9/getsentry/sentry-java/issues/6455 |
| og:image:alt | Problem JavaContinuousProfiler (sentry-async-profiler) refuses any profiling traces directory whose path contains one of 26 characters, . among them. That has two effects: Tests: JavaContinuousProf... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | runningcode |
| hostname | github.com |
| expected-hostname | github.com |
| None | 83e4c0e58c5162177f3c161c5fbad38527ae04c11ac14980f9f9d85ae2027b1f |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-java git https://github.com/getsentry/sentry-java.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3368190 |
| octolytics-dimension-repository_nwo | getsentry/sentry-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3368190 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-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 | ca4d07a7cef4e4b75f821dc25e7300d80c1450a9 |
| 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