instance_id string | set string | key_version string | defect_id string | title string | statement string | kind string | severity string | sites list | evidence string | counts_if string | provenance_hunt bool | provenance_hunt_refs list | provenance_dataset_refs list | provenance_reviewer_comments list | provenance_added_in string | benchmark_limitation string | bot_derived_reference string | repo string | head_commit string |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
browser-use__browser-use@aab7b3b | fresh10 | 1 | D1 | Hard-coded channel='chrome' makes the default launch require a system Google Chrome - agents fail to start after the documented `playwright install chromium` | _setup_builtin_browser - the path for every Browser()/Agent() without cdp_url, wss_url or browser_binary_path - now always calls browser_class.launch(..., channel='chrome', ...). With the default browser_class 'chromium' this selects the branded Google Chrome stable install instead of the Playwright-managed Chromium. O... | compat | high | [
{
"path": "browser_use/browser/browser.py",
"from_line": 281,
"to_line": 288,
"role": "cause"
},
{
"path": "browser_use/browser/browser.py",
"from_line": 302,
"to_line": 305,
"role": "other-site"
},
{
"path": "README.md",
"from_line": 31,
"to_line": 34,
"role"... | head/browser_use/browser/browser.py:281-288 `browser = await browser_class.launch(headless=self.config.headless, channel='chrome', args=args[self.config.browser_class], ...)`; :91 `browser_class: Literal['chromium', 'firefox', 'webkit'] = 'chromium'`; :302-305 route every config without browser_binary_path to `_setup_b... | Counts if the comment says the unconditional channel='chrome' requires Google Chrome (not the Playwright/bundled Chromium the README installs), so the default launch fails where Chrome is not installed. A comment only about firefox/webkit counts for D3, not here; a generic 'patchright may behave differently' remark doe... | true | [
"H-D1"
] | [] | [
"C4",
"C7"
] | null | null | null | browser-use/browser-use | aab7b3bb54e2b15ee3b32ad7de74c91fc8b22f52 |
browser-use__browser-use@aab7b3b | fresh10 | 1 | D2 | Headful (default) contexts no longer pass no_viewport=True, so a fixed 1280x720 emulated viewport sits inside the screen-sized window | Base created every new context with no_viewport=True, so the page viewport tracked the real window (launched with --window-size=<screen resolution> in headful mode). Head sets viewport kwargs only when browser.config.headless is true; in headful mode (the default, headless=False) neither viewport nor no_viewport is pas... | bug | medium | [
{
"path": "browser_use/browser/context.py",
"from_line": 413,
"to_line": 421,
"role": "cause"
},
{
"path": "browser_use/browser/browser.py",
"from_line": 244,
"to_line": 255,
"role": "other-site"
}
] | head/browser_use/browser/context.py:413-416 `kwargs = {}` / `if self.browser.config.headless:` / `kwargs['viewport'] = self.config.browser_window_size` / `kwargs['no_viewport'] = False`; :420-421 `context = await browser.new_context(**kwargs, ...)` - nothing viewport-related in the headful branch. Base: `context = awai... | Must tie the regression to headful mode: no no_viewport/viewport is passed when headless=False, so the default fixed viewport is used / the viewport no longer matches the window. Near-miss that must NOT count on its own: 'the no_viewport config field is ignored' (it was ignored in base too) or remarks about the headles... | true | [
"H-D2"
] | [] | [
"C3"
] | null | null | null | browser-use/browser-use | aab7b3bb54e2b15ee3b32ad7de74c91fc8b22f52 |
browser-use__browser-use@aab7b3b | fresh10 | 1 | D3 | channel='chrome' is also passed to the firefox/webkit launchers, which reject it - browser_class 'firefox'/'webkit' can no longer launch | browser_class still accepts 'firefox' and 'webkit' and the args dict just above still carries per-engine arguments for them, but the same launch call now passes channel='chrome' to whichever BrowserType was selected. Playwright resolves the channel to the Chrome executable, whose browserName is chromium, and throws `Un... | bug | medium | [
{
"path": "browser_use/browser/browser.py",
"from_line": 281,
"to_line": 288,
"role": "cause"
},
{
"path": "browser_use/browser/browser.py",
"from_line": 264,
"to_line": 279,
"role": "other-site"
},
{
"path": "browser_use/browser/browser.py",
"from_line": 91,
"to_... | head/browser_use/browser/browser.py:91 `browser_class: Literal['chromium', 'firefox', 'webkit'] = 'chromium'`; :264 `browser_class = getattr(playwright, self.config.browser_class)`; :265-279 `args = {'chromium': ..., 'firefox': [... '-no-remote' ...], 'webkit': [... '--no-startup-window' ...]}`; :281-283 `browser_class... | Must say the hard-coded channel='chrome' is passed to (or invalid for) the firefox/webkit browser_class and breaks their launch. A comment only about Chrome needing to be installed counts for D1, not here. | true | [
"H-D1"
] | [
"A1"
] | [
"C2",
"C4"
] | null | null | null | browser-use/browser-use | aab7b3bb54e2b15ee3b32ad7de74c91fc8b22f52 |
browser-use__browser-use@aab7b3b | fresh10 | 1 | D4 | Agent.__init__ unconditionally overwrites new_context_config.disable_security with the browser-level flag, clobbering an explicit context setting and mutating the caller's Browser | Agent now assigns self.browser.config.new_context_config.disable_security = self.browser.config.disable_security on every construction. A caller who set only the context-level flag (BrowserConfig default disable_security=False, new_context_config=BrowserContextConfig(disable_security=True)) - honoured by base - has it ... | contract | low | [
{
"path": "browser_use/agent/service.py",
"from_line": 260,
"to_line": 264,
"role": "cause"
},
{
"path": "browser_use/browser/context.py",
"from_line": 423,
"to_line": 423,
"role": "symptom"
}
] | head/browser_use/agent/service.py:260-261 `self.browser = browser or Browser()` / `self.browser.config.new_context_config.disable_security = self.browser.config.disable_security`; head/browser.py:98 `disable_security: bool = False`; head/context.py:144 context-level `disable_security: bool = False`; :423 `**({'bypass_c... | Must say the Agent line overrides/clobbers an explicitly set context-level disable_security (either direction) or mutates the injected/shared Browser config. A comment merely restating the line, praising the sync, or only asking for the flag to also flow through Browser.new_context() (see C6 exclusion) does not count. | true | [
"H-D4"
] | [] | [
"C5",
"C8"
] | null | null | null | browser-use/browser-use | aab7b3bb54e2b15ee3b32ad7de74c91fc8b22f52 |
browser-use__browser-use@aab7b3b | fresh10 | 1 | D5 | Dropping the attachShadow open-mode override hides elements inside closed shadow roots from the DOM extractor | The base init script wrapped Element.prototype.attachShadow to force mode 'open', which is what let buildDomTree.js descend into shadow trees via node.shadowRoot. The PR deletes that block together with the stealth overrides. For pages that create closed shadow roots, node.shadowRoot is now null, buildDomTree skips the... | bug | low | [
{
"path": "browser_use/browser/context.py",
"from_line": 447,
"to_line": 457,
"role": "cause"
},
{
"path": "browser_use/dom/buildDomTree.js",
"from_line": 976,
"to_line": 982,
"role": "symptom"
}
] | Base context.py:472-477 `const originalAttachShadow = Element.prototype.attachShadow; Element.prototype.attachShadow = function attachShadow(options) { return originalAttachShadow.call(this, { ...options, mode: "open" }); };` - removed; head context.py:447-457 keeps only the permissions.query patch. head/browser_use/do... | Must mention the removed attachShadow/force-open override and its effect on closed shadow DOM extraction/interaction. Remarks only about losing webdriver/plugins/languages/window.chrome spoofing do not count (deliberately delegated to patchright). | true | [
"H-D3"
] | [] | [
"C1",
"C9"
] | null | null | null | browser-use/browser-use | aab7b3bb54e2b15ee3b32ad7de74c91fc8b22f52 |
vllm-project__vllm@134705b | fresh10 | 1 | D1 | Multimodal profiling passes a dict to the lru_cache'd warning_once, raising TypeError: unhashable type 'dict' and aborting V0 profiling/engine startup instead of warning | _print_warning_once is decorated with functools.lru_cache, which hashes every positional argument to build its cache key. Both converted warnings in MultiModalProfiler (encoder: get_encoder_dummy_data; decoder: get_decoder_dummy_data) pass self._get_mm_num_tokens(mm_inputs), which returns a dict {modality: num_tokens}.... | bug | high | [
{
"path": "vllm/multimodal/profiling.py",
"from_line": 215,
"to_line": 225,
"role": "cause"
},
{
"path": "vllm/multimodal/profiling.py",
"from_line": 240,
"to_line": 250,
"role": "cause"
},
{
"path": "vllm/multimodal/profiling.py",
"from_line": 185,
"to_line": 194... | head/vllm/multimodal/profiling.py:185-194 `def _get_mm_num_tokens(...) -> Mapping[str, int]: ... return { modality: sum(...) for modality, placeholders in placeholders_by_modality.items() }`; :215-225 `elif total_len > seq_len and not envs.VLLM_USE_V1: logger.warning_once("...%d...%d...%s...", seq_len, total_len, self.... | Must identify that an unhashable value (the dict from _get_mm_num_tokens) reaches the lru_cache-backed warning_once and raises TypeError instead of logging. Either profiling.py site counts. A logger.py comment counts only if it states concretely that lru_cache hashes the *args so a dict/list argument raises TypeError (... | true | [
"H-D1"
] | [
"A8"
] | [
"C1",
"C4",
"C5",
"C7",
"C8"
] | null | null | null | vllm-project/vllm | 134705b1474ddcfac234a0a01313874f7c8b59bc |
langflow-ai__langflow@6239290 | fresh10 | 1 | D1 | Template mode formats a Data input with only {text}, so the advertised Data key placeholders raise KeyError | For a Data input, parse_combined_text calls template.format(text=data.get_text()), so the only placeholder a template can use is {text}. The Template input's help text promises 'key values for Data' (with the example `Name: {Name}, Age: {Age}`), and the sibling ParseData helper formats with every key in data.data. Any ... | bug | high | [
{
"path": "src/backend/base/langflow/components/processing/parser.py",
"from_line": 129,
"to_line": 131,
"role": "cause"
},
{
"path": "src/backend/base/langflow/components/processing/parser.py",
"from_line": 32,
"to_line": 44,
"role": "other-site"
}
] | head/src/backend/base/langflow/components/processing/parser.py:130 `formatted_text = template.format(text=data.get_text())` - only the `text` kwarg is supplied. parser.py:36-38 info: 'Use variables within curly brackets to extract column values for DataFrames or key values for Data.' schema/data.py `get_text` returns `... | Must say that for Data inputs only `text=data.get_text()` is passed to format, so other Data fields/keys cannot be used (KeyError), e.g. suggest format(**data.data)/format_map. A comment only about KeyError being unhandled for a missing DataFrame column does NOT count; a comment about Stringify returning empty for Data... | true | [
"H-D1"
] | [
"A4"
] | [
"C9",
"C11"
] | null | null | null | langflow-ai/langflow | 623929065f9ae45792afce2eb3185dad353df78e |
langflow-ai__langflow@6239290 | fresh10 | 1 | D2 | Stringify is gated behind _clean_args' type checks, so list inputs (e.g. SplitText 'Chunks' list[Data]) fail and convert_to_string's list/str handling is dead | parse_combined_text calls self._clean_args() unconditionally before checking `if stringify`. _clean_args raises 'List of Data objects is not supported.' for a list of Data and 'Unsupported input type' for str and other values. convert_to_string/_validate_input/_safe_convert were written to accept Message | str | list a... | bug | medium | [
{
"path": "src/backend/base/langflow/components/processing/parser.py",
"from_line": 116,
"to_line": 121,
"role": "cause"
},
{
"path": "src/backend/base/langflow/components/processing/parser.py",
"from_line": 93,
"to_line": 114,
"role": "other-site"
},
{
"path": "src/backe... | head/.../parser.py:118 `df, data, template, sep, stringify = self._clean_args()` precedes parser.py:120 `if stringify: return self.convert_to_string()`. parser.py:96-98 raises for `isinstance(input_data, list) and all(isinstance(item, Data) ...)`; parser.py:112-114 raises for everything else (incl. str). Yet parser.py:... | Must identify that the stringify branch runs after (and is blocked by) _clean_args validation / that _validate_input+convert_to_string accept list (or str) inputs that _clean_args rejects, so they can never be stringified. Merely saying 'lists of Data are not supported' as a feature limitation, without tying it to the ... | true | [
"H-D2"
] | [
"A2"
] | [
"C1"
] | null | null | null | langflow-ai/langflow | 623929065f9ae45792afce2eb3185dad353df78e |
langflow-ai__langflow@6239290 | fresh10 | 1 | D3 | Stringify of a Data object without a 'text' key silently returns an empty message, losing its content | _safe_convert returns data.get_text() for Data. Data.get_text() falls back to default_value, which is '' (not None), so the `if data.get_text() is None` guard never fires for an ordinary Data, and any Data whose content lives under other keys (e.g. Data(data={'name': 'Alice'}), API Request results, CreateData output) s... | bug | medium | [
{
"path": "src/backend/base/langflow/components/processing/parser.py",
"from_line": 153,
"to_line": 157,
"role": "cause"
}
] | head/.../parser.py:153-157 `if isinstance(data, Data): if data.get_text() is None: raise ValueError("Empty Data object") ... return data.get_text()`; schema/data.py `default_value: str | None = ""` and `get_text` returns `self.data.get(self.text_key, self.default_value)`. Path: stringify=True, input Data(data={'name': ... | Must say stringifying a Data uses only its text field, so a Data without text yields empty output (or that the None guard is ineffective because default_value is ''). Template-mode {text}-only formatting is D1, not this. | true | [
"H-D3"
] | [] | [
"C2",
"C8"
] | null | null | null | langflow-ai/langflow | 623929065f9ae45792afce2eb3185dad353df78e |
langflow-ai__langflow@6239290 | fresh10 | 1 | D4 | Stringify renders DataFrames to Markdown without escaping '|' or in-cell newlines, corrupting the table | _safe_convert calls data.to_markdown(index=False) directly. The ChatOutput converter this code was copied from escapes pipe characters and turns in-cell newlines into <br/> before to_markdown because tabulate's pipe format otherwise breaks: a cell containing '\n' is rendered as extra physical table rows (one record app... | bug | low | [
{
"path": "src/backend/base/langflow/components/processing/parser.py",
"from_line": 158,
"to_line": 166,
"role": "cause"
},
{
"path": "src/backend/base/langflow/components/outputs/chat.py",
"from_line": 199,
"to_line": 207,
"role": "other-site"
}
] | head/.../parser.py:165 `data = data.replace(r"\n+", "\n", regex=True)` then parser.py:166 `return data.to_markdown(index=False)` with no escaping; components/outputs/chat.py:200-205 `processed_data = data.replace(r"\|", r"\\|", regex=True)` and `.map(lambda x: str(x).replace("\n", "<br/>") ...)` before to_markdown. The... | Must mention unescaped pipes and/or embedded newlines breaking the Markdown table in stringify mode. Generic 'the clean_data regexes are odd' comments do not count; the whitespace-row ordering issue is D6. | true | [
"H-D4"
] | [] | [
"C5",
"C6"
] | null | null | null | langflow-ai/langflow | 623929065f9ae45792afce2eb3185dad353df78e |
langflow-ai__langflow@6239290 | fresh10 | 1 | D5 | 'Clean Data' promises to clean Data objects but Data text is returned uncleaned | The dynamic Clean Data toggle is described as removing 'empty rows and lines in each cell of the DataFrame/ Data object', but _safe_convert applies the cleaning only in the DataFrame branch; the Data (and Message) branch returns get_text() verbatim regardless of clean_data. Stringifying Data(text='A\n\nB') with Clean D... | contract | low | [
{
"path": "src/backend/base/langflow/components/processing/parser.py",
"from_line": 153,
"to_line": 157,
"role": "cause"
},
{
"path": "src/backend/base/langflow/components/processing/parser.py",
"from_line": 76,
"to_line": 87,
"role": "other-site"
}
] | head/.../parser.py:79-82 info 'Enable to clean the data by removing empty rows and lines in each cell of the DataFrame/ Data object.'; parser.py:153-157 Data branch returns `data.get_text()` with no reference to clean_data; cleaning exists only at parser.py:159-165 under `isinstance(data, DataFrame)`. | Must say Clean Data has no effect on Data/Message text (only DataFrames are cleaned) despite the option's description. The PR test test_stringify_data_object only checks words are present, so it does not contradict this. | false | [] | [] | [
"C4"
] | null | null | null | langflow-ai/langflow | 623929065f9ae45792afce2eb3185dad353df78e |
langflow-ai__langflow@6239290 | fresh10 | 1 | D6 | Clean Data drops empty rows before normalising whitespace cells, so whitespace-only rows survive as blank table rows | In the DataFrame stringify branch, dropna(how='all') runs first and only removes rows whose cells are all NaN; the regex that turns whitespace-only cells into '' runs afterwards and nothing re-checks row emptiness. A row consisting of whitespace (or empty-string) cells therefore remains and renders as a blank Markdown ... | bug | low | [
{
"path": "src/backend/base/langflow/components/processing/parser.py",
"from_line": 159,
"to_line": 166,
"role": "cause"
}
] | head/.../parser.py:161 `data = data.dropna(how="all")` precedes parser.py:163 `data = data.replace(r"^\s*$", "", regex=True)`; no second dropna / emptiness filter before parser.py:166 `to_markdown`. Path: stringify=True, clean_data=True, DataFrame with a row of ' ' cells -> row kept -> blank table row. | Must say the empty-row removal happens before (or ignores) whitespace/empty-string normalisation so such rows survive. Comments about newline/pipe escaping are D4. | false | [] | [] | [
"C3"
] | null | null | null | langflow-ai/langflow | 623929065f9ae45792afce2eb3185dad353df78e |
cline__cline@2195a68 | fresh10 | 1 | D1 | State-mismatch confirmation fails open: dismissing the warning (undefined) still signs in with the untrusted token | On a state mismatch the handler awaits a non-modal vscode.window.showWarningMessage(..., 'Store', 'Cancel') and returns only when the result === 'Cancel'. A dismissed notification (closed with X/Esc, cleared from the notification centre) resolves to undefined, which falls through to controller.handleAuthCallback(token,... | security | high | [
{
"path": "src/extension.ts",
"from_line": 310,
"to_line": 327,
"role": "cause"
},
{
"path": "src/services/auth/AuthService.ts",
"from_line": 212,
"to_line": 227,
"role": "symptom"
}
] | head/src/extension.ts:312-321 `if (authService.authNonce !== state) { const userConfirmation = await vscode.window.showWarningMessage(`Store token returned from ${uri.path}`, "Store", "Cancel"); if (userConfirmation === "Cancel") { ... return } }` then extension.ts:324-326 `if (token) { await visibleWebview?.controller... | Must point out that only an explicit 'Cancel' aborts, so dismissing/closing the prompt (undefined) proceeds to store the token; fix = proceed only on === 'Store' (and/or modal). A generic 'removing the state check weakens CSRF protection' comment without the dismissal/undefined point belongs to D2, not here. | true | [
"H-D1"
] | [] | [
"C3",
"C4"
] | null | null | null | cline/cline | 2195a689b787a963bdacc35d348f4590c30a2692 |
cline__cline@2195a68 | fresh10 | 1 | D2 | Unsolicited auth callbacks are accepted after a one-click prompt that gives no basis for consent ('Store token returned from /auth') | The PR replaces the hard CSRF rejection with user consent, but the prompt interpolates uri.path, which inside `case "/auth"` is always the literal '/auth'. It shows neither the account, the provider, nor who initiated the flow, so a legitimate Cline-web sign-in and a malicious link opened by any website look identical,... | security | low | [
{
"path": "src/extension.ts",
"from_line": 310,
"to_line": 318,
"role": "cause"
}
] | head/src/extension.ts:288 `switch (path)` / :296 `case "/auth": {` ... :313-314 `vscode.window.showWarningMessage(`Store token returned from ${uri.path}`, ...)` - uri.path is always '/auth' on this branch. Base extension.ts rejected with `showErrorMessage("Invalid auth state")` and returned. | Must say the confirmation text is uninformative/constant ('/auth') or that accepting external tokens after a bare confirm reopens login CSRF. The dismissal-returns-undefined issue is D1, not this. Comments about the nonce being reused/static are excluded (not this). | true | [
"H-D2"
] | [] | [] | null | null | null | cline/cline | 2195a689b787a963bdacc35d348f4590c30a2692 |
n8n-io__n8n@61fc500 | fresh10 | 1 | D1 | Workflows added to the folder tree after the id snapshot are still cascade hard-deleted without archival or deactivation | flattenAndArchive reads the hierarchy's workflow ids once, then archives them one by one and moves only those ids; afterwards FolderService.deleteFolder deletes the folder row, whose FK (workflow.parentFolder onDelete: 'CASCADE') hard-deletes whatever workflows reference the folder tree at that moment. Nothing locks or... | concurrency | low | [
{
"path": "packages/cli/src/workflows/workflow.service.ts",
"from_line": 494,
"to_line": 505,
"role": "cause"
},
{
"path": "packages/cli/src/controllers/folder.controller.ts",
"from_line": 109,
"to_line": 115,
"role": "cause"
},
{
"path": "packages/cli/src/services/folder... | head/packages/cli/src/workflows/workflow.service.ts:495-504 `const workflowIds = await this.workflowRepository.getAllWorkflowIdsInHierarchy(...)`; `for (const workflowId of workflowIds) { await this.archive(user, workflowId, true); }`; `await this.workflowRepository.moveToFolder(workflowIds, PROJECT_ROOT);`. folder.con... | Must say membership is snapshotted once and a workflow added/moved into the folder (or a subfolder) before the final delete is cascade-deleted (not archived). A comment only about lack of atomicity on failure is D2; N+1 / performance comments do not count. | true | [
"H-D1"
] | [] | [
"C5",
"C12"
] | null | null | null | n8n-io/n8n | 61fc500fee842539e2a5011303147fdf5df0cd96 |
n8n-io__n8n@61fc500 | fresh10 | 1 | D2 | Archive, move and folder delete are separate non-transactional steps, so a mid-way failure leaves archived/deactivated workflows inside an undeleted folder (and skips their hooks on retry) | Each archive() call commits its own update (deactivation, isArchived) before awaiting the workflow.afterArchive external hook, and the loop, the bulk move and the folder delete share no transaction (unlike the transfer path, which wraps move+delete in one). If deactivation or a hook throws on a later workflow, or moveT... | data | low | [
{
"path": "packages/cli/src/workflows/workflow.service.ts",
"from_line": 494,
"to_line": 505,
"role": "cause"
},
{
"path": "packages/cli/src/workflows/workflow.service.ts",
"from_line": 434,
"to_line": 454,
"role": "other-site"
},
{
"path": "packages/cli/src/controllers/f... | head/packages/cli/src/workflows/workflow.service.ts:442-454 `if (workflow.active) { await this.activeWorkflowManager.remove(workflowId); }` / `await this.workflowRepository.update(workflowId, { isArchived: true, active: false, versionId })` / `await this.externalHooks.run('workflow.afterArchive', [workflowId])`; :435-4... | Must say the flatten/archive and folder delete are not atomic (no transaction / per-workflow commits) so a failure part-way leaves a partially archived hierarchy in an undeleted folder (or hooks skipped on retry). Generic 'add error handling/try-catch' comments without the partial-state consequence do not count; the co... | true | [
"H-D1"
] | [
"A2",
"A3"
] | [
"C3",
"C11"
] | null | null | null | n8n-io/n8n | 61fc500fee842539e2a5011303147fdf5df0cd96 |
immich-app__immich@966c3f2 | fresh10 | 1 | D1 | lastModifiedAssetTimestamp is truncated to a calendar date, breaking mobile album change detection (missed same-day edits / perpetual resync) | The new aggregate casts updatedAt to ::date before max(), so lastModifiedAssetTimestamp becomes UTC midnight of the latest update day instead of the exact latest asset updatedAt that the removed getLastUpdatedAssetForAlbumId returned. The field exists only for the mobile app, which compares it with isAtSameMomentAs in ... | bug | high | [
{
"path": "server/src/repositories/album.repository.ts",
"from_line": 161,
"to_line": 171,
"role": "cause"
},
{
"path": "server/src/services/album.service.ts",
"from_line": 67,
"to_line": 68,
"role": "symptom"
},
{
"path": "server/src/services/album.service.ts",
"from... | head/server/src/repositories/album.repository.ts:162-170 `.max<any>(sql`("assets"."updatedAt" AT TIME ZONE 'UTC'::text)::date`).as('lastModifiedAssetTimestamp')`; base asset.repository.ts getLastUpdatedAssetForAlbumId ordered by updatedAt desc limit 1 and album.service returned `lastModifiedAsset?.updatedAt` (full time... | A comment counts if it says the updatedAt / lastModifiedAssetTimestamp aggregate is cast/truncated to ::date (losing time-of-day precision) and ties that to mobile sync/change detection — either missed same-day asset changes or perpetual mismatches/refetches against the mobile's locally recalculated precise value. Near... | true | [
"D1"
] | [] | [
"C2",
"C3"
] | null | null | null | immich-app/immich | 966c3f22d034c230a14bb21b02627ef6d00eec68 |
immich-app__immich@966c3f2 | fresh10 | 1 | D2 | New required AlbumAssetCount field breaks the unchanged album.service.spec.ts mocks, so `npm run check` (tsc) fails in CI | AlbumAssetCount now declares `lastModifiedAssetTimestamp: Date | null` as required. album.service.spec.ts (not updated by the PR) passes object literals with only albumId/assetCount/startDate/endDate to the typed mock `mocks.album.getMetadataForIds.mockResolvedValue(...)`, whose parameter type is AlbumAssetCount[]. Eac... | build | high | [
{
"path": "server/src/repositories/album.repository.ts",
"from_line": 10,
"to_line": 16,
"role": "cause"
},
{
"path": "server/src/services/album.service.spec.ts",
"from_line": 43,
"to_line": 46,
"role": "symptom"
},
{
"path": "server/src/services/album.service.spec.ts",
... | head/server/src/repositories/album.repository.ts:15 `lastModifiedAssetTimestamp: Date | null;`. album.service.spec.ts:43-46 `mocks.album.getMetadataForIds.mockResolvedValue([{ albumId: albumStub.empty.id, assetCount: 0, startDate: null, endDate: null }, ...])`, same shape at 56-63, 73-75, 85-87, 98-105, 444-451, 465-47... | A comment counts if it says the new required interface field breaks the existing getMetadataForIds mocks / type-check, or that album.service.spec.ts mocks must be updated to include lastModifiedAssetTimestamp. A generic 'add tests' request does not count. | true | [
"D2"
] | [] | [] | null | null | null | immich-app/immich | 966c3f22d034c230a14bb21b02627ef6d00eec68 |
immich-app__immich@966c3f2 | fresh10 | 1 | D3 | Generated SQL snapshot for getMetadataForIds is not regenerated, so the CI 'Generated SQL files not up to date' check fails | getMetadataForIds carries @GenerateSql, and CI runs `npm run sync:sql` then fails if anything under server/src/queries changed. The PR rewrites the query (FROM assets, ::date casts, new lastModifiedAssetTimestamp column, group by album_assets.albumsId) but leaves server/src/queries/album.repository.sql showing the old ... | build | high | [
{
"path": "server/src/repositories/album.repository.ts",
"from_line": 128,
"to_line": 183,
"role": "cause"
},
{
"path": "server/src/queries/album.repository.sql",
"from_line": 202,
"to_line": 216,
"role": "symptom"
}
] | head/server/src/repositories/album.repository.ts:128 `@GenerateSql({ params: [[DummyValue.UUID]] })` on the rewritten method. head/server/src/queries/album.repository.sql:202-216 still reads `select "albums"."id" as "albumId", min("assets"."localDateTime") as "startDate", max("assets"."localDateTime") as "endDate", cou... | A comment counts if it says server/src/queries/album.repository.sql was not updated or that `npm run sync:sql` must be re-run for the changed query. | true | [
"D3"
] | [] | [] | null | CI gate (generated files): only visible by knowing that queries/*.sql is generated by `npm run sync:sql` and checked in CI; in production CI's generated-files check goes red and the review reads it. Kept and scored for the benchmark's integrity. | null | immich-app/immich | 966c3f22d034c230a14bb21b02627ef6d00eec68 |
immich-app__immich@966c3f2 | fresh10 | 1 | D4 | startDate/endDate are truncated to ::date and returned as UTC-midnight instants, so web shows the previous day for users west of UTC and same-day albums lose their sort order | Both localDateTime aggregates now cast to ::date, so the API returns e.g. 2025-03-10T00:00:00.000Z instead of the full (wall-clock-as-UTC) localDateTime timestamp. The web renders these values in the browser's local zone: albums-table-row's dateLocaleString (`new Date(s).toLocaleDateString(locale, {month, day, year})`,... | bug | medium | [
{
"path": "server/src/repositories/album.repository.ts",
"from_line": 141,
"to_line": 160,
"role": "cause"
},
{
"path": "server/src/services/album.service.ts",
"from_line": 64,
"to_line": 65,
"role": "other-site"
},
{
"path": "web/src/lib/components/album-page/albums-tabl... | head/server/src/repositories/album.repository.ts:143-149 `.min<any>(sql`("assets"."localDateTime" AT TIME ZONE 'UTC'::text)::date`).as('startDate')` and :153-159 the same for endDate; base used `eb.fn.min('assets.localDateTime')`/`max(...)` (full timestamps). config.repository.ts:245-250 parses the date OID with `new D... | A comment counts if it says the startDate/endDate aggregates are cast/truncated to ::date (losing the time component) AND names a concrete consequence: off-by-one/previous-day display in timezones west of UTC, or lost intra-day ordering in most-recent/oldest-photo sorting. Contentious: the blind hunt rejected this as a... | false | [] | [] | [
"C4",
"C5"
] | null | null | null | immich-app/immich | 966c3f22d034c230a14bb21b02627ef6d00eec68 |
google-gemini__gemini-cli@4c150ab | fresh10 | 1 | D1 | ACP / Zed mode (--experimental-acp) now loses the shell, edit and write_file tools | loadCliConfig now decides interactivity from argv.promptInteractive and process.stdin.isTTY only. In --experimental-acp mode the client (e.g. Zed) speaks the protocol over piped stdin/stdout with no prompt, so stdin is not a TTY and shouldBeInteractive is false; without --yolo, run_shell_command, replace and write_file... | bug | high | [
{
"path": "packages/cli/src/config/config.ts",
"from_line": 369,
"to_line": 384,
"role": "cause"
},
{
"path": "packages/cli/src/gemini.tsx",
"from_line": 244,
"to_line": 245,
"role": "symptom"
},
{
"path": "packages/cli/src/acp/acpPeer.ts",
"from_line": 233,
"to_l... | head/packages/cli/src/config/config.ts:372-378 `const shouldBeInteractive = !!argv.promptInteractive || (process.stdin.isTTY && question.length === 0); const extraExcludes = !shouldBeInteractive && approvalMode !== ApprovalMode.YOLO ? [ShellTool.Name, EditTool.Name, WriteFileTool.Name] : undefined;`. gemini.tsx:149 bui... | A comment counts if it identifies that ACP/--experimental-acp (Zed) mode — or more generally a non-TTY caller that is not the runNonInteractive path — now gets shell/edit/write excluded because the heuristic moved into loadCliConfig. A comment that only says the interactivity logic is duplicated between config.ts and g... | true | [
"D1"
] | [] | [
"C1",
"C5"
] | null | null | null | google-gemini/gemini-cli | 4c150ab4befb2a727b493d732d8d3d01f388e492 |
google-gemini__gemini-cli@4c150ab | fresh10 | 1 | D2 | Existing mergeExcludeTools tests fail in non-TTY CI because loadCliConfig now reads process.stdin.isTTY | The config.test.ts mergeExcludeTools suite calls loadCliConfig with `process.argv = ['node', 'script.js']` (no prompt, no --yolo) and asserts exact exclude lists (lengths 5, 3, 4, 2, 2 and `[]`). Under GitHub Actions stdin is not a TTY, so loadCliConfig now appends run_shell_command, replace and write_file and those as... | build | high | [
{
"path": "packages/cli/src/config/config.ts",
"from_line": 372,
"to_line": 378,
"role": "cause"
},
{
"path": "packages/cli/src/config/config.test.ts",
"from_line": 563,
"to_line": 713,
"role": "symptom"
}
] | head/packages/cli/src/config/config.test.ts:592-595 `expect(config.getExcludeTools()).toEqual(expect.arrayContaining([...5 tools])); expect(config.getExcludeTools()).toHaveLength(5);`, :621 toHaveLength(3), :655 toHaveLength(4), :669 `toEqual([])`, :686/:712 toHaveLength(2). The test's gemini-cli-core mock spreads the ... | A comment counts if it says the existing exact-length excludeTools tests will now see the three extra tools (or fail) because of the process.stdin.isTTY / non-interactive dependency, or that those tests must set/stub the interactive mode. A generic 'add tests for the new behaviour' remark does not count. | true | [
"D2"
] | [] | [
"C2",
"C4"
] | null | null | null | google-gemini/gemini-cli | 4c150ab4befb2a727b493d732d8d3d01f388e492 |
mrdoob__three.js@b55b9e9 | fresh10 | 1 | D1 | WGSLNodeBuilder now throws for any non-3-element workgroupSize, so previously valid, documented compute(count, [N]) calls crash at shader build | The PR adds a hard `workgroupSize.length !== 3` check that throws 'workgroupSize must have 3 elements'. Neither the compute() helper nor the ComputeNode constructor pads a shorter caller-supplied array (the [64, 1, 1] default only applies when the argument is undefined), so any existing user code passing a one-element ... | compat | high | [
{
"path": "src/renderers/webgpu/nodes/WGSLNodeBuilder.js",
"from_line": 1901,
"to_line": 1905,
"role": "cause"
},
{
"path": "src/nodes/gpgpu/ComputeNode.js",
"from_line": 226,
"to_line": 237,
"role": "other-site"
},
{
"path": "src/nodes/gpgpu/ComputeBuiltinNode.js",
"... | head/src/renderers/webgpu/nodes/WGSLNodeBuilder.js:1901-1903 `const workgroupSize = this.object.workgroupSize || [ 64, 1, 1 ];` / `if ( workgroupSize.length !== 3 ) throw new Error( 'workgroupSize must have 3 elements' );`. head/src/nodes/gpgpu/ComputeNode.js:237 passes the caller's array untouched (`new ComputeNode( n... | A comment counts if it says that 1-element (or fewer-than-3-element) workgroup sizes that previously worked now throw / are rejected, i.e. a breaking change, and that they should be padded with 1s or otherwise accepted. A comment only about 2-element arrays without the 1-element regression is a near-miss (2-element arr... | true | [
"D1"
] | [
"A8"
] | [
"C6",
"C9"
] | null | null | null | mrdoob/three.js | b55b9e97f6d0f5829e4d8fc364949e72b0d9e98c |
mrdoob__three.js@b55b9e9 | fresh10 | 1 | D2 | dispatchSize is dropped by computeAsync() and by compute()'s pre-init fallback, so an explicit 3D dispatch silently never happens (zero workgroups for array-form nodes) | Only Renderer.compute(computeNodes, dispatchSize) forwards the new argument. computeAsync(computeNodes) has no dispatchSize parameter and calls this.compute(computeNodes), and compute() called before initialisation returns this.computeAsync(computeNodes) without it. The backend then sees the default [0, 0, 0], treats i... | incomplete-fix | medium | [
{
"path": "src/renderers/common/Renderer.js",
"from_line": 2412,
"to_line": 2418,
"role": "cause"
},
{
"path": "src/renderers/common/Renderer.js",
"from_line": 2318,
"to_line": 2324,
"role": "cause"
},
{
"path": "src/renderers/webgpu/WebGPUBackend.js",
"from_line": 13... | head/src/renderers/common/Renderer.js:2314 `compute( computeNodes, dispatchSize = [ 0, 0, 0 ] ) {`; :2320-2322 `console.warn( '... Try using .computeAsync() instead.' ); return this.computeAsync( computeNodes );`; :2412 `async computeAsync( computeNodes ) {` ... :2416 `this.compute( computeNodes );`. head/src/renderers... | Must say that computeAsync, or the not-yet-initialised compute() -> computeAsync fallback, does not accept/forward dispatchSize, so the requested dispatch is lost. Either path alone counts. A general remark that dispatchSize should be validated, or that the [0,0,0] default is odd, without naming the dropped forwarding,... | true | [
"D2"
] | [
"A4"
] | [
"C5",
"C12"
] | null | null | null | mrdoob/three.js | b55b9e97f6d0f5829e4d8fc364949e72b0d9e98c |
mrdoob__three.js@b55b9e9 | fresh10 | 1 | D3 | The new dispatchSize is only honoured by WebGPUBackend: array-form (count = null) kernels silently run zero invocations on the WebGL fallback and via ComputeNode.updateBefore | compute(fn, [x, y, z]) sets count = null, so the node's only dispatch information is a dispatchSize passed to a direct renderer.compute call, and only WebGPUBackend reads that argument. WebGLBackend.compute (used by WebGPURenderer's automatic WebGL fallback) ignores the 5th argument the renderer now passes and draws co... | incomplete-fix | low | [
{
"path": "src/nodes/gpgpu/ComputeNode.js",
"from_line": 230,
"to_line": 235,
"role": "cause"
},
{
"path": "src/renderers/common/Renderer.js",
"from_line": 2393,
"to_line": 2393,
"role": "other-site"
},
{
"path": "src/renderers/webgl-fallback/WebGLBackend.js",
"from_l... | head/src/nodes/gpgpu/ComputeNode.js:230-233 `if ( Array.isArray( countOrWorkgroupSize ) ) { workgroupSize = countOrWorkgroupSize; count = null; }`. head/src/renderers/common/Renderer.js:2393 `backend.compute( computeNodes, computeNode, computeBindings, computePipeline, dispatchSize );`. head/src/renderers/webgl-fallbac... | Counts if the comment says the WebGL fallback backend ignores the new dispatchSize so the count-less/array-form kernel does nothing (or explicit dispatch is not honoured) there, OR that updateBefore / node-graph-driven compute cannot supply a dispatch size and therefore dispatches nothing. A comment only about computeA... | true | [
"D3"
] | [] | [
"C2",
"C11",
"C8"
] | null | null | null | mrdoob/three.js | b55b9e97f6d0f5829e4d8fc364949e72b0d9e98c |
mrdoob__three.js@b55b9e9 | fresh10 | 1 | D4 | WebGPUBackend fallback aliases dispatchSize to the per-node data object: computeNodeData.dispatchSize becomes dead and x/y/z are read/written on the wrong object (y/z undefined) | `dispatchSize = isValid ? dispatchSize : computeNodeData;` makes the automatic-dispatch branch operate on the backend data object itself instead of computeNodeData.dispatchSize. The branch still initialises computeNodeData.dispatchSize = { x: 0, y: 1, z: 1 } but never reads it, writes .x/.y onto the backend's per-node ... | maintainability | low | [
{
"path": "src/renderers/webgpu/WebGPUBackend.js",
"from_line": 1329,
"to_line": 1329,
"role": "cause"
},
{
"path": "src/renderers/webgpu/WebGPUBackend.js",
"from_line": 1360,
"to_line": 1377,
"role": "symptom"
}
] | head/src/renderers/webgpu/WebGPUBackend.js:1329 `dispatchSize = isValid ? dispatchSize : computeNodeData;`; :1360 `if ( computeNodeData.dispatchSize === undefined ) computeNodeData.dispatchSize = { x: 0, y: 1, z: 1 };` (never read afterwards); :1364-1369 `dispatchSize.x = ...; dispatchSize.y = ...` (writes computeNodeD... | Must identify that the fallback uses computeNodeData instead of computeNodeData.dispatchSize (so the nested cache is dead and y/z are undefined). Comments that name this mechanism count even if they overstate the consequence as a runtime failure (in browsers undefined optional args default to 1, so there is no function... | true | [
"D4"
] | [
"A7"
] | [
"C10",
"C7"
] | null | null | null | mrdoob/three.js | b55b9e97f6d0f5829e4d8fc364949e72b0d9e98c |
FreeCAD__FreeCAD@a050e42 | rest145 | 2 | D1 | Vertical geometry is now classified as isHorizontal in all four validators, breaking vertical (DistanceY) dimensions | While renaming TechDraw::isVertical to DimensionGeometry::isVertical, every `fabs(line.x) < FLT_EPSILON` branch was rewritten to return DimensionGeometry::isHorizontal instead of isVertical: isValidSingleEdge (DimensionValidators.cpp:391-392), isValidSingleEdge3d (:436-437), isValidVertexes (:638-639) and isValidVertex... | bug | high | [
{
"path": "src/Mod/TechDraw/Gui/DimensionValidators.cpp",
"from_line": 391,
"to_line": 392,
"role": "cause"
},
{
"path": "src/Mod/TechDraw/Gui/DimensionValidators.cpp",
"from_line": 436,
"to_line": 437,
"role": "cause"
},
{
"path": "src/Mod/TechDraw/Gui/DimensionValidator... | head DimensionValidators.cpp:391 `} else if (fabs(line.x) < FLT_EPSILON) {` :392 `return DimensionGeometry::isHorizontal;` (base: `return TechDraw::isVertical;`); same pattern at :436-437, :638-639 (base `return isVertical;`), :676-677. `grep 'return DimensionGeometry::isVertical'` finds nothing. execDistanceY acceptab... | Any comment flagging that the x≈0 branch returns isHorizontal instead of isVertical (at any of the four sites) counts. Dataset refs R11/R12/R13 point at three of the four sites. | true | [] | [
"R11",
"R12",
"R13"
] | [
"C1",
"C3",
"C8",
"C9",
"C10",
"C19",
"N2",
"N3",
"N4",
"N5",
"N6",
"N7",
"N8"
] | null | null | null | FreeCAD/FreeCAD | a050e422e23ce3eaee960b75ceff236b34f369b9 |
FreeCAD__FreeCAD@a050e42 | rest145 | 2 | D2 | DrawProjGroup::rotate now recomputes the anchor view twice per rotation | DrawProjGroup::rotate (DrawProjGroup.cpp:1147-1151) now calls getAnchor()->rotate(), i.e. DrawViewPart::rotate, which ends with recompute() on the anchor (DrawViewPart.cpp:1294), and then updateSecondaryDirs(), which ends with recomputeChildren() calling recomputeFeature() on every item including the anchor (:946-957).... | performance | low | [
{
"path": "src/Mod/TechDraw/App/DrawProjGroup.cpp",
"from_line": 1147,
"to_line": 1151,
"role": "cause"
},
{
"path": "src/Mod/TechDraw/App/DrawViewPart.cpp",
"from_line": 1292,
"to_line": 1294,
"role": "other-site"
}
] | DrawProjGroup.cpp:1149 `getAnchor()->rotate(rotationdirection);` ; DrawViewPart.cpp:1294 `recompute();` ; recomputeChildren loops Views incl. anchor with view->recomputeFeature(). | Must note the delegation to DrawViewPart::rotate adds an extra anchor recompute (double recompute). Comments about the TODO (R3) do not count. Kept at low severity: DrawViewPart::rotate calls recompute() on the anchor and updateSecondaryDirs() then recomputeFeature()s every DPGI including the anchor; base only set prop... | true | [] | [] | [] | null | null | null | FreeCAD/FreeCAD | a050e422e23ce3eaee960b75ceff236b34f369b9 |
FreeCAD__FreeCAD@eb761fd | rest145 | 2 | D1 | simplifyCompound lists TopAbs_SHELL twice and drops TopAbs_EDGE, so single-edge compounds are no longer reduced to their edge | The new Feature::simplifyCompound (src/Mod/Part/App/PartFeature.cpp:1326-1343) iterates {SOLID, COMPSOLID, FACE, SHELL, SHELL, WIRE, VERTEX}; the replaced inline code checked SOLID, COMPSOLID, FACE, SHELL, EDGE, WIRE, VERTEX. With EDGE missing, getTopoShape(..., NeedSubElement) on a sub-object that resolves to a compou... | bug | high | [
{
"path": "src/Mod/Part/App/PartFeature.cpp",
"from_line": 1326,
"to_line": 1343,
"role": "cause"
},
{
"path": "src/Mod/Part/App/PartFeature.cpp",
"from_line": 1306,
"to_line": 1308,
"role": "other-site"
}
] | head PartFeature.cpp:1328-1335 `std::array<TopAbs_ShapeEnum, 7> simplificationPriority = { TopAbs_SOLID, TopAbs_COMPSOLID, TopAbs_FACE, TopAbs_SHELL, TopAbs_SHELL, TopAbs_WIRE, TopAbs_VERTEX};`; the deleted base code had `else if (shape.countSubShapes(TopAbs_EDGE) == 1) shape = shape.getSubTopoShape(TopAbs_EDGE, 1);` b... | Must identify the duplicated SHELL / missing EDGE in the simplification list, or equivalently that single-edge compounds are no longer simplified to the edge. Comments only about initializer_list/find_if/renaming (R9, R11) or about consolidating with TopoShapeExpansion (C8) do not count. | true | [] | [
"R10"
] | [
"C6",
"C10",
"C14",
"N4",
"N5",
"N7",
"N10"
] | null | null | null | FreeCAD/FreeCAD | eb761fd69cf1fb9c674e385bb1d419814526ba5a |
FreeCAD__FreeCAD@eb761fd | rest145 | 2 | D2 | Part RuledSurface command assigns the first selected sub-element to curve2 instead of curve1, so curve1 is never set for sub-element selections | In CmdPartRuledSurface::activated (src/Mod/Part/Gui/Command.cpp:1973-1982) the rewrite changed `curve1 = getTopoShape(docobj1, subnames1[0]...)` into `curve2 = ...`, so curve1 is only set when subnames1 is empty (line 1995) and, for two sub-elements of one object, curve2 is written twice. The practical effect is small:... | bug | low | [
{
"path": "src/Mod/Part/Gui/Command.cpp",
"from_line": 1974,
"to_line": 1980,
"role": "cause"
},
{
"path": "src/Mod/Part/Gui/Command.cpp",
"from_line": 2026,
"to_line": 2031,
"role": "symptom"
}
] | head Command.cpp:1973-1974 `if (!subnames1.empty()) { curve2 = Part::Feature::getTopoShape(docobj1, subnames1[0].c_str(), ...` vs base `curve1 = Part::Feature::getTopoShape(docobj1, subnames1[0].c_str(), true /*need element*/).getShape();`; :1951 `bool ok = true;`; :2026-2031 `if (!curve1.IsNull() && !curve2.IsNull()) ... | Must say the first sub-element result is assigned to curve2 instead of curve1 (curve1 left unset). Graded low: because the validation block never sets ok=false, the command still runs with the correct links; claims that it now always rejects the selection overstate the effect but still identify the defect. | true | [] | [
"R14"
] | [
"C2",
"C9",
"C11",
"N2",
"N3",
"N5",
"N9"
] | null | null | null | FreeCAD/FreeCAD | eb761fd69cf1fb9c674e385bb1d419814526ba5a |
FreeCAD__FreeCAD@eb761fd | rest145 | 2 | D3 | Selected up-to faces now lose their element map: getTopoShape was swapped for getShape, which forces NoElementMap | In ProfileBased::getUpToShapeFromLinkSubList (src/Mod/PartDesign/App/FeatureSketchBased.cpp:730-736) the per-subelement call was changed from getTopoShape(ref, sub, true) to Part::Feature::getShape(...). getShape (PartFeature.cpp:855-858) always ORs in NoElementMap and returns a raw TopoDS_Shape, which is then wrapped ... | bug | medium | [
{
"path": "src/Mod/PartDesign/App/FeatureSketchBased.cpp",
"from_line": 730,
"to_line": 738,
"role": "cause"
},
{
"path": "src/Mod/Part/App/PartFeature.cpp",
"from_line": 855,
"to_line": 858,
"role": "other-site"
}
] | head FeatureSketchBased.cpp:730 `auto shape = Part::Feature::getShape(ref, subString.c_str(), nullptr, nullptr, NeedSubElement | ResolveLink | Transform);` then :737-738 `TopoShape face = shape; face = face.makeElementFace();`; base `auto shape = Part::Feature::getTopoShape(ref, subString.c_str(), true);`; PartFeature.... | Must say the switch to getShape at the selected-face up-to-shape site drops the element map / topological naming. A comment that merely asks about the getShape/getTopoShape difference elsewhere does not count. | false | [] | [] | [
"C3",
"C4",
"C15",
"N1",
"N5",
"N6",
"N8"
] | null | null | null | FreeCAD/FreeCAD | eb761fd69cf1fb9c674e385bb1d419814526ba5a |
FreeCAD__FreeCAD@eb761fd | rest145 | 2 | D4 | getShape/getTopoShape doc comment still documents the removed bool parameters and says nothing about `options` | PartFeature.h:123-142 still describes `@param needSubElement`, `@param resolveLink` and `@param transform` as separate parameters directly above signatures that now take `(obj, subname, pmat, owner, int options)` (143-150). The options bitmask, its flags (including DontSimplifyCompound) and the defaults are undocumente... | maintainability | low | [
{
"path": "src/Mod/Part/App/PartFeature.h",
"from_line": 123,
"to_line": 150,
"role": "cause"
}
] | PartFeature.h:128 ` * @param needSubElement: whether to ignore the non-object subelement`, :137 `@param resolveLink`, :140 `@param transform`, followed by :143-145 `static TopoDS_Shape getShape(const App::DocumentObject *obj, const char *subname=nullptr, Base::Matrix4D *pmat=nullptr, App::DocumentObject **owner=nullptr... | Must point at the stale parameter documentation of getShape/getTopoShape. Suggestions to reorder parameters or use a strongly typed enum (R12, R13) do not count. | true | [] | [] | [
"C7",
"C16"
] | null | null | null | FreeCAD/FreeCAD | eb761fd69cf1fb9c674e385bb1d419814526ba5a |
FreeCAD__FreeCAD@82fef4a | rest145 | 2 | D1 | NoOpEntityResolver's 'Block all external entity resolution' comment is false: returning nullptr falls back to default resolution | The new NoOpEntityResolver::resolveEntity (src/Base/Parameter.cpp:1863-1870) returns nullptr with the comment 'Block all external entity resolution', and the PR presents the resolver as what 'completely block[s]' entity resolution. In Xerces-C, an EntityResolver returning a null InputSource means 'no custom source — us... | maintainability | low | [
{
"path": "src/Base/Parameter.cpp",
"from_line": 1866,
"to_line": 1869,
"role": "cause"
},
{
"path": "src/Base/Parameter.cpp",
"from_line": 1886,
"to_line": 1887,
"role": "other-site"
}
] | Parameter.cpp:1868 `return nullptr; // Block all external entity resolution`; :1886 `parser->setDisableDefaultEntityResolution(true);` (pre-existing); Xerces EntityResolver contract: a null return lets the parser open the entity itself unless default resolution is disabled. | Must say the null-returning resolver does not itself block entities (null = default resolution) and the comment/stated purpose is misleading, the real safeguard being setDisableDefaultEntityResolution. Tests-only requests (C3) do not count. | false | [] | [] | [
"C1",
"C2",
"N1"
] | null | null | null | FreeCAD/FreeCAD | 82fef4a22503dd3affdd39e7120b6f71e9423f86 |
FreeCAD__FreeCAD@ec3da2e | rest145 | 2 | D1 | DrawViewPart.h declares static two-argument functions but DrawViewPart.cpp defines one-argument non-static members, so TechDraw does not compile | DrawViewPart.h:242-244 declares `static bool isCosmeticVertex(App::DocumentObject* owner, std::string element);` (and the same for isCosmeticEdge / isCenterLine). DrawViewPart.cpp:1502, 1513 and 1523 define `bool DrawViewPart::isCosmeticVertex(std::string element)` and the other two as one-argument members that call ge... | build | high | [
{
"path": "src/Mod/TechDraw/App/DrawViewPart.h",
"from_line": 242,
"to_line": 244,
"role": "cause"
},
{
"path": "src/Mod/TechDraw/App/DrawViewPart.cpp",
"from_line": 1502,
"to_line": 1530,
"role": "symptom"
}
] | DrawViewPart.h:242 `static bool isCosmeticVertex(App::DocumentObject* owner, std::string element);` vs DrawViewPart.cpp:1502 `bool DrawViewPart::isCosmeticVertex(std::string element)` and 1505 `auto vertex = getProjVertexByIndex(vertexIndex);`, which is an implicit this-> call. | The comment must point out the mismatch between the header declaration (static, owner parameter) and the cpp definition (non-static, one parameter), or say the definitions don't match any declaration. Just saying 'the refactor might not compile' without naming the signature mismatch does not count. | true | [] | [
"R3"
] | [
"C2",
"C3",
"C4",
"C5",
"N2",
"N7",
"N8"
] | null | null | null | FreeCAD/FreeCAD | ec3da2e93e3fd8f69f113ca14abf892dfb86c11b |
FreeCAD__FreeCAD@ec3da2e | rest145 | 2 | D2 | CosmeticExtension.cpp still calls the deleted DrawUtil::isCosmeticVertex/isCosmeticEdge/isCenterLine, so the build breaks | The PR removes DrawUtil::isCosmeticVertex, isCosmeticEdge and isCenterLine from DrawUtil.h and DrawUtil.cpp (base DrawUtil.h:252-254). CosmeticExtension::deleteCosmeticElements still calls `DU::isCosmeticVertex(getOwner(), name)`, `DU::isCosmeticEdge(getOwner(), name)` and `DU::isCenterLine(getOwner(), name)` at Cosmet... | build | high | [
{
"path": "src/Mod/TechDraw/App/CosmeticExtension.cpp",
"from_line": 70,
"to_line": 78,
"role": "symptom"
},
{
"path": "src/Mod/TechDraw/App/DrawUtil.h",
"from_line": 249,
"to_line": 251,
"role": "cause"
}
] | git grep at head: CosmeticExtension.cpp:71 `DU::isCosmeticVertex(getOwner(), name)`, :77 `DU::isCosmeticEdge(getOwner(), name) ||`, :78 `DU::isCenterLine(getOwner(), name)`. No DrawUtil declaration of these remains at head. | The comment must name the unchanged caller in CosmeticExtension (or say that the remaining DU:: call sites were not migrated). The DrawUtil.h line numbers are base-side for the deleted declarations. Distinct from D1, the header/cpp mismatch. C7 also mentions the declaration/definition mismatch in passing, but it leads ... | true | [] | [] | [
"C1",
"C7",
"C8",
"C9",
"N1",
"N2",
"N3"
] | null | null | null | FreeCAD/FreeCAD | ec3da2e93e3fd8f69f113ca14abf892dfb86c11b |
FreeCAD__FreeCAD@290bdc7 | rest145 | 2 | D1 | Empty PropertyEnumeration's .Enum/.All path now fails instead of returning an empty tuple | Enumeration::maxValue() returns -1 for an enumeration with no entries (src/App/Enumeration.cpp:260-267), so the old `Py::Tuple res(_enum.maxValue() + 1)` built a valid empty tuple. The new guard in PropertyEnumeration::getPyPathValue (src/App/PropertyStandard.cpp:604-607) returns false for exactly that case. Callers th... | bug | low | [
{
"path": "src/App/PropertyStandard.cpp",
"from_line": 604,
"to_line": 608,
"role": "cause"
},
{
"path": "src/App/PropertyStandard.cpp",
"from_line": 581,
"to_line": 589,
"role": "symptom"
}
] | Enumeration.cpp:262-266 `int num = -1; if (!enumArray.empty()) num = size-1; return num;`; head PropertyStandard.cpp `if (maxEnumValue < 0) { return false; }`; getPathValue: `Py::Object res; getPyPathValue(path, res); return pyObjectToAny(res, false);`. | Must point out that maxValue() is -1 for an empty enumeration (a legitimate state that previously produced an empty tuple) and that the new early return changes that result. A const-correctness remark (R1) does not count. | true | [] | [] | [
"C2",
"C4",
"C9",
"N2",
"N3",
"N4",
"N5"
] | null | null | null | FreeCAD/FreeCAD | 290bdc79d1ad92669431458a62205d694522586e |
FreeCAD__FreeCAD@290bdc7 | rest145 | 2 | D2 | Toolbar-root guard sits in an unreachable branch; the path that can actually delete the root toolbar is left unguarded (incomplete Coverity 513838 fix) | The new `if (item == toolBar) return;` (src/Gui/WorkbenchManipulatorPython.cpp:317-320) is inside the else branch that searches `it->findItem(command)` for each child `it`; ToolBarItem::findItem (src/Gui/ToolBarManager.cpp:84-97) returns `it` itself or one of its direct children, never the root `toolBar`, so the guard ... | incomplete-fix | low | [
{
"path": "src/Gui/WorkbenchManipulatorPython.cpp",
"from_line": 310,
"to_line": 313,
"role": "cause"
},
{
"path": "src/Gui/WorkbenchManipulatorPython.cpp",
"from_line": 317,
"to_line": 320,
"role": "other-site"
}
] | ToolBarManager.cpp:84-88 `ToolBarItem* ToolBarItem::findItem(const std::string& name) { if ( _name == name ) { return this; } ...`; WorkbenchManipulatorPython.cpp:310-313 `if (ToolBarItem* item = toolBar->findItem(command)) { toolBar->removeItem(item); delete item; }` with no root check; the new guard at 317 compares a... | Must say the item==toolBar guard is in the wrong/unreachable branch and the first `toolBar->findItem(command)` branch can still delete the root. A comment saying only that the guard is dead code and should be removed (without noting the root is still deletable) is a near-miss; the menubar guard (C6/C8) is a different s... | false | [] | [] | [
"C1",
"C3",
"C5",
"C7",
"N1",
"N6",
"N5"
] | null | null | null | FreeCAD/FreeCAD | 290bdc79d1ad92669431458a62205d694522586e |
FreeCAD__FreeCAD@870d7f5 | rest145 | 2 | D1 | With UseExternal on and the external interface unavailable, ModelManager::libraryModels lets ConnectionError escape, so building any library's model tree fails | ModelManager::libraryModels (src/Mod/Material/App/ModelManager.cpp:205-221) calls _externalManager->libraryModels when _useExternal is set and catches only LibraryNotFound and InvalidModel. ModelManagerExternal::libraryModels (src/Mod/Material/App/ModelManagerExternal.cpp:115-118) forwards straight to ExternalManager::... | bug | medium | [
{
"path": "src/Mod/Material/App/ModelManager.cpp",
"from_line": 205,
"to_line": 221,
"role": "cause"
},
{
"path": "src/Mod/Material/App/ModelManagerExternal.cpp",
"from_line": 115,
"to_line": 118,
"role": "cause"
},
{
"path": "src/Mod/Material/App/ModelLibrary.cpp",
"... | src/Mod/Material/App/ModelManager.cpp:210-219: `auto models = _externalManager->libraryModels(libraryName); ... catch (const LibraryNotFound& e) {} catch (const InvalidModel& e) {}`. ExternalManager.cpp:136-143 `if (!_instantiated) { instantiate(); if (!_instantiated) { throw ConnectionError(); } }`, and ExternalManage... | A finding must say that ConnectionError (or 'other exceptions from the external manager') is not handled in ModelManager::libraryModels / the external libraryModels path, so the local fallback does not happen. Generic 'empty catch blocks should log' comments (R28) do not count. | true | [] | [] | [
"N5"
] | null | null | null | FreeCAD/FreeCAD | 870d7f5385af5d377994479ce6ad017465bdad3d |
FreeCAD__FreeCAD@870d7f5 | rest145 | 2 | D2 | Models at a library's root now sit under a folder with an empty name in the rebuilt model tree | getModelTree now splits the model's directory (the second tuple element, model->getDirectory()) on '/' (src/Mod/Material/App/ModelLibrary.cpp:83) and then adds the model under that folder chain (src/Mod/Material/App/ModelLibrary.cpp:104). For a model file at the library root, addModel sets the directory to getLibraryPa... | bug | low | [
{
"path": "src/Mod/Material/App/ModelLibrary.cpp",
"from_line": 83,
"to_line": 104,
"role": "cause"
}
] | src/Mod/Material/App/ModelLibrary.cpp:78 `auto path = std::get<1>(it);` :83 `QStringList list = path.split(QStringLiteral("/"));` (no SkipEmptyParts), :86-97 create a folder for each element, :104 `(*node)[filename] = child;`. ModelManagerLocal.cpp:166-168 builds the tuple from `it.second->getDirectory()`. Library.cpp ... | Counts if a comment points out that splitting an empty/leading/trailing-slash path produces empty segments and hence empty folder nodes (R7's SkipEmptyParts suggestion lands on this). A pure style comment about the split does not count. C12/C22/C46 state it directly (empty directory -> empty-name folder). | true | [] | [
"R7"
] | [
"C12",
"C22",
"C46",
"N5",
"N13",
"N20",
"N24"
] | null | null | null | FreeCAD/FreeCAD | 870d7f5385af5d377994479ce6ad017465bdad3d |
FreeCAD__FreeCAD@870d7f5 | rest145 | 2 | D3 | ModelManagerLocal::getLibraries reinterpret_casts shared_ptr<list<shared_ptr<ModelLibraryLocal>>> to shared_ptr<list<shared_ptr<ModelLibrary>>>, which is undefined behaviour | Once _libraryList becomes a list of shared_ptr<ModelLibraryLocal>, getLibraries (src/Mod/Material/App/ModelManagerLocal.cpp:99-103) returns it by reinterpret_cast to a reference to a different, unrelated template instantiation. That is a strict-aliasing violation and undefined behaviour. It only 'works' because ModelLi... | maintainability | low | [
{
"path": "src/Mod/Material/App/ModelManagerLocal.cpp",
"from_line": 99,
"to_line": 103,
"role": "cause"
}
] | src/Mod/Material/App/ModelManagerLocal.cpp:101 `return reinterpret_cast<std::shared_ptr<std::list<std::shared_ptr<ModelLibrary>>>&>(_libraryList);` with ModelManagerLocal.h:80 `static std::shared_ptr<std::list<std::shared_ptr<ModelLibraryLocal>>> _libraryList;`. | Must name the reinterpret_cast between the two list types as unsafe/UB, or say a proper copy/conversion is needed. R32's generic 'prefer polymorphism' design remark does not identify the cast and does not count. | true | [] | [] | [
"C10",
"C11",
"C39",
"C48",
"N2",
"N5",
"N14",
"N23"
] | null | null | null | FreeCAD/FreeCAD | 870d7f5385af5d377994479ce6ad017465bdad3d |
FreeCAD__FreeCAD@870d7f5 | rest145 | 2 | D4 | validateMigration dereferences a null external model when a migrated model is missing, crashing instead of reporting a validation failure | ModelManagerExternal::getModel swallows ModelNotFound and ConnectionError and returns nullptr (src/Mod/Material/App/ModelManagerExternal.cpp:137-144). ModelManager::validateMigration passes that result straight to model->validate(externalModel) (src/Mod/Material/App/ModelManager.cpp:353-354), and Model::validate derefe... | bug | low | [
{
"path": "src/Mod/Material/App/ModelManager.cpp",
"from_line": 353,
"to_line": 354,
"role": "cause"
},
{
"path": "src/Mod/Material/App/ModelManagerExternal.cpp",
"from_line": 137,
"to_line": 144,
"role": "other-site"
}
] | src/Mod/Material/App/ModelManager.cpp:353-354 `auto externalModel = _externalManager->getModel(uuid); model->validate(externalModel);`. src/Mod/Material/App/ModelManagerExternal.cpp:137-140 `catch (const ModelNotFound& e) { _cache.emplace(uuid.toStdString(), nullptr); return nullptr; }`. Model.cpp:205-208 `void Model::... | Needs the null result of the external getModel reaching validate() in validateMigration. R30 (null check on the `model` parameter of addModel/migrateModel) is a different site and does not count. There are no in-tree callers yet (the API is being laid down for the migration tooling), hence low. | true | [] | [] | [] | null | null | null | FreeCAD/FreeCAD | 870d7f5385af5d377994479ce6ad017465bdad3d |
FreeCAD__FreeCAD@870d7f5 | rest145 | 2 | D5 | ModelManager::getLibrary's local fallback is unreachable with UseExternal on: the external getLibrary throws LibraryNotFound instead of returning null | ModelManager::getLibrary (src/Mod/Material/App/ModelManager.cpp:168-179) calls _externalManager->getLibrary(name) and falls back to _localManager->getLibrary only if the result is null. ModelManagerExternal::getLibrary (src/Mod/Material/App/ModelManagerExternal.cpp:92-105) never returns null: it rethrows LibraryNotFoun... | bug | low | [
{
"path": "src/Mod/Material/App/ModelManager.cpp",
"from_line": 170,
"to_line": 178,
"role": "cause"
},
{
"path": "src/Mod/Material/App/ModelManagerExternal.cpp",
"from_line": 92,
"to_line": 105,
"role": "other-site"
}
] | ModelManager.cpp:172-175 `auto library = _externalManager->getLibrary(name); if (library) { return library; }` with no try/catch; ModelManagerExternal.cpp:99-104 `catch (const LibraryNotFound& e) { throw LibraryNotFound(e); } catch (const ConnectionError& e) { throw LibraryNotFound(e.what()); }`. Base ModelManager.cpp:... | Must say the external getLibrary throws (LibraryNotFound) rather than returning null, so the null check/local fallback never runs. Comments about precedence of same-named libraries do not count. | false | [] | [] | [
"C16",
"C45",
"C51",
"N4",
"N5",
"N11",
"N18"
] | null | null | null | FreeCAD/FreeCAD | 870d7f5385af5d377994479ce6ad017465bdad3d |
FreeCAD__FreeCAD@870d7f5 | rest145 | 2 | D6 | A transient ConnectionError is cached as a permanent 'model missing' (nullptr) in the external model cache | ModelManagerExternal::getModel (src/Mod/Material/App/ModelManagerExternal.cpp:141-144) stores nullptr in the process-wide LRU cache when the provider raises ConnectionError, and line 128-129 returns any cached entry without retrying. After the outage ends, the UUID keeps resolving to null from the external source (Mode... | bug | low | [
{
"path": "src/Mod/Material/App/ModelManagerExternal.cpp",
"from_line": 128,
"to_line": 144,
"role": "cause"
}
] | ModelManagerExternal.cpp:128-130 `if (_cache.contains(uuid.toStdString())) { return _cache.lookup(uuid.toStdString()); }`; :141-143 `catch (const ConnectionError& e) { _cache.emplace(uuid.toStdString(), nullptr); return nullptr; }`. grep: resetCache is called only from ModelManagerExternal::refresh (line 65). | Must say the connection-failure branch caches null (negative caching of a transient error) so later lookups don't retry. A comment only asking to log the error does not count. | false | [] | [] | [
"C2",
"C13",
"C30",
"C34",
"N1",
"N6",
"N8"
] | null | null | null | FreeCAD/FreeCAD | 870d7f5385af5d377994479ce6ad017465bdad3d |
FreeCAD__FreeCAD@870d7f5 | rest145 | 2 | D7 | ModelManager::refresh refreshes only the local manager; the new external cache is never invalidated | The PR adds ModelManagerExternal::refresh (src/Mod/Material/App/ModelManagerExternal.cpp:63-66, clears the LRU cache) but ModelManager::refresh (src/Mod/Material/App/ModelManager.cpp:119-122) still only calls _localManager->refresh(). With UseExternal on, a public refresh leaves stale external models (and cached nulls)... | incomplete-fix | low | [
{
"path": "src/Mod/Material/App/ModelManager.cpp",
"from_line": 119,
"to_line": 122,
"role": "cause"
},
{
"path": "src/Mod/Material/App/ModelManagerExternal.cpp",
"from_line": 63,
"to_line": 66,
"role": "other-site"
}
] | ModelManager.cpp:121 `_localManager->refresh();` only; grep shows no caller of ModelManagerExternal::refresh or resetCache. OnChange (ModelManager.cpp:100) even has `// _dbManager->refresh();` commented out. | Must say ModelManager::refresh should also refresh/clear the external manager/cache. | false | [] | [] | [
"C23",
"C40",
"C41"
] | null | null | null | FreeCAD/FreeCAD | 870d7f5385af5d377994479ce6ad017465bdad3d |
FreeCAD__FreeCAD@870d7f5 | rest145 | 2 | D8 | External model-library discovery uses libraries() instead of modelLibraries(), so material-only libraries appear in the model selector | ModelManagerExternal::getLibraries (src/Mod/Material/App/ModelManagerExternal.cpp:78) calls ExternalManager::libraries(), which the external API documents as returning all libraries; modelLibraries() exists precisely to return only libraries containing models (MaterialAPI/MaterialManagerExternal.py modelLibraries docst... | bug | low | [
{
"path": "src/Mod/Material/App/ModelManagerExternal.cpp",
"from_line": 78,
"to_line": 78,
"role": "cause"
}
] | ModelManagerExternal.cpp:78 `auto externalLibraries = ExternalManager::getManager()->libraries();`. MaterialManagerExternal.py: `def modelLibraries(self)` ... 'This differs from the libraries() function in that it only returns libraries containing model objects.' | Must name libraries() vs modelLibraries() (or 'material-only libraries listed as model libraries'). | false | [] | [] | [
"C9",
"C33",
"N7",
"N16"
] | null | null | null | FreeCAD/FreeCAD | 870d7f5385af5d377994479ce6ad017465bdad3d |
FreeCAD__FreeCAD@870d7f5 | rest145 | 2 | D9 | ModelManager::cleanup returns before the new external cleanup block, making it unreachable | src/Mod/Material/App/ModelManager.cpp:111 `return ModelManagerLocal::cleanup();` precedes the newly added `#if defined(BUILD_MATERIAL_EXTERNAL) if (_externalManager) _externalManager->cleanup();` block (lines 112-116), so the external cleanup never runs. ModelManagerExternal::cleanup is empty today, so there is no runt... | maintainability | low | [
{
"path": "src/Mod/Material/App/ModelManager.cpp",
"from_line": 109,
"to_line": 117,
"role": "cause"
}
] | ModelManager.cpp:111-116 as quoted; ModelManagerExternal.cpp:59-61 `void ModelManagerExternal::cleanup() {}`. | Must point out the early return making the external cleanup unreachable. | false | [] | [] | [
"C5",
"C19",
"N5",
"N15",
"N17"
] | null | null | null | FreeCAD/FreeCAD | 870d7f5385af5d377994479ce6ad017465bdad3d |
FreeCAD__FreeCAD@870d7f5 | rest145 | 2 | D10 | getModelTree aborts the whole library tree when one listed external model cannot be fetched | ModelLibrary::getModelTree (src/Mod/Material/App/ModelLibrary.cpp:75-82) calls ModelManager::getModel for each UUID the (external) library lists. If ModelManagerExternal::getModel returns null (ModelNotFound or a cached ConnectionError, ModelManagerExternal.cpp:137-144), ModelManager::getModel falls back to _localManag... | bug | low | [
{
"path": "src/Mod/Material/App/ModelLibrary.cpp",
"from_line": 75,
"to_line": 82,
"role": "cause"
},
{
"path": "src/Mod/Material/App/ModelManager.cpp",
"from_line": 278,
"to_line": 290,
"role": "other-site"
}
] | ModelManager.cpp:282-289 `auto model = _externalManager->getModel(uuid); if (model) return model; ... return _localManager->getModel(uuid);`; ModelManagerLocal.cpp:184-185 `catch (std::out_of_range const&) { throw ModelNotFound(); }`; ModelLibrary.cpp:81 no try/catch. | Must say that an unavailable listed model leads to an exception (ModelNotFound) that aborts tree construction. Comments claiming a null dereference at ModelLibrary.cpp:82 (C15, C49) are wrong about the mechanism: ModelManager::getModel never returns null. | false | [] | [] | [
"C29"
] | null | null | null | FreeCAD/FreeCAD | 870d7f5385af5d377994479ce6ad017465bdad3d |
FreeCAD__FreeCAD@870d7f5 | rest145 | 2 | D11 | ModelManager::getLibraries now returns libraries in alphabetical order (and drops same-named local libraries) even with the external interface off | ModelManager::getLibraries (src/Mod/Material/App/ModelManager.cpp:130-153) now routes every library, including the local ones, through a std::map<QString, shared_ptr<ModelLibrary>> keyed by name and then flattens the map. Before the PR it returned _localManager->getLibraries() unchanged, i.e. in the loader's configured... | behavior-regression | low | [
{
"path": "src/Mod/Material/App/ModelManager.cpp",
"from_line": 130,
"to_line": 153,
"role": "cause"
},
{
"path": "src/Mod/Material/Gui/ModelSelect.cpp",
"from_line": 342,
"to_line": 350,
"role": "symptom"
}
] | auto libMap = std::map<QString, std::shared_ptr<ModelLibrary>>(); ... for (auto& local : *localLibraries) { libMap.try_emplace(local->getName(), local); } ... for (auto libEntry : libMap) { libraries->push_back(libEntry.second); } (base: return _localManager->getLibraries();) | A review counts if it says the merged getLibraries reorders libraries (alphabetical via the std::map) relative to the previous System/modules/User/Custom order, or that same-named local libraries are collapsed, including when the external interface is off. Near-misses that do NOT count: external-over-local precedence f... | false | [] | [] | [
"N5"
] | extension-2026-09-28 | null | null | FreeCAD/FreeCAD | 870d7f5385af5d377994479ce6ad017465bdad3d |
FreeCAD__FreeCAD@e596925 | rest145 | 2 | D1 | Result loop exits on the node count before the last node's ' -2' continuation line is read | readResults loops `while (countNodes < info.numNodes && std::getline(...))` (FemVTKTools.cpp:1453) and increments countNodes when it reads each node's first ' -1' record (1482). The tuple is written only when vecValues+scaValues reach numComps (1498). For datasets with more than 6 components the remaining values are on... | bug | medium | [
{
"path": "src/Mod/Fem/App/FemVTKTools.cpp",
"from_line": 1453,
"to_line": 1453,
"role": "cause"
},
{
"path": "src/Mod/Fem/App/FemVTKTools.cpp",
"from_line": 1482,
"to_line": 1482,
"role": "cause"
},
{
"path": "src/Mod/Fem/App/FemVTKTools.cpp",
"from_line": 1498,
... | 1453 `while (countNodes < info.numNodes && std::getline(ifstr, line))`; 1482 `++countNodes;` at the end of the code1 (' -1') branch; 1484 `else if (view.rfind(code2, 0) == 0)` handles continuations; 1498 `if ((vecValues.size() + scaValues.size()) == numComps)`. A ' -1' record carries at most 6 E12.5 values (node lines ... | Must say the loop stops on the node counter after the final ' -1' record so the final node's ' -2' continuation is never read and its tuple is missing/zero for >6-component datasets. The countScaPos classification bug (D2) is a different defect. | true | [] | [] | [
"C25",
"C26",
"N7"
] | null | null | null | FreeCAD/FreeCAD | e59692501d1a08e7306189fed5c31b02553f7746 |
FreeCAD__FreeCAD@e596925 | rest145 | 2 | D2 | countScaPos not advanced on ' -2' continuation lines, misrouting scalar/vector components | In the code2 branch (FemVTKTools.cpp:1486-1496) the loop over continuation values is `it += 12` without `++countScaPos`, unlike the code1 loop at 1467. Every continuation value is looked up in scalarPos at the same position, so in a >6-component dataset that mixes scalar and vector/tensor entities values go to the wron... | bug | low | [
{
"path": "src/Mod/Fem/App/FemVTKTools.cpp",
"from_line": 1486,
"to_line": 1496,
"role": "cause"
}
] | 1467 `for (auto it = sub.begin(); it != sub.end(); it += 12, ++countScaPos)`; 1486 `for (auto it = sub.begin(); it != sub.end(); it += 12)`; 1489 `std::find(scalarPos.begin(), scalarPos.end(), countScaPos)`. | Must identify the missing countScaPos increment in the continuation branch. Comments that ALSO claim skipping `digits` chars on the ' -2' line loses the first value count for this defect only via the countScaPos part (the skip itself is correct: CalculiX writes the node-width field blank on continuation records). | true | [] | [
"R22"
] | [
"C18",
"C4",
"C19",
"N4",
"N5",
"N6",
"N7"
] | null | null | null | FreeCAD/FreeCAD | e59692501d1a08e7306189fed5c31b02553f7746 |
FreeCAD__FreeCAD@e596925 | rest145 | 2 | D3 | valueFromLine<double> parses with strtof, rounding doubles to float | The double specialisation of valueFromLine (FemVTKTools.cpp:1098-1102) uses std::strtof, so every node coordinate, result value and the result header's time/frequency value (read from a 12-char field with up to 10 decimals, 1339) is rounded through 32-bit float before being stored in double/vtkDoubleArray, adding float... | bug | low | [
{
"path": "src/Mod/Fem/App/FemVTKTools.cpp",
"from_line": 1098,
"to_line": 1102,
"role": "cause"
}
] | 1101 `value = std::strtof(sub.data(), nullptr);` inside `void valueFromLine<double>(..., double& value)`. | Must say strtof (float) is used where strtod is needed. Generic 'no error checking on strtol/strtof' remarks do not count. | true | [] | [
"R8"
] | [
"N10"
] | null | null | null | FreeCAD/FreeCAD | e59692501d1a08e7306189fed5c31b02553f7746 |
FreeCAD__FreeCAD@e596925 | rest145 | 2 | D4 | vtkXMLMultiBlockDataWriter missing from PreCompiled.h, breaking precompiled-header builds | The new `#include <vtkXMLMultiBlockDataWriter.h>` is added only inside the `#ifndef _PreComp_` block of FemVTKTools.cpp (61). With FREECAD_USE_PCH (default ON, MSVC PCH set up in src/Mod/Fem/App/CMakeLists.txt:194-197) that block is skipped and PreCompiled.h does not include the header, so vtkXMLMultiBlockDataWriter is... | build | high | [
{
"path": "src/Mod/Fem/App/FemVTKTools.cpp",
"from_line": 61,
"to_line": 61,
"role": "cause"
},
{
"path": "src/Mod/Fem/App/FemVTKTools.cpp",
"from_line": 1606,
"to_line": 1606,
"role": "symptom"
},
{
"path": "src/Mod/Fem/App/PreCompiled.h",
"from_line": 155,
"to_l... | FemVTKTools.cpp:26 `#ifndef _PreComp_`; PreCompiled.h VTK list (155-194) has vtkXMLDataSetWriter/vtkXMLUnstructuredGridWriter but no vtkXMLMultiBlockDataWriter; InitializeFreeCADBuildOptions.cmake:31 `option(FREECAD_USE_PCH ... ON)`. | Must mention the precompiled-header (PreCompiled.h / _PreComp_) build. Generic include-hygiene remarks do not count. Severity raised to high by critic: FREECAD_USE_PCH defaults ON under MSVC (InitializeFreeCADBuildOptions.cmake:31, inside if(MSVC)) and Fem's CMakeLists adds -D_PreComp_, so the default Windows build of ... | true | [] | [] | [
"C5",
"N2"
] | null | null | null | FreeCAD/FreeCAD | e59692501d1a08e7306189fed5c31b02553f7746 |
microsoft__typescript-go@ae447d3 | rest145 | 2 | D1 | Watch-mode status lines print a doubled space after switching Fprint to Fprintln with trailing-space literals | internal/execute/watch.go:45 and :48 changed fmt.Fprint(w, "build starting at ", now, newline) to fmt.Fprintln(w.sys.Writer(), "build starting at ", w.sys.Now()) (likewise "build finished in ", duration). fmt.Fprint adds a space between operands only when neither is a string, so the old output had one space; fmt.Fprint... | bug | low | [
{
"path": "internal/execute/watch.go",
"from_line": 45,
"to_line": 45,
"role": "cause"
},
{
"path": "internal/execute/watch.go",
"from_line": 48,
"to_line": 48,
"role": "cause"
}
] | watch.go:45 `fmt.Fprintln(w.sys.Writer(), "build starting at ", w.sys.Now())`; :48 `fmt.Fprintln(w.sys.Writer(), "build finished in ", w.sys.Now().Sub(timeStart))`; base used fmt.Fprint with the same literals plus w.sys.NewLine(). Go fmt: Fprintln always separates operands with spaces. | Must point at watch.go 45/48 and say Fprintln adds a separator so the trailing space yields a double/extra space. Comments about the commented-out Fprintln lines in watcher.go do not count. | true | [] | [
"R1"
] | [
"C1",
"C8",
"N1",
"N2",
"N3"
] | null | null | {"bots": ["GitHub Copilot"], "dataset_refs": ["R1"], "references": ["internal/execute/watch.go:45-48:87c0143b1c1b"], "hunt": true, "note": "Not scored. The cited AACR reference is a reworded review-bot comment from the original PR; the defect itself was checked against the code."} | microsoft/typescript-go | ae447d3b2a6db00072941e1992a09981b6096061 |
microsoft__typescript-go@b970689 | rest145 | 2 | D1 | `@import` with no import clause (`/** @import "mod" */` or a half-typed tag) dereferences a nil ImportClause and panics the parser | reparser.go:120 calls `importTag.ImportClause.Clone(&p.factory)` unconditionally. parseImportTag (jsdoc.go:855-868) takes the clause from tryParseImportClause, which returns nil when no identifier, `*` or `{` follows `@import` (parser.go:2195-2205) - a side-effect `@import "mod"` or any incomplete tag. Node.Clone deref... | bug | high | [
{
"path": "internal/parser/reparser.go",
"from_line": 118,
"to_line": 126,
"role": "cause"
},
{
"path": "internal/parser/jsdoc.go",
"from_line": 855,
"to_line": 868,
"role": "other-site"
}
] | reparser.go:119-122 `importTag := tag.AsJSDocImportTag(); importClause := importTag.ImportClause.Clone(&p.factory); importClause.Flags |= ast.NodeFlagsReparsed; importClause.AsImportClause().IsTypeOnly = true`. parser.go tryParseImportClause: `if identifier != nil || p.token == ast.KindAsteriskToken || p.token == ast.K... | Must say the import clause can be nil (side-effect / clause-less / malformed @import) and that the unguarded Clone/deref crashes. A generic 'add nil checks' not naming the clause is a near miss. | true | [] | [
"R4"
] | [
"C7",
"C8",
"C14",
"N3",
"N5",
"N6",
"N7"
] | null | null | null | microsoft/typescript-go | b970689fe86e0b6ef4f5285b18343ddf16b294eb |
microsoft__typescript-go@b970689 | rest145 | 2 | D2 | Synthetic import shares its bindings/specifier with the JSDoc tag; for a non-function host the binder re-parents them to the JSDocImportTag, so resolving a named or namespace @import panics (and the '/' completion trigger is lost) | The reparser clones only the ImportClause shell; NamedBindings, the default name, ModuleSpecifier and Attributes are the same nodes as in the JSDocImportTag (reparser.go:120-123; ImportClause.Clone reuses node.NamedBindings). parseListIndex inserts the synthetic declaration BEFORE its host statement (parser.go:477-481)... | bug | high | [
{
"path": "internal/parser/reparser.go",
"from_line": 120,
"to_line": 126,
"role": "cause"
},
{
"path": "internal/parser/parser.go",
"from_line": 477,
"to_line": 481,
"role": "other-site"
},
{
"path": "internal/binder/binder.go",
"from_line": 757,
"to_line": 761,
... | parser.go:477-481 `elt := parseElement(p, i); if len(p.reparseList) > 0 { list = append(list, p.reparseList...) ... } list = append(list, elt)` (reparsed nodes precede the host). binder.go:1642-1652 functions first, then others in order. binder.go:757-761 `setParent(jsdoc, node); ast.SetParentInChildren(jsdoc)`; SetPar... | Counts if a comment says the synthetic import reuses the tag's child nodes so their parent pointers end up pointing at the JSDoc tag (e.g. after the host's JSDoc is parented) and that module-specifier / import resolution then hits a JSDocImportTag and fails or panics. C11 counts as a partial hit (names the removed JSDo... | false | [] | [] | [
"C2",
"C11",
"N4"
] | null | null | null | microsoft/typescript-go | b970689fe86e0b6ef4f5285b18343ddf16b294eb |
microsoft__typescript-go@b970689 | rest145 | 2 | D3 | `@import` in JSDoc below top level becomes a block-level import: false TS1473 error, names never bound, module no longer collected for resolution | The synthetic JSImportDeclaration is flushed into whatever list is being parsed, so an @import in the JSDoc of a statement inside a function body or block becomes a statement of that Block. checkImportDeclaration (checker.go:4914-4925) calls checkGrammarModuleElementContext (grammarchecks.go:189-194), which reports 'An... | bug | medium | [
{
"path": "internal/parser/reparser.go",
"from_line": 118,
"to_line": 126,
"role": "cause"
},
{
"path": "internal/ast/utilities.go",
"from_line": 2534,
"to_line": 2560,
"role": "cause"
},
{
"path": "internal/checker/grammarchecks.go",
"from_line": 189,
"to_line": ... | checker.go:4917-4925 JS files get An_import_declaration_can_only_be_used_at_the_top_level_of_a_module then `return`. grammarchecks.go:190 `isInAppropriateContext := node.Parent.Kind == ast.KindSourceFile || ...ModuleBlock || ...ModuleDeclaration`. Base utilities.go:2557 `} else if includeTypeSpaceImports && node.Kind =... | Counts if a comment says non-top-level @import tags (inside functions/blocks) now error or go unresolved, or that removing the JSDocImportTag branch of ForEachDynamicImportOrRequireCall loses nested @import module references. Architectural 'should be handled earlier' transformer comments do not count. | true | [] | [] | [
"C18",
"N7"
] | null | null | null | microsoft/typescript-go | b970689fe86e0b6ef4f5285b18343ddf16b294eb |
microsoft__typescript-go@45c0de9 | rest145 | 2 | D1 | toLSPDiagnostics passes nil converters, so every non-empty diagnostic report panics | The new helper calls toLSPDiagnostic(diag, nil) (diagnostics.go:44) instead of passing l.converters as the old code did. toLSPDiagnostic unconditionally calls converters.ToLSPRange for the diagnostic range (diagnostics.go:86) and for each related-information entry (:68); ToLSPRange -> PositionToLineAndCharacter calls c... | bug | high | [
{
"path": "internal/ls/diagnostics.go",
"from_line": 36,
"to_line": 48,
"role": "cause"
},
{
"path": "internal/ls/diagnostics.go",
"from_line": 86,
"to_line": 86,
"role": "symptom"
},
{
"path": "internal/ls/converters.go",
"from_line": 207,
"to_line": 210,
"ro... | diagnostics.go:44 `toLSPDiagnostic(diag, nil) // converters can be nil if not needed`; :86 `Range: converters.ToLSPRange(diagnostic.File(), diagnostic.Loc())`; converters.go:210 `lineMap := c.getLineMap(script.FileName())`. Base code passed `l.converters`. | Must identify the nil converters argument (lost l.converters) and that it crashes/panics when diagnostics exist. Removal of `Kind: StringLiteralFull{}` is NOT a defect (zero-value struct marshals "full"). | true | [] | [
"R1"
] | [
"C1",
"C2",
"C4",
"N3",
"N5",
"N8",
"N17"
] | null | null | {"bots": ["GitHub Copilot"], "dataset_refs": ["R1"], "references": ["internal/ls/diagnostics.go:44-44:f38c2509aed2"], "hunt": true, "note": "Not scored. The cited AACR reference is a reworded review-bot comment from the original PR; the defect itself was checked against the code."} | microsoft/typescript-go | 45c0de96a08812aff07974b859bc2327e7fe25ed |
microsoft__typescript-go@100dbc5 | rest145 | 2 | D1 | formatDefaultValue does not render a nil default as 'undefined' like Strada, so --lib loses its 'default: undefined' line (and non-enum options would print '<nil>') | Strada's formatDefaultValue returns String(undefined) = "undefined" whenever the default is undefined. The port (internal/execute/outputs.go:326-342) maps only core.TSUnknown to "undefined". A nil DefaultValueDescription on a list/enum option (--lib, declscompiler.go:300-313, which sets no DefaultValueDescription) goes... | bug | low | [
{
"path": "internal/execute/outputs.go",
"from_line": 326,
"to_line": 342,
"role": "cause"
},
{
"path": "testdata/baselines/reference/tsc/commandLine/help.js",
"from_line": 97,
"to_line": 100,
"role": "symptom"
}
] | outputs.go:327 `if defaultValue == core.TSUnknown { return "undefined" }`; :341 `return fmt.Sprintf("%v", defaultValue)`; enum branch returns strings.Join(names, "/") which is "" when nothing matches. declscompiler.go:301-313 lib: Kind List, no DefaultValueDescription, ShowInSimplifiedHelpView true. help.js --lib entry... | A comment must say a nil/undefined default is not rendered as 'undefined' (missing default line for --lib, or '<nil>' output). Comments about backticks on --declaration's default or missing trailing periods do not count. | true | [] | [] | [
"N1",
"N2"
] | null | null | null | microsoft/typescript-go | 100dbc5127e723c4108efc02a179d9aec5fce32a |
microsoft__typescript-go@100dbc5 | rest145 | 2 | D2 | showAdditionalInfoOutput dereferences valueCandidates without a nil check, but getValueCandidate returns nil for object options (latent panic) | getValueCandidate returns nil for CommandLineOptionTypeObject (outputs.go:370-372). showAdditionalInfoOutput then reads valueCandidates.possibleValues unconditionally (outputs.go:354), whereas Strada uses `valueCandidates?.possibleValues`; the caller itself guards `valueCandidates != nil` (outputs.go:310, 313), showing... | bug | low | [
{
"path": "internal/execute/outputs.go",
"from_line": 350,
"to_line": 360,
"role": "cause"
},
{
"path": "internal/execute/outputs.go",
"from_line": 370,
"to_line": 372,
"role": "other-site"
}
] | outputs.go:354 `if valueCandidates.possibleValues == "string" && ...` with no nil check; :370-372 `if option.Kind == tsoptions.CommandLineOptionTypeObject { return nil }`; object-kind compiler options exist (e.g. paths in declscompiler.go). | Must point at the missing nil check on valueCandidates in showAdditionalInfoOutput / nil candidates for object options. A comment about a nil *diagnostics.Message after the DefaultValueDescription type assertion does not count. | true | [] | [
"R3"
] | [
"C4",
"C5",
"N2",
"N3"
] | null | null | null | microsoft/typescript-go | 100dbc5127e723c4108efc02a179d9aec5fce32a |
libsdl-org__SDL@96dfef3 | rest145 | 2 | D1 | Submit-time cleanup (finished command buffers, empty allocations, pending destroys) now runs only on presenting submits, so non-presenting workloads accumulate resources without bound | VULKAN_Submit now wraps the fence sweep that calls VULKAN_INTERNAL_CleanCommandBuffer, the checkEmptyAllocations release and VULKAN_INTERNAL_PerformPendingDestroys in `if (presenting)` (SDL_gpu_vulkan.c:10532-10570), with presenting = presentDataCount > 0 (10424). Headless/offscreen rendering, compute-only loops, and f... | resource | high | [
{
"path": "src/gpu/vulkan/SDL_gpu_vulkan.c",
"from_line": 10532,
"to_line": 10570,
"role": "cause"
},
{
"path": "src/gpu/vulkan/SDL_gpu_vulkan.c",
"from_line": 10424,
"to_line": 10424,
"role": "other-site"
}
] | Head 10532-10570: `// If presenting, check if we can perform any cleanups` `if (presenting) { for (Sint32 i = renderer->submittedCommandBufferCount - 1; ...) { vkGetFenceStatus ... VULKAN_INTERNAL_CleanCommandBuffer(...) } if (renderer->checkEmptyAllocations) {...} VULKAN_INTERNAL_PerformPendingDestroys(renderer); }`. ... | Must say cleanup / command-buffer recycling / pending destroys no longer happen on non-presenting submits, so headless/offscreen/compute (or minimized) apps accumulate or leak resources. Comments only about moving the defrag call or brace style do not count. | true | [] | [] | [
"C7",
"C14",
"C19",
"N1",
"N6",
"N9",
"N4"
] | null | null | null | libsdl-org/SDL | 96dfef35c4b0b89f2f8d9c2ecc4f5e3a25d3e7a0 |
libsdl-org__SDL@96dfef3 | rest145 | 2 | D2 | CycleActiveTexture records the default-layout transition on the new texture before the NULL check, crashing on allocation failure | VULKAN_INTERNAL_CycleActiveTexture (SDL_gpu_vulkan.c:5876-5889) now calls VULKAN_INTERNAL_TextureTransitionToDefaultUsage(renderer, commandBuffer, UNINITIALIZED, texture) immediately after VULKAN_INTERNAL_CreateTexture and before the existing `if (!texture) return;`. CreateTexture returns NULL on image creation/memory ... | bug | medium | [
{
"path": "src/gpu/vulkan/SDL_gpu_vulkan.c",
"from_line": 5876,
"to_line": 5889,
"role": "cause"
}
] | Head 5876-5889: `texture = VULKAN_INTERNAL_CreateTexture(renderer, false, &container->header.info); VULKAN_INTERNAL_TextureTransitionToDefaultUsage(renderer, commandBuffer, VULKAN_TEXTURE_USAGE_MODE_UNINITIALIZED, texture); if (!texture) { return; }`. Head 2835 `for (Uint32 i = 0; i < texture->subresourceCount; i += 1)... | Must name the transition happening before the NULL check (ordering) in CycleActiveTexture. A generic NULL-check remark elsewhere does not count. | true | [] | [
"R2"
] | [
"C2",
"C12",
"C18",
"N3",
"N7",
"N8",
"N4"
] | null | null | null | libsdl-org/SDL | 96dfef35c4b0b89f2f8d9c2ecc4f5e3a25d3e7a0 |
libsdl-org__SDL@96dfef3 | rest145 | 2 | D3 | isDefrag field comment still says the command buffer was created for defragging | DefragmentMemory now sets isDefrag on the application's presenting command buffer (SDL_gpu_vulkan.c:10608) instead of on a dedicated command buffer it acquired, but the VulkanCommandBuffer field comment at line 1070 still reads 'Whether this CB was created for defragging', which the change made wrong and which misdescr... | maintainability | low | [
{
"path": "src/gpu/vulkan/SDL_gpu_vulkan.c",
"from_line": 1070,
"to_line": 1070,
"role": "cause"
},
{
"path": "src/gpu/vulkan/SDL_gpu_vulkan.c",
"from_line": 10607,
"to_line": 10608,
"role": "other-site"
}
] | Head 1070 `bool isDefrag; // Whether this CB was created for defragging`. Head 10602-10608 `VULKAN_INTERNAL_DefragmentMemory(VulkanRenderer *renderer, VulkanCommandBuffer *commandBuffer) { renderer->defragInProgress = 1; commandBuffer->isDefrag = 1;` with commandBuffer being the submitted presenting buffer (10451). Bas... | Must say the isDefrag comment is now inaccurate because the flag marks the presenting/app command buffer carrying defrag work. | false | [] | [] | [
"C4",
"C5"
] | null | null | null | libsdl-org/SDL | 96dfef35c4b0b89f2f8d9c2ecc4f5e3a25d3e7a0 |
libsdl-org__SDL@96dfef3 | rest145 | 2 | D4 | A cycled texture's only default-layout initialization now rides the application's command buffer, so cancelling that buffer leaves the active texture in UNDEFINED layout while SDL assumes the default layout | VULKAN_INTERNAL_CycleActiveTexture (SDL_gpu_vulkan.c:5876-5885) now creates the replacement texture with transitionToDefaultLayout=false and records its UNINITIALIZED->default-layout barrier on the caller's commandBuffer instead of on a separately acquired and immediately submitted command buffer as before the PR. The ... | bug | low | [
{
"path": "src/gpu/vulkan/SDL_gpu_vulkan.c",
"from_line": 5876,
"to_line": 5885,
"role": "cause"
},
{
"path": "src/gpu/vulkan/SDL_gpu_vulkan.c",
"from_line": 10580,
"to_line": 10601,
"role": "other-site"
},
{
"path": "src/gpu/vulkan/SDL_gpu_vulkan.c",
"from_line": 594... | texture = VULKAN_INTERNAL_CreateTexture(renderer, false, &container->header.info); VULKAN_INTERNAL_TextureTransitionToDefaultUsage(renderer, commandBuffer, VULKAN_TEXTURE_USAGE_MODE_UNINITIALIZED, texture); ... container->activeTexture = texture; / VULKAN_Cancel: renderer->vkResetCommandBuffer(vulkanCommandBuffer->comm... | To count, a review must say that moving the new cycled texture's initial layout transition onto the application's command buffer means a cancelled command buffer (SDL_CancelGPUCommandBuffer) drops that initialization while the texture remains the container's active/cycled texture, so later barriers assume a layout the ... | false | [] | [] | [
"N5"
] | extension-2026-09-28 | null | null | libsdl-org/SDL | 96dfef35c4b0b89f2f8d9c2ecc4f5e3a25d3e7a0 |
gofr-dev__gofr@c1a26ad | rest145 | 2 | D1 | Logging middleware moved behind CORS: OPTIONS/preflight requests are no longer logged and no longer get X-Correlation-ID, for every app (flag on or off) | Before, the chain was Tracer -> Logging -> CORS -> Metrics. The PR removes Logging from the first r.Use and appends it afterwards (http_server.go:36-46), making it Tracer -> CORS -> Metrics -> Logging. CORS (cors.go) short-circuits every OPTIONS request with `w.WriteHeader(http.StatusOK); return` without calling inner,... | bug | medium | [
{
"path": "pkg/gofr/http_server.go",
"from_line": 36,
"to_line": 46,
"role": "cause"
},
{
"path": "pkg/gofr/http/middleware/cors.go",
"from_line": 18,
"to_line": 21,
"role": "symptom"
}
] | http_server.go:36-40 `r.Use(middleware.Tracer, middleware.CORS(...), middleware.Metrics(c.Metrics()),)` then 42-46 `r.Use(middleware.LoggingWithoutProbes(...))` / `r.Use(middleware.Logging(c.Logger))`; base had `middleware.Tracer, middleware.Logging(c.Logger), middleware.CORS(...), middleware.Metrics(...)`. cors.go: `i... | Must point out that the logging middleware's position in the chain changed (now after CORS/Metrics) with a concrete consequence (OPTIONS not logged / correlation header missing / changed panic-recovery scope). A comment only about code style of the if/else does not count. | true | [] | [
"R4"
] | [
"C6",
"C8",
"C11",
"N3",
"N10",
"N11"
] | null | null | null | gofr-dev/gofr | c1a26ade6db7da96622c9bdca7674ef7094c122f |
gofr-dev__gofr@c1a26ad | rest145 | 2 | D2 | With LOG_DISABLE_PROBES=true, health/alive responses also lose the X-Correlation-ID header | loggingMiddleware returns early for skipped requests (`if !shouldLog(r) { inner.ServeHTTP(w, r); return }`, logger.go:111-114) before `srw.Header().Set("X-Correlation-ID", traceID)` at logger.go:121. So enabling the option, documented as only suppressing probe logs, also changes probe responses: GET /.well-known/health... | bug | low | [
{
"path": "pkg/gofr/http/middleware/logger.go",
"from_line": 111,
"to_line": 121,
"role": "cause"
}
] | logger.go:111-114 early return; logger.go:121 `srw.Header().Set("X-Correlation-ID", traceID)` only on the logged path. | Must say the skipped (probe) path no longer sets X-Correlation-ID. The OPTIONS/preflight correlation-header loss from reordering is D1, not this. | false | [] | [] | [
"C2",
"C7",
"C14",
"N1",
"N8",
"N10"
] | null | null | null | gofr-dev/gofr | c1a26ade6db7da96622c9bdca7674ef7094c122f |
gofr-dev__gofr@c1a26ad | rest145 | 2 | D3 | Exported middleware.GetConfigs changes its return type from map[string]string to MiddlewareConfig, breaking external callers | GetConfigs in the public package gofr.dev/pkg/gofr/http/middleware previously returned map[string]string (the CORS header map, which middleware.CORS still takes). It now returns a MiddlewareConfig struct (config.go:12-17), so any user code doing `middleware.CORS(middleware.GetConfigs(conf), routes)` or ranging over the... | contract | low | [
{
"path": "pkg/gofr/http/middleware/config.go",
"from_line": 12,
"to_line": 17,
"role": "cause"
}
] | base config.go: `func GetConfigs(c config.Config) map[string]string`; head config.go:17 `func GetConfigs(c config.Config) MiddlewareConfig`; cors.go `func CORS(middlewareConfigs map[string]string, routes *[]string)` unchanged. | Must say the exported GetConfigs signature/return type changed, breaking existing callers. R1/R3 (make LogDisableProbes a bool) do not count. | false | [] | [] | [
"C10"
] | null | null | null | gofr-dev/gofr | c1a26ade6db7da96622c9bdca7674ef7094c122f |
gofr-dev__gofr@49ab394 | rest145 | 2 | D1 | retryConnect goroutine writes connManager/streamManager/subManager without synchronization while request paths read them: data race and a window where checkClient passes but streamManager/subManager are still nil | Client.Connect starts `go c.retryConnect()` (client.go:52) when the first connect fails; AddPubSub ignores the error and the app keeps serving. retryConnect assigns c.connManager (client.go:83) and only later c.streamManager and c.subManager (client.go:93-94), with no mutex/atomic, while checkClient (client.go:358-362)... | concurrency | medium | [
{
"path": "pkg/gofr/datasource/pubsub/nats/client.go",
"from_line": 71,
"to_line": 99,
"role": "cause"
},
{
"path": "pkg/gofr/datasource/pubsub/nats/client.go",
"from_line": 353,
"to_line": 367,
"role": "symptom"
},
{
"path": "pkg/gofr/datasource/pubsub/nats/client.go",
... | client.go:52 `go c.retryConnect()`; client.go:83 `c.connManager = connManager`; client.go:93-94 `c.streamManager = newStreamManager(js, c.logger)` / `c.subManager = newSubscriptionManager(batchSize)`; client.go:358 `if c.connManager == nil` read with no lock; client.go:297-301 CreateTopic: `checkClient(c)` then `c.stre... | Counts if the comment says the background retry goroutine mutates the client's connManager/streamManager/subManager without synchronization while other methods read them (data race), or that connManager is published before the managers so a caller can pass checkClient and hit a nil manager. A comment only about the jet... | true | [] | [
"R3",
"R5"
] | [
"C8",
"C9",
"C17",
"N7",
"N10",
"N12",
"N9"
] | null | null | null | gofr-dev/gofr | 49ab39432cf4892ee84569099b8065dfe45fae92 |
gofr-dev__gofr@49ab394 | rest145 | 2 | D2 | SubscribeWithHandler was left without the new guard and now nil-derefs connManager when the initial connect failed | Before the PR ConnectionManager.Connect always returned nil, so Client.Connect always set c.connManager and SubscribeWithHandler got an error from jetStream() while disconnected. Now a failed first connect returns before `c.connManager = connManager` (client.go:49-57), leaving it nil until retryConnect succeeds. The PR... | incomplete-fix | low | [
{
"path": "pkg/gofr/datasource/pubsub/nats/client.go",
"from_line": 171,
"to_line": 181,
"role": "symptom"
},
{
"path": "pkg/gofr/datasource/pubsub/nats/client.go",
"from_line": 49,
"to_line": 55,
"role": "cause"
}
] | client.go:178 `js, err := c.connManager.jetStream()` with no checkClient; client.go:49-55 returns before assigning c.connManager; base connection_manager.go Connect was `go cm.retryConnect(); return nil`, so base Client.Connect always assigned connManager. | Must name SubscribeWithHandler (or the remaining unguarded connManager use) as panicking/lacking the nil/connected guard after a failed initial connect. Exported method with no framework caller, hence low. | true | [] | [] | [
"C6",
"N1",
"N5",
"N6",
"N9"
] | null | null | null | gofr-dev/gofr | 49ab39432cf4892ee84569099b8065dfe45fae92 |
gofr-dev__gofr@b9cdcbb | rest145 | 2 | D1 | Responses without metadata now serialise `"metadata": null` instead of omitting the field (contradicting the docs) | pkg/gofr/http/responder.go:32 copies v.Metadata (a map[string]any, nil when unset) into the envelope's `Metadata interface{}` field with omitempty (pkg/gofr/http/responder.go:97). A nil map stored in an interface is a non-nil interface, so encoding/json does not omit it: every handler returning response.Response withou... | contract | medium | [
{
"path": "pkg/gofr/http/responder.go",
"from_line": 31,
"to_line": 32,
"role": "cause"
},
{
"path": "pkg/gofr/http/responder.go",
"from_line": 95,
"to_line": 99,
"role": "cause"
},
{
"path": "pkg/gofr/http/responder_test.go",
"from_line": 59,
"to_line": 59,
"... | pkg/gofr/http/responder.go:32 `resp = response{Data: v.Data, Metadata: v.Metadata, Error: errorObj}`; :97 `Metadata interface{} \`json:"metadata,omitempty"\``; response.go:9 `Metadata map[string]any`; docs/advanced-guide/setting-custom-response-headers/page.md:30 'If metadata is omitted, the response defaults to: {"dat... | Must identify that absent metadata is emitted as `"metadata":null` (typed-nil map in interface defeats omitempty), or that the test pins null contrary to the docs. R2 and C9 claim the opposite (that omitempty omits it and the test would fail) and do not count. | true | [] | [] | [
"C3",
"C7",
"C10",
"N2",
"N3",
"N5"
] | null | null | null | gofr-dev/gofr | b9cdcbb2b9fc78499d15d51ffbb7c861592b0efe |
gofr-dev__gofr@b9cdcbb | rest145 | 2 | D2 | Removing the unwrap of resp.Data makes status codes be computed on the Response wrapper: errors return 206 and POST with nil data returns 201 | pkg/gofr/handler.go:99-102 no longer sets `result = resp.Data`, so Respond/getStatusCode receive the response.Response struct. getStatusCode (pkg/gofr/http/responder.go:57-64) returns 206 PartialContent whenever err != nil and data is non-nil — a struct value is never nil per isNil — so a handler returning `response.Re... | bug | medium | [
{
"path": "pkg/gofr/handler.go",
"from_line": 99,
"to_line": 102,
"role": "cause"
},
{
"path": "pkg/gofr/http/responder.go",
"from_line": 57,
"to_line": 64,
"role": "symptom"
},
{
"path": "pkg/gofr/http/responder.go",
"from_line": 73,
"to_line": 80,
"role": "o... | Base handler.go had `result = resp.Data` after SetCustomHeaders; head only calls `resp.SetCustomHeaders(w)`. pkg/gofr/http/responder.go:62 `if !isNil(data) { return http.StatusPartialContent, … }`; isNil (pkg/gofr/http/responder.go:108-115) is true only for nil or nil pointers; pkg/gofr/http/responder.go:76 `if data !=... | Must connect passing the Response wrapper (not its Data) to status selection with a wrong status code (206 on error, or 201 vs 202 on POST). | true | [] | [] | [
"C1",
"C2",
"C6",
"C8",
"N1",
"N4",
"N6",
"N7"
] | null | null | null | gofr-dev/gofr | b9cdcbb2b9fc78499d15d51ffbb7c861592b0efe |
gofr-dev__gofr@b9cdcbb | rest145 | 2 | D3 | A File or Raw payload wrapped in response.Response is no longer written in its own wire format | Previously the handler unwrapped response.Response to resp.Data, so `response.Response{Headers: …, Data: response.File{…}}` (e.g. to add Content-Disposition to a download) reached the File branch (pkg/gofr/http/responder.go:33-39) and wrote raw bytes with its content type, and a wrapped Raw reached the Raw branch. Now ... | compat | medium | [
{
"path": "pkg/gofr/http/responder.go",
"from_line": 31,
"to_line": 39,
"role": "cause"
},
{
"path": "pkg/gofr/handler.go",
"from_line": 99,
"to_line": 102,
"role": "cause"
}
] | pkg/gofr/http/responder.go:28-39 switch on the outer type: `case resTypes.Response: resp = response{Data: v.Data, …}` precedes and bypasses `case resTypes.File:` for a nested File; base handler.go `result = resp.Data` removed. | Must say nested File/Raw inside a Response lose their raw/file serialization (JSON-encoded instead). | false | [] | [] | [
"C4",
"N8"
] | null | null | null | gofr-dev/gofr | b9cdcbb2b9fc78499d15d51ffbb7c861592b0efe |
gofr-dev__gofr@b9cdcbb | rest145 | 2 | D4 | Response branch skips the typed-nil normalisation, so a nil pointer in Response.Data is now emitted as "data":null | pkg/gofr/http/responder.go:31-32 builds `response{Data: v.Data, ...}` directly from the wrapped Data, while the default branch (responder.go:40-44) first does `if isNil(data) { data = nil }`. Because handler.go:99-102 no longer unwraps `result = resp.Data`, a handler returning `response.Response{Data: (*T)(nil), Header... | compat | low | [
{
"path": "pkg/gofr/http/responder.go",
"from_line": 31,
"to_line": 32,
"role": "cause"
},
{
"path": "pkg/gofr/http/responder.go",
"from_line": 40,
"to_line": 44,
"role": "other-site"
},
{
"path": "pkg/gofr/handler.go",
"from_line": 99,
"to_line": 102,
"role":... | responder.go:31-32 `case resTypes.Response: resp = response{Data: v.Data, Metadata: v.Metadata, Error: errorObj}`; default branch :40-44 `// handling where an interface contains a nullable type with a nil value. if isNil(data) { data = nil }`; base handler.go:103 `result = resp.Data` removed. | Must say that the new Response case does not apply the isNil/typed-nil cleanup to Response.Data, so a nil pointer Data serialises as "data":null (previously omitted). The metadata-null issue is D1 and the 206/201 status-code issue is D2; neither counts here. | false | [] | [] | [
"N4"
] | extension-2026-09-28 | null | null | gofr-dev/gofr | b9cdcbb2b9fc78499d15d51ffbb7c861592b0efe |
gofr-dev__gofr@dc0b3e6 | rest145 | 2 | D1 | Credentials are double-encoded (QueryEscape then url.UserPassword), so users/passwords with special characters fail authentication | generateMongoURI sets `u.User = url.UserPassword(url.QueryEscape(config.User), url.QueryEscape(config.Password))` (pkg/gofr/datasource/mongo/mongo.go:156). url.UserPassword stores raw values and URL.String() (line 163) percent-encodes the userinfo itself, so the '%' produced by QueryEscape is escaped again ('a@b' -> 'a... | bug | high | [
{
"path": "pkg/gofr/datasource/mongo/mongo.go",
"from_line": 155,
"to_line": 157,
"role": "cause"
},
{
"path": "pkg/gofr/datasource/mongo/mongo.go",
"from_line": 108,
"to_line": 108,
"role": "symptom"
}
] | mongo.go:156 `u.User = url.UserPassword(url.QueryEscape(config.User), url.QueryEscape(config.Password))`; :163 `return u.String(), u.Hostname(), nil` (URL.String escapes userinfo, including '%'); :108 `mongo.Connect(ctx, options.Client().ApplyURI(uri))`. Tests only use admin/password with no escapable characters. | Must say QueryEscape before url.UserPassword double-encodes credentials (or that reserved-character passwords now fail auth). A generic 'escape the password' remark does not count; database-path double-encoding (C3/C8/C17) is a different, excluded claim. | true | [] | [
"R5"
] | [
"C4",
"C16",
"C20",
"N1",
"N3",
"N6",
"N9"
] | null | null | null | gofr-dev/gofr | dc0b3e630423b72cb9b2f273fdc18a5c11d12984 |
gofr-dev__gofr@dc0b3e6 | rest145 | 2 | D2 | Configured mongodb+srv:// URIs are rejected by the new scheme check, so Connect aborts and never connects | When Config.URI is set, generateMongoURI (mongo.go:131-137) always calls getDBHost, which returns errIncorrectURI unless `parsedURL.Scheme == "mongodb"` (lines 172-174). Valid `mongodb+srv://` connection strings (Atlas / DNS seed lists), which base code passed straight to ApplyURI, now make Connect log 'error generatin... | compat | high | [
{
"path": "pkg/gofr/datasource/mongo/mongo.go",
"from_line": 172,
"to_line": 174,
"role": "cause"
},
{
"path": "pkg/gofr/datasource/mongo/mongo.go",
"from_line": 92,
"to_line": 96,
"role": "symptom"
}
] | mongo.go:172 `if parsedURL.Scheme != "mongodb" { return "", errIncorrectURI }`; :132-135 URI branch returns the error; :93-95 `if err != nil { c.logger.Errorf("error generating mongo URI: %v", err); return }`. Base Connect: `uri := c.config.URI` used unvalidated. | Must say mongodb+srv (SRV) URIs are rejected by the exact-scheme check, breaking connection. A remark only about multi-host log output is a near-miss that does not count alone. | true | [] | [
"R6"
] | [
"C5",
"C7",
"C19",
"N2",
"N5",
"N6",
"N7"
] | null | null | null | gofr-dev/gofr | dc0b3e630423b72cb9b2f273fdc18a5c11d12984 |
gofr-dev__gofr@dc0b3e6 | rest145 | 2 | D3 | Malformed configured URI logs its credentials at error level via the url.Parse error | getDBHost returns the url.Parse error unchanged (mongo.go:167-169) and Connect logs it with Errorf (line 94). *url.Error's message embeds the full input (`parse "mongodb://alice:Secret@db:27017/app%ZZ": invalid URL escape ...`), so a credential-bearing URI that fails to parse (bad escape, bad port) writes the password ... | security | low | [
{
"path": "pkg/gofr/datasource/mongo/mongo.go",
"from_line": 167,
"to_line": 170,
"role": "cause"
},
{
"path": "pkg/gofr/datasource/mongo/mongo.go",
"from_line": 94,
"to_line": 94,
"role": "symptom"
}
] | mongo.go:167-169 `parsedURL, err := url.Parse(uri); if err != nil { return "", err }`; :94 `c.logger.Errorf("error generating mongo URI: %v", err)`; net/url Error.Error() is `fmt.Sprintf("%s %q: %s", e.Op, e.URL, e.Err)` with URL = the raw input. | Must say the parse error returned from getDBHost includes the raw URI (with credentials) and is logged. Only on a malformed-URI failure path, hence low. | false | [] | [] | [
"C2",
"C9"
] | null | null | null | gofr-dev/gofr | dc0b3e630423b72cb9b2f273fdc18a5c11d12984 |
gofr-dev__gofr@dc0b3e6 | rest145 | 2 | D4 | 'connecting to MongoDB' debug log prints an empty host for URI-based configs | Connect computes `host` from generateMongoURI but the debug log uses `c.config.Host` (mongo.go:98), which is empty when the config supplies URI, so the log reads 'connecting to MongoDB at to database ...' while the later logs use `host`. | bug | low | [
{
"path": "pkg/gofr/datasource/mongo/mongo.go",
"from_line": 98,
"to_line": 98,
"role": "cause"
}
] | mongo.go:98 `c.logger.Debugf("connecting to MongoDB at %v to database %v", c.config.Host, c.config.Database)` vs :116/:120/:127 using `host`. | Must point to c.config.Host vs the derived host in the debug log. | true | [] | [
"R3"
] | [
"C11",
"C18",
"N6",
"N8"
] | null | null | null | gofr-dev/gofr | dc0b3e630423b72cb9b2f273fdc18a5c11d12984 |
gofr-dev__gofr@2c0c099 | rest145 | 2 | D1 | sftp datasource go.mod/go.sum deleted while its sources stay: the package falls into the root module, which does not require github.com/pkg/sftp | The PR deletes pkg/gofr/datasource/file/sftp/go.mod and go.sum but leaves fs.go, file.go, fs_test.go etc. Without its own go.mod the directory becomes a package of root module gofr.dev; fs.go imports github.com/pkg/sftp and golang.org/x/crypto/ssh, and the root go.mod does not require github.com/pkg/sftp, so `go test g... | build | high | [
{
"path": "pkg/gofr/datasource/file/sftp/go.mod",
"from_line": 1,
"to_line": 25,
"role": "cause"
},
{
"path": "pkg/gofr/datasource/file/sftp/fs.go",
"from_line": 8,
"to_line": 10,
"role": "symptom"
},
{
"path": "go.mod",
"from_line": 1,
"to_line": 10,
"role": ... | `git ls-tree <head> pkg/gofr/datasource/file/sftp/` lists file.go, fs.go, fs_test.go, interface.go, logger.go, logger_test.go, mock_interface.go, no go.mod. fs.go:8 `"github.com/pkg/sftp"`. `git grep pkg/sftp <head> -- go.mod` finds nothing. Deleted go.mod required `github.com/pkg/sftp v1.13.6`. go.yml: `go test gofr.d... | Deleted file: lines are base-side of sftp/go.mod. Must say removing the sftp go.mod/go.sum while its code remains breaks dependency resolution/build (or drops the package from module-based CI). Remarks only about go/toolchain version bumps do not count. | true | [] | [] | [
"C14",
"N2",
"N11",
"N12"
] | null | null | null | gofr-dev/gofr | 2c0c0997cad66a1ee1e47f95db6a830394157c00 |
gofr-dev__gofr@2c0c099 | rest145 | 2 | D2 | examples/using-cron-jobs/main_test.go imports gofr.dev/pkg/gofr/testutil twice: compile error | The edit adds "gofr.dev/pkg/gofr/testutil" at line 4 while keeping the existing import at line 9. Importing the same package name twice in one file is a compile error ('testutil redeclared in this block'), so the example's test package fails to build and `go test gofr.dev/examples/...` fails. | build | high | [
{
"path": "examples/using-cron-jobs/main_test.go",
"from_line": 3,
"to_line": 10,
"role": "cause"
}
] | head main_test.go:4 `"gofr.dev/pkg/gofr/testutil"` and :9 `"gofr.dev/pkg/gofr/testutil"`. | Must point at the duplicate testutil import / compile failure. An import-ordering-only remark does not count. | true | [] | [] | [
"C13",
"C16",
"N2",
"N4",
"N8",
"N9"
] | null | null | null | gofr-dev/gofr | 2c0c0997cad66a1ee1e47f95db6a830394157c00 |
gofr-dev__gofr@2c0c099 | rest145 | 2 | D3 | external_db_test.go drops the strconv import but TestApp_AddScyllaDB still calls strconv.Itoa: pkg/gofr test package does not compile | The PR removes `"strconv"` from pkg/gofr/external_db_test.go's imports while converting the other tests to NewServerConfigs, but TestApp_AddScyllaDB (unchanged) still does `t.Setenv("METRICS_PORT", strconv.Itoa(port))` at line 188. Go imports are per file, so this is 'undefined: strconv' and the whole gofr package test... | build | high | [
{
"path": "pkg/gofr/external_db_test.go",
"from_line": 3,
"to_line": 12,
"role": "cause"
},
{
"path": "pkg/gofr/external_db_test.go",
"from_line": 186,
"to_line": 188,
"role": "symptom"
}
] | diff removes `- "strconv"` from external_db_test.go imports; head external_db_test.go:187-188 `port := testutil.GetFreePort(t)` / `t.Setenv("METRICS_PORT", strconv.Itoa(port))`; `git grep -n strconv <head> -- pkg/gofr/external_db_test.go` shows only line 188. | Must say strconv is still used (Scylla test) after its import was removed, so the test file/package fails to compile. | false | [] | [] | [
"C21"
] | null | null | null | gofr-dev/gofr | 2c0c0997cad66a1ee1e47f95db6a830394157c00 |
gofr-dev__gofr@2c0c099 | rest145 | 2 | D4 | http-server example: _Errors and _Health tests request fresh random ports where no server listens | Previously all three integration tests hit http://localhost:9000, served by the main() started in TestIntegration_SimpleAPIServer. Now each test calls testutil.NewServerConfigs(t), which allocates new ports, but only the first test starts main(). TestIntegration_SimpleAPIServer_Errors (main_test.go:70, request :99) and... | bug | high | [
{
"path": "examples/http-server/main_test.go",
"from_line": 69,
"to_line": 70,
"role": "cause"
},
{
"path": "examples/http-server/main_test.go",
"from_line": 99,
"to_line": 109,
"role": "symptom"
},
{
"path": "examples/http-server/main_test.go",
"from_line": 125,
... | head main_test.go:25-27 `configs := testutil.NewServerConfigs(t); go main()`; :70 and :126 `configs := testutil.NewServerConfigs(t)` with no go main(); :99 `http.NewRequest(http.MethodGet, configs.HTTPHost+tc.path, nil)`; :109 `b, err := io.ReadAll(resp.Body)`. port.go:43-45 picks fresh ports on every call. Base used `... | Must say the Errors/Health tests use new ports from NewServerConfigs on which no server runs. Generic port-allocation race remarks do not count. | true | [] | [] | [
"C1",
"C8",
"C9",
"C15",
"N1",
"N2",
"N5",
"N10"
] | null | null | null | gofr-dev/gofr | 2c0c0997cad66a1ee1e47f95db6a830394157c00 |
gofr-dev__gofr@2c0c099 | rest145 | 2 | D5 | http-server example: /trace case fails because main.go still points anotherService at localhost:9000 while the server now runs on a random port | TestIntegration_SimpleAPIServer now starts main() on the random HTTP_PORT from NewServerConfigs (main_test.go:25) instead of 9000 from configs/.env. main.go:22 registers `anotherService` at the hard-coded http://localhost:9000, which TraceHandler calls (main.go ~79) for /redis. Nothing listens on 9000, so /trace return... | bug | high | [
{
"path": "examples/http-server/main_test.go",
"from_line": 25,
"to_line": 38,
"role": "cause"
},
{
"path": "examples/http-server/main.go",
"from_line": 22,
"to_line": 22,
"role": "other-site"
}
] | main.go:22 `a.AddHTTPService("anotherService", "http://localhost:9000")`; TraceHandler `resp, err := c.GetHTTPService("anotherService").Get(c, "redis", nil); if err != nil { return nil, err }`; main_test.go:38 `{"trace handler", "/trace", ""}`; configs/.env `HTTP_PORT=9000` (godotenv.Load does not override the t.Setenv... | Must connect the dynamic HTTP port to the hard-coded :9000 downstream used by the trace handler. Comments only about the Errors/Health tests belong to D4. | false | [] | [] | [
"C2",
"C3",
"N13"
] | null | null | null | gofr-dev/gofr | 2c0c0997cad66a1ee1e47f95db6a830394157c00 |
gofr-dev__gofr@2c0c099 | rest145 | 2 | D6 | TestContext_WriteMessageToSocket dials right after `go app.Run()` with no wait: racy/flaky | The PR replaces the synchronously listening httptest.NewServer with `go app.Run()` and dials ws://localhost:<HTTPPort>/ws on the next lines. app.Run starts the listener asynchronously, so the Dial can race ahead and get connection refused, failing require.NoError. Other tests using go app.Run() sleep 100ms first (webso... | bug | medium | [
{
"path": "pkg/gofr/context_test.go",
"from_line": 96,
"to_line": 102,
"role": "cause"
}
] | head context_test.go:96 `go app.Run()`, :98 `wsURL := fmt.Sprintf("ws://localhost:%d/ws", configs.HTTPPort)`, :101-102 `ws, resp, err := websocket.DefaultDialer.Dial(wsURL, nil); require.NoError(t, err)`. Base dialled `server.URL` of `httptest.NewServer(app.httpServer.router)`. | Must identify the missing wait/readiness between go app.Run() and the Dial (or that removing httptest made it racy). | true | [] | [] | [
"C5",
"C20",
"N2",
"N3",
"N6",
"N7"
] | null | null | null | gofr-dev/gofr | 2c0c0997cad66a1ee1e47f95db6a830394157c00 |
gofr-dev__gofr@2c0c099 | rest145 | 2 | D7 | Edited test files violate enabled golangci-lint rules (gci grouping, thelper, whitespace) | The root-module lint job runs golangci-lint with gci (standard/default/localmodule), thelper and whitespace enabled and no _test.go exclusion for them. The PR puts "gofr.dev/pkg/gofr/testutil" in the standard-library group in pkg/gofr/websocket_test.go:6 and context_test.go:7 (and into the third-party group in examples... | build | medium | [
{
"path": "pkg/gofr/websocket_test.go",
"from_line": 6,
"to_line": 6,
"role": "cause"
},
{
"path": "pkg/gofr/context_test.go",
"from_line": 7,
"to_line": 7,
"role": "cause"
},
{
"path": "pkg/gofr/gofr_test.go",
"from_line": 862,
"to_line": 863,
"role": "cause"... | .golangci.yml gci sections standard/default/localmodule; enable list includes gci, thelper, whitespace, wsl; exclude-rules for _test.go only gomnd/dupl/goconst. go.yml 'Lint Root Module' golangci-lint-action v1.62 on `.`. head websocket_test.go:5-7 `"fmt"` / `"gofr.dev/pkg/gofr/testutil"` / `"net/http/httptest"`. | Counts if a comment flags the misplaced gofr.dev testutil import grouping, the removed t.Helper(), or the leading blank lines as lint failures. | true | [] | [] | [] | null | null | null | gofr-dev/gofr | 2c0c0997cad66a1ee1e47f95db6a830394157c00 |
gofr-dev__gofr@2c0c099 | rest145 | 2 | D8 | Test_AddDuplicateHTTPService lost its METRICS_PORT isolation: New() now checks default port 2121 and Fatalf's the test binary if it is taken | The PR deletes the METRICS_PORT setup inside Test_AddDuplicateHTTPService (gofr_test.go:202-205) without replacing it with NewServerConfigs. New() (gofr.go:77-84) then falls back to defaultMetricPort 2121 and calls Logger.Fatalf if that port is unavailable, which exits the whole test process whenever 2121 is occupied (... | bug | low | [
{
"path": "pkg/gofr/gofr_test.go",
"from_line": 199,
"to_line": 208,
"role": "cause"
},
{
"path": "pkg/gofr/gofr.go",
"from_line": 77,
"to_line": 84,
"role": "other-site"
}
] | diff removes `metricsPort := testutil.GetFreePort(t)` / `t.Setenv("METRICS_PORT", ...)` in Test_AddDuplicateHTTPService with nothing added; gofr.go:82-83 `if !isPortAvailable(port) { app.container.Logger.Fatalf("metrics port %d is blocked or unreachable", port) }`. | Must say this test no longer sets an isolated metrics port so New() uses the default and can fail/abort. | false | [] | [] | [
"C4",
"C18"
] | null | null | null | gofr-dev/gofr | 2c0c0997cad66a1ee1e47f95db6a830394157c00 |
gofr-dev__gofr@2c0c099 | rest145 | 2 | D9 | Unrelated go.mod bump to go 1.22.7 / toolchain go1.23.4 in root, ftp and s3 | A test-helper PR changes root go.mod from `go 1.22`/`toolchain go1.22.10` to `go 1.22.7`/`toolchain go1.23.4` (ftp/s3 likewise). The go line raises the minimum Go for consumers (1.22.0-1.22.6 with GOTOOLCHAIN=local can no longer build), and the toolchain line makes GOTOOLCHAIN=auto switch CI's Go 1.22 lanes to 1.23.4, ... | compat | low | [
{
"path": "go.mod",
"from_line": 3,
"to_line": 5,
"role": "cause"
},
{
"path": "pkg/gofr/datasource/file/ftp/go.mod",
"from_line": 3,
"to_line": 5,
"role": "other-site"
},
{
"path": "pkg/gofr/datasource/file/s3/go.mod",
"from_line": 3,
"to_line": 5,
"role": "o... | go.mod diff `-go 1.22` `-toolchain go1.22.10` `+go 1.22.7` `+toolchain go1.23.4`; ftp `-go 1.22.3`, s3 `-go 1.22.4` to the same. | Counts if a comment questions the go/toolchain directive bump as unintended or inconsistent with supported versions/CI. | true | [] | [
"R1",
"R2",
"R3",
"R4"
] | [
"C7",
"C12"
] | null | null | null | gofr-dev/gofr | 2c0c0997cad66a1ee1e47f95db6a830394157c00 |
gofr-dev__gofr@2c0c099 | rest145 | 2 | D10 | Doc comment of exported NewServerConfigs names a nonexistent ServerConfigsProvider | testutil/port.go:37 begins `// ServerConfigsProvider sets up server configurations...` but the function is NewServerConfigs (line 40), so godoc does not associate the comment correctly and golint-style checks flag it. | maintainability | low | [
{
"path": "pkg/gofr/testutil/port.go",
"from_line": 37,
"to_line": 40,
"role": "cause"
}
] | port.go:37 `// ServerConfigsProvider sets up server configurations for testing and returns a ServiceConfigs struct.`; :40 `func NewServerConfigs(t *testing.T) *ServiceConfigs {`. | Must point out the comment/function name mismatch. The Server vs Service naming nit alone does not count. | true | [] | [
"R5",
"R6"
] | [
"C6",
"C10"
] | null | null | null | gofr-dev/gofr | 2c0c0997cad66a1ee1e47f95db6a830394157c00 |
gofr-dev__gofr@5e284ae | rest145 | 2 | D1 | Per-request swap of the shared container.Logger races across concurrent requests: trace IDs leak between requests and a stale request logger can stay installed | handler.container is one *container.Container shared by every route and in-flight request (handler.go:41), and gofr.Context embeds it, so c.Logger reads the shared embedded field. ServeHTTP (handler.go:71-75) does origLogger := h.container.Logger; h.container.Logger = NewContextLogger(c.Context, origLogger); defer rest... | concurrency | high | [
{
"path": "pkg/gofr/handler.go",
"from_line": 66,
"to_line": 75,
"role": "cause"
},
{
"path": "pkg/gofr/handler.go",
"from_line": 85,
"to_line": 92,
"role": "symptom"
},
{
"path": "pkg/gofr/logging/logger.go",
"from_line": 251,
"to_line": 267,
"role": "other-s... | handler.go:41 `container *container.Container`; :71-75 `origLogger := h.container.Logger` / `h.container.Logger = ctxLogger` / `defer func() { h.container.Logger = origLogger }()`; container.go:44 Container embeds `logging.Logger`; context.go newContext sets `Container: c` (same pointer for every request); :87 and... | Must say the request-scoped logger is written onto the shared container (global mutable state) so concurrent requests race / log each other's trace IDs / a stale wrapper can remain installed. Saying logError/panic recovery should use the local ctxLogger because of this race also counts (R2). A bare comment about multip... | true | [] | [
"R1",
"R2"
] | [
"C12",
"C15",
"C20",
"C21",
"N7",
"N9",
"N10",
"N11"
] | null | null | null | gofr-dev/gofr | 5e284aec0447be34c96a252e959067c8bcd9cd4c |
gofr-dev__gofr@5e284ae | rest145 | 2 | D2 | On request timeout the deferred restore removes the trace logger while the handler goroutine is still running, so its later logs and error log lose the trace ID | When requestTimeout fires, ServeHTTP takes the c.Context.Done() branch (handler.go:96-100), responds and returns; the defer at :75 restores the original logger while h.function is still running in the goroutine started at :85. Its subsequent c.Logger calls and h.logError(h.container.Logger, err) at :91 (and panic recov... | bug | low | [
{
"path": "pkg/gofr/handler.go",
"from_line": 75,
"to_line": 75,
"role": "cause"
},
{
"path": "pkg/gofr/handler.go",
"from_line": 85,
"to_line": 105,
"role": "symptom"
}
] | handler.go:59-63 timeout context; :75 `defer func() { h.container.Logger = origLogger }()`; :87 `panicRecoveryHandler(recover(), h.container.Logger, panicked)`; :91 `h.logError(h.container.Logger, err)`; :96-100 returns on `c.Context.Done()` without waiting for `done`. Base side captured `traceID := trace.SpanFromConte... | Must describe the timeout path: ServeHTTP returns/restores before the handler goroutine finishes so its later logs/error log lack the request trace ID. The concurrent-request race alone is D1. | false | [] | [] | [
"C16",
"C18",
"C26",
"N2",
"N8",
"N12"
] | null | null | null | gofr-dev/gofr | 5e284aec0447be34c96a252e959067c8bcd9cd4c |
gofr-dev__gofr@5e284ae | rest145 | 2 | D3 | Removing the exported ErrorLogEntry.TraceID field breaks callers that set or read it | ErrorLogEntry is an exported type in package gofr; the PR deletes its exported TraceID field (handler.go:45-47). Any downstream code constructing ErrorLogEntry{TraceID: ...} or reading entry.TraceID stops compiling against this version, with no deprecation path. | contract | low | [
{
"path": "pkg/gofr/handler.go",
"from_line": 45,
"to_line": 47,
"role": "cause"
}
] | Base: `type ErrorLogEntry struct { TraceID string `json:"trace_id,omitempty"`; Error string ... }`; head handler.go:45-47 `type ErrorLogEntry struct { Error string `json:"error,omitempty"` }`. | Must name the removal of the exported TraceID field as a public API/compile break. Comments about the JSON log schema moving trace_id (C17) do not count. | false | [] | [] | [
"C6"
] | null | null | null | gofr-dev/gofr | 5e284aec0447be34c96a252e959067c8bcd9cd4c |
comfyanonymous__ComfyUI@4dcd698 | rest145 | 2 | D1 | lora_dtype default 'bf32' is not an offered option, so Train LoRA fails with default values | nodes_train.py:344-347 declares lora_dtype choices ['bf16','fp32'] but default 'bf32'. execution.py:736 combo validation rejects a value not in the list ('Value not in list'), and even if it passed, node_helpers.string_to_torch_dtype('bf32') returns None (node_helpers.py:46-52), so the adapter .to(lora_dtype) calls get... | bug | medium | [
{
"path": "comfy_extras/nodes_train.py",
"from_line": 344,
"to_line": 347,
"role": "cause"
},
{
"path": "comfy_extras/nodes_train.py",
"from_line": 389,
"to_line": 389,
"role": "symptom"
}
] | nodes_train.py:345-346 `["bf16", "fp32"], {"default": "bf32", ...}`; node_helpers.string_to_torch_dtype maps only fp32/fp16/bf16. | Must say the default 'bf32' is invalid / not among the choices / not a recognised dtype. | true | [] | [
"R14"
] | [
"C10",
"C22",
"C42",
"N3"
] | null | null | null | comfyanonymous/ComfyUI | 4dcd698e489da69294ee01de0350a9a02e3e4b41 |
comfyanonymous__ComfyUI@4dcd698 | rest145 | 2 | D2 | Only one random batch is ever trained on; the rest of the dataset is ignored | train() samples `indices = torch.randperm(num_images)[:batch_size]` and VAE-encodes that batch once (nodes_train.py:381-386) before the loop; every step at :503-514 reuses the same `encoded` tensor. With more images than batch_size (default 1) all other images are never seen. | bug | medium | [
{
"path": "comfy_extras/nodes_train.py",
"from_line": 381,
"to_line": 386,
"role": "cause"
},
{
"path": "comfy_extras/nodes_train.py",
"from_line": 503,
"to_line": 514,
"role": "symptom"
}
] | nodes_train.py:382-386 before the loop; :513 `{"samples": encoded.clone()}` each step. | Must say the batch is selected/encoded once outside the loop so remaining images are never used. | true | [] | [] | [
"C31",
"C49"
] | null | null | null | comfyanonymous/ComfyUI | 4dcd698e489da69294ee01de0350a9a02e3e4b41 |
comfyanonymous__ComfyUI@4dcd698 | rest145 | 2 | D3 | Selecting an existing LoRA whose filename lacks the '<n>_steps_' pattern crashes with ValueError | existing_steps = int(existing_lora.split('_steps_')[0].split('_')[-1]) (nodes_train.py:403) is applied to any file from the full loras list (:349). Ordinary LoRA names, and this node's own output saved without steps ('{prefix}_{date}_lora.safetensors', :599), raise ValueError and abort training. | bug | medium | [
{
"path": "comfy_extras/nodes_train.py",
"from_line": 400,
"to_line": 403,
"role": "cause"
},
{
"path": "comfy_extras/nodes_train.py",
"from_line": 598,
"to_line": 599,
"role": "other-site"
}
] | nodes_train.py:403; options from folder_paths.get_filename_list('loras') at :349. | Must name the filename-based int parse of the step count failing for non-matching names. | true | [] | [
"R15"
] | [
"C23",
"C33",
"C46",
"N3",
"N5",
"N8",
"N17"
] | null | null | null | comfyanonymous/ComfyUI | 4dcd698e489da69294ee01de0350a9a02e3e4b41 |
comfyanonymous__ComfyUI@4dcd698 | rest145 | 2 | D4 | SaveLoRA writes to a CWD-relative 'models/loras/' path instead of the configured loras directory | SaveLoRA.save builds f'models/loras/{prefix}_...safetensors' (nodes_train.py:599/601) relative to the process working directory, ignoring folder_paths (models_dir derives from base_path/--base-directory, folder_paths.py:18-30). Started from another directory or with --base-directory / extra model paths, the save raises... | bug | medium | [
{
"path": "comfy_extras/nodes_train.py",
"from_line": 596,
"to_line": 602,
"role": "cause"
}
] | nodes_train.py:599-602 literal 'models/loras/'; folder_paths.py base_path from args.base_directory or dirname(__file__). | Must say the output path is hardcoded/relative to CWD rather than via folder_paths. Path-traversal via prefix is a separate defect (D5). | true | [] | [] | [
"C28",
"C43",
"N3",
"N9",
"N10"
] | null | null | null | comfyanonymous/ComfyUI | 4dcd698e489da69294ee01de0350a9a02e3e4b41 |
comfyanonymous__ComfyUI@4dcd698 | rest145 | 2 | D5 | User-supplied filename prefixes are written without path containment (SaveLoRA and Plot Loss Graph) | SaveLoRA interpolates the workflow STRING `prefix` into the output path (nodes_train.py:599/601) and LossGraphNode joins `filename_prefix` onto the temp dir (:680-681) with no containment check; a prefix like '../../x' writes files outside the intended directory. The repo's existing save path (folder_paths.get_save_ima... | security | medium | [
{
"path": "comfy_extras/nodes_train.py",
"from_line": 599,
"to_line": 602,
"role": "cause"
},
{
"path": "comfy_extras/nodes_train.py",
"from_line": 679,
"to_line": 683,
"role": "cause"
}
] | nodes_train.py:599 `f"models/loras/{prefix}_..."`; :681 `os.path.join(self.output_dir, f"{filename_prefix}_{date}.png")`; folder_paths.py:387 commonpath check used by other save nodes. | Must say the prefix / filename_prefix can contain traversal components and escape the destination directory. Either site counts. Not: the hardcoded relative path (D4). Not: the folder input of Load Image Dataset (combo-validated). | false | [] | [] | [
"C3",
"C16",
"C20",
"C35",
"N3",
"N16"
] | null | null | null | comfyanonymous/ComfyUI | 4dcd698e489da69294ee01de0350a9a02e3e4b41 |
comfyanonymous__ComfyUI@4dcd698 | rest145 | 2 | D6 | Resuming from an existing LoRA drops its trained 1-D weight diffs and bias diffs | When existing_lora is set only >=2-D weights are restored through the adapter loader; 1-D weight diffs ('{n}.diff') and bias diffs ('{n}.diff_b') are always recreated as zeros (nodes_train.py:443-460), so the previously trained values are discarded and the re-saved LoRA loses them. | data | low | [
{
"path": "comfy_extras/nodes_train.py",
"from_line": 442,
"to_line": 460,
"role": "cause"
}
] | nodes_train.py:444-446 and :454-456 torch.zeros regardless of existing_weights; the trainer itself saves '{n}.diff'/'{n}.diff_b' (:451/:458), which comfy/lora.py:72-82 reads at inference. | Must say existing diff/diff_b (bias or 1-D) values are not loaded on resume. | true | [] | [] | [
"C14",
"C47",
"N3"
] | null | null | null | comfyanonymous/ComfyUI | 4dcd698e489da69294ee01de0350a9a02e3e4b41 |
comfyanonymous__ComfyUI@4dcd698 | rest145 | 2 | D7 | Resuming misreads the existing LoRA's alpha, changing its effective scale | Alpha is looked up as f'{key}.alpha' with key='{n}.weight' (nodes_train.py:411,414), but LoRA files and this trainer's own output store '{n}.alpha' (named_parameters 'alpha' at :437-438; comfy/lora.py:41). So a stored non-1.0 alpha is replaced by 1.0; and a LoRA with no alpha (inference scale 1.0, lora.py:169-172) resu... | data | low | [
{
"path": "comfy_extras/nodes_train.py",
"from_line": 411,
"to_line": 414,
"role": "cause"
},
{
"path": "comfy/weight_adapter/lora.py",
"from_line": 50,
"to_line": 50,
"role": "symptom"
}
] | nodes_train.py:414 `existing_weights.get(f"{key}.alpha", 1.0)`; comfy/lora.py:41 `alpha_name = "{}.alpha".format(x)`; weight_adapter/lora.py:169-172 alpha None -> 1.0. | Either the wrong key ('.weight.alpha') or the missing-alpha → 1/rank scale mismatch counts. | true | [] | [] | [
"C37",
"C52",
"C39",
"N3",
"N12"
] | null | null | null | comfyanonymous/ComfyUI | 4dcd698e489da69294ee01de0350a9a02e3e4b41 |
comfyanonymous__ComfyUI@4dcd698 | rest145 | 2 | D8 | Resuming a DoRA / reshape-weight LoRA ignores dora_scale and reshape | LoraDiff unpacks dora_scale and reshape (lora.py:18) but __call__ (lora.py:42-52) applies only w + scale*diff, unlike calculate_weight which applies weight_decompose and pad_tensor_to_shape (lora.py:163-190); in addition the trainer looks dora_scale up under '{n}.weight.dora_scale' (nodes_train.py:415-417) rather than ... | data | low | [
{
"path": "comfy/weight_adapter/lora.py",
"from_line": 42,
"to_line": 52,
"role": "cause"
},
{
"path": "comfy_extras/nodes_train.py",
"from_line": 415,
"to_line": 417,
"role": "other-site"
}
] | lora.py:18 `mat1, mat2, alpha, mid, dora_scale, reshape = weights` and neither used in __call__. | Must say DoRA scale (or reshape) is ignored/lost in the training conversion. | false | [] | [] | [
"C17",
"C25",
"N3"
] | null | null | null | comfyanonymous/ComfyUI | 4dcd698e489da69294ee01de0350a9a02e3e4b41 |
comfyanonymous__ComfyUI@4dcd698 | rest145 | 2 | D9 | Resume looks up existing LoRA keys only by raw module name, silently starting fresh for alias-keyed files | The trainer calls adapter_cls.load(n, existing_weights, ...) with the raw module name n (nodes_train.py:418-421), while inference maps accepted aliases such as 'lora_unet_...' to model keys (comfy/lora.py:180-204). A LoRA in those formats matches nothing, so every module takes the fresh-init branch (:432-436) with no w... | incomplete-fix | low | [
{
"path": "comfy_extras/nodes_train.py",
"from_line": 418,
"to_line": 436,
"role": "cause"
}
] | nodes_train.py:419 `adapter_cls.load(n, existing_weights, alpha, dora_scale)`; comfy/lora.py:183/193 key_map['lora_unet_...']. | Must say alias/kohya-style keys are not resolved so the existing LoRA is silently not loaded. | false | [] | [] | [
"C26",
"N11"
] | null | null | null | comfyanonymous/ComfyUI | 4dcd698e489da69294ee01de0350a9a02e3e4b41 |
comfyanonymous__ComfyUI@4dcd698 | rest145 | 2 | D10 | Resuming from a conv (LoCon/tucker) LoRA crashes in LoraDiff construction | LoraDiff.__init__ (lora.py:21-36) picks the conv class with index mid.ndim-2 (Conv3d for a 4-D mid), constructs Conv layers without kernel_size, and calls layer(mid, rank) passing a tensor as in_channels, so any LoRA with lora_mid raises TypeError; a conv LoRA without mid has 4-D up/down tensors that cannot copy_ into ... | bug | low | [
{
"path": "comfy/weight_adapter/lora.py",
"from_line": 21,
"to_line": 36,
"role": "cause"
},
{
"path": "comfy_extras/nodes_train.py",
"from_line": 430,
"to_line": 431,
"role": "symptom"
}
] | lora.py:35 `self.lora_mid = layer(mid, rank, bias=False)`; :22-27 `(Conv1d, Conv2d, Conv3d)[mid.ndim - 2]`; :30-31 no kernel_size. | Any of: tensor passed as channel count, wrong Conv class for mid dims, missing kernel_size, 4-D up/down into Linear. Not R8 (tucker reshape). | true | [] | [] | [
"C6",
"C11",
"C21",
"C32",
"C38",
"C41",
"C48",
"N3",
"N7",
"N18",
"N20",
"N22"
] | null | null | null | comfyanonymous/ComfyUI | 4dcd698e489da69294ee01de0350a9a02e3e4b41 |
comfyanonymous__ComfyUI@4dcd698 | rest145 | 2 | D11 | Resuming from a non-LoRA adapter file (LoHa/LoKr/OFT/BOFT/GLoRA) raises NotImplementedError | The resume loop tries every registered adapter class (nodes_train.py:418-423) and unconditionally calls existing_adapter.to_train() (:431), but only LoRAAdapter implements to_train; WeightAdapterBase.to_train raises NotImplementedError (base.py:18-19). | bug | low | [
{
"path": "comfy_extras/nodes_train.py",
"from_line": 418,
"to_line": 431,
"role": "cause"
},
{
"path": "comfy/weight_adapter/base.py",
"from_line": 18,
"to_line": 19,
"role": "other-site"
}
] | base.py:18-19; lora.py:77-78 is the only to_train. | Must say non-LoRA adapter types reach to_train and fail. R6 (create_train on subclasses) is a near-miss and does not count. | true | [] | [] | [
"C7",
"C12",
"N4"
] | null | null | null | comfyanonymous/ComfyUI | 4dcd698e489da69294ee01de0350a9a02e3e4b41 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.