gchq / gchq/CyberChef

bug(Hex Dump): Silence of Errors the output, only displayed on console

Open
#2,410 4 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
35.8k
Forks
4.1k
Avg merge
2d 26m
Merged PRs (30d)
33

Description

drag hexdump and put on the recipe/input `AAAAAAAAAAAAAAAAAAAAABrTYtyRTrTtYGc`, as you can see the eroor only appear on the console but not on the output, it instead displayed

```rust
00000000 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 |AAAAAAAAAAAAAAAA|
00000010 41 41 41 41 41 42 72 54 59 74 79 52 54 72 54 74 |AAAAABrTYtyRTrTt|
00000020 59 47 63 |YGc|
```

only on console the error appears on

```js
[BGChefWorker]: Invalid character ' ' at index 8 6 [f4b7eda4-39cb-4a83-9fb5-6af27cdb76a9:2:2461773](blob:https://gchq.github.io/f4b7eda4-39cb-4a83-9fb5-6af27cdb76a9)
methodFactory blob:https://gchq.github.io/f4b7eda4-39cb-4a83-9fb5-6af27cdb76a9:2
e blob:https://gchq.github.io/f4b7eda4-39cb-4a83-9fb5-6af27cdb76a9:2
b blob:https://gchq.github.io/f4b7eda4-39cb-4a83-9fb5-6af27cdb76a9:2
c blob:https://gchq.github.io/f4b7eda4-39cb-4a83-9fb5-6af27cdb76a9:2
i blob:https://gchq.github.io/f4b7eda4-39cb-4a83-9fb5-6af27cdb76a9:2
r blob:https://gchq.github.io/f4b7eda4-39cb-4a83-9fb5-6af27cdb76a9:2
s blob:https://gchq.github.io/f4b7eda4-39cb-4a83-9fb5-6af27cdb76a9:2
```

that is improper error handling, errors are only only in console but the output it not displayed any error

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue by dragging Hex Dump onto the recipe/input and entering `AAAAAAAAAAAAAAAAAAAAABrTYtyRTrTtYGc`. Trace how the Hex Dump operation reports the invalid-character error; done means the error is displayed in the operation output instead of only in the browser console.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.