ProxymanApp / ProxymanApp/Proxyman

[Bug Report] Protobuf boolean field appears as number in protobuf parsed view

Open
#1,479 5 comments 0 reactions 1 assignee View on GitHub

@NghiaTranUIT is already working on this.

Since Nov 18, 2024.

bug
Dominant language
No language data
Stars
7k
Forks
237
PR merge metrics
No merged PRs in 30d

Description

Description

I'm not sure, if it's only for me or not, but in my case, every boolean field of protobuf message appears as number.
So if the value is true, it shows as 1 (in JSON form of protobuf parsed value), and if the value is false, it is not shown entirely (because it is default value which doesn't include an actual value in packet?)

Steps to Reproduce

  1. Set Any protobuf message that has a boolean field in Protobuf Rules.
  2. Check that field value in protobuf parsed view in request or response tab.

Current Behavior

Boolean field value appears as number. (1 or nothing)

Expected Behavior

Boolean field value appears as boolean. (true or nothing)

Environment

  • App version: Proxyman 3.15.0
  • macOS version: macOS Ventura 13.1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.