Skip to content

Report extraction-relative source paths from artifact_processor#1656

Merged
abrignoni merged 1 commit into
mainfrom
relative-source-paths
Jul 6, 2026
Merged

Report extraction-relative source paths from artifact_processor#1656
abrignoni merged 1 commit into
mainfrom
relative-source-paths

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Mirror of ALEAPP #931: artifact_processor now passes every returned source_path through Context.get_relative_path() (per newline segment), so reports show extraction-relative paths instead of the examiner's local filesystem. Passthrough semantics keep literals, already-relative paths, and no-data_folder runs untouched.

Also clears ilapfuncs.py's pre-existing lint debt (9.57 → 10.00, 35 messages) with zero-behavior-change treatments, same approach as the ALEAPP PR — explicit datetime imports, shadowed-name local renames, dead-code removal, f-string fixes, and inline pragmas where API params (id, type, source_file) or exception semantics must stay untouched.

Testing: shorten-logic unit tests pass (relative, literal, multi-path); pylint 10.00/10; byte-compile; PluginLoader registers all plugins; timezone/datetime/timedelta re-exports verified intact.

Row-level Source File column sweep for iLEAPP to follow separately (as in ALEAPP #932).

Mirror of ALEAPP #931: artifacts overwhelmingly return the raw absolute
on-disk path as source_path, leaking the examiner's local filesystem into
HTML report headers and LAVA metadata. Shorten centrally in the decorator:
each newline-separated segment passes through Context.get_relative_path,
which returns its input unchanged when the data_folder prefix is absent
(literals, already-relative paths, runs without a data_folder).

Also clears the file's pre-existing lint debt (9.57 -> 10.00) with
zero-behavior-change treatments: explicit datetime imports, local renames
for shadowed names, dead pass/unused-var cleanups, no-interpolation
f-string fixes, a reworded fixme, and inline pragmas where changing public
API signatures or exception behavior would risk compatibility.
@abrignoni abrignoni merged commit 0fe8123 into main Jul 6, 2026
1 check passed
@abrignoni abrignoni deleted the relative-source-paths branch July 6, 2026 19:26
abrignoni added a commit that referenced this pull request Jul 6, 2026
Shorten per-row Source File paths (follow-up to #1656) + dmss data_list fix
Slay3r00 pushed a commit to Slay3r00/iLEAPP that referenced this pull request Jul 6, 2026
Follow-up to abrignoni#1656 (central source_path shortening): these artifacts also
place the absolute on-disk path inside a per-record Source File column.
Wrap the row-inserted copy with context.get_relative_path.

- appItunesmeta: parent directory of the iTunesMetadata plist
- voiceTriggers: the info json path
- dmss: the media file path; also fixes a pre-existing bug where the
  function returned data_headers twice, discarding the built data_list
  entirely (the artifact output its own headers as rows).

Audit note: all other flagged candidates were verified false positives -
BeReal, burnerCache, discord_cache, tikTok, discordChats, walStrings,
mobileInstallb, sysShutdown and booking already shorten via their own
helpers or emit device-side paths/basenames.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant