openbullet / openbullet/OpenBullet2

[Bug]: variable inside data.COOKIES["<name>"] doesn't parse the cookie

Open
#1,238 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C#
Stars
2.4k
Forks
602
PR merge metrics
No merged PRs in 30d

Description

This issue respects the following points:
  • This is a bug, not a question or a configuration issue; Please visit our forum first to troubleshoot with volunteers, before creating a report. The links can be found here.
  • This issue is not already reported on GitHub (I've searched it).
  • I'm using an up to date version of OpenBullet2. We generally do not support previous older versions. If possible, please update to the latest version before opening an issue.
  • I agree to follow OpenBullet's Code of Conduct.
  • This report addresses only a single issue; If you encounter multiple issues, kindly create separate reports for each one.
Description of the bug

i'm trying to do something like this: data.COOKIES[""] to parse a cookie, but it doesn't work, alternatively create a constantStringOutput with value data.COOKIES["name"], then trying to parse the cookie value using constantStringOutput instead of data.COOKIES["name"] in the parse block, but it doesn't extract the cookie value

could you make it work? because i have a translation block and the the cookie name changes according to the site name

Reproduction steps

i'm trying to do something like this: data.COOKIES[""] to parse a cookie, but it doesn't work, alternatively create a constantStringOutput with value data.COOKIES["name"], then trying to parse the cookie value using constantStringOutput instead of data.COOKIES["name"] in the parse block, but it doesn't extract the cookie value

could you make it work? because i have a translation block and the the cookie name changes according to the site name

What is the current bug behavior?

a variable inside data.COOKIES[""] doesn't extract the cookie value

What is the expected correct behavior?

expected behavior is that if we put data.COOKIES[""] it would extract a site cookie value

Version of the client

0.3.2

Type of client

Native client

Environment
- OS: irrelevant
- Virtualization:
- Browser:
OpenBullet2 logs

Client / Browser logs

No response

Relevant screenshots or videos

No response

Relevant LoliCode if needed

Additional information

No response

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.

Research direction

Start by reproducing the issue in the Native client using data.COOKIES[""] in a Parse block, then compare it with data.COOKIES["name"] and a ConstantStringOutput. Trace how the Parse block evaluates cookie expressions and translation-block variables. Done means a variable cookie name extracts the expected site cookie value.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.