Skip to content

Copy/pasting hashes into an existing system:hash predicate overwrites the hashes already present #2015

@Cguy7777

Description

@Cguy7777

Hydrus version

v670

Qt major version

Qt 6

Operating system

Linux (specify distro and version in comments)

Install method

Running from source

Install and OS comments

Pop!_OS 22.04 LTS

Bug description and reproduction

  1. Add a system:hash predicate with at least one hash to a search.
  2. Copy hashes from one or more files not listed in that predicate using share→copy hash.
  3. Attempt to add more hashes through search→edit on the predicate, scrolling to the end of the hash list and hitting enter to start a new line, and pasting in the new hashes.

Expected result: The additional hashes are added alongside the existing ones.

Actual result: The original hashes are deleted and replaced with the new ones.

Note: this only happens when prefixes are present in the pasted text.
sha256:84f0233b39cacb0cd20e8eaaf777b68d06c68939e5d15d2e8fe75204981ade1a: causes bug.
84f0233b39cacb0cd20e8eaaf777b68d06c68939e5d15d2e8fe75204981ade1a: pastes in normally.

Log output


Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions