question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Breaks Related Issues

See original GitHub issue

Hello @Ilogeek,

Thanks for maintaining this very useful plugin.

I am on Redmine 4.2. I have a weird problem where this somehow makes adding a related issue return 422, I am forcing the HTTPs request through the configuration and the event listener is set for double clicks to not interfere. Disabling the plugin, I get the ability to add related tasks back but otherwise, it always returns 422.

Is there anything I am missing to enable the related issues or to contribute to the plugin?

While plugin is active its send the Accept header of

text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9

while if I disable the plugin:

text/javascript, application/javascript, application/ecmascript, application/x-ecmascript, */*; q=0.01

and addition to the cookie normally it sends X-CSRF-TOKEN with the session token.

These are the only discrepancies between the two requests but I am not sure which is related.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
jwvcommented, Apr 24, 2022

@Ilogeek You’re right. I fixed it months ago, but I didn’t know the right solution, was afraid of my “hack”. Next time I will make a pull request. Thank you for the plugin.

1reaction
Ilogeekcommented, Apr 24, 2022

Hi @cenk1cenk2 and @boogiebug

Thank you very much for the complete and detailled issue. I may have found a workaround (thank you @AndreaAlbanese for the hint) regarding the encountered bug I still have to investigate to fully understand the missing header part but automatically adding an hidden input with the CSRF token on each form resolve the issue. The last commit add this capacity and also automatically update with a new CSRF token once we used the current one

Feel free to try this new version and don’t hesitate to come back to me if you have any issue

@SandonRacowsky I’m glad my plugin help your team so much ; https://paypal.me/zilliox/100 😉 I’m astonished by your generosity regarding free Open Source projects

(@sonnyyin @zikuan-wang @jwv next time don’t hesitate to fork it and fix it)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Research-Tested Benefits of Breaks - Edutopia
Students are easily distracted, but regular, short breaks can help them focus, increase their productivity, and reduce their stress.
Read more >
Breaks and Meal Periods | U.S. Department of Labor
Federal law does not require lunch or coffee breaks. However, when employers do offer short breaks (usually lasting about 5 to 20 minutes),...
Read more >
The Importance of Taking Breaks - The Wellbeing Thesis
Studies have found that breaks can reduce or prevent stress, help to maintain performance throughout the day and reduce the need for a...
Read more >
Falls and Fractures in Older Adults: Causes and Prevention
If you fall, you could break a bone, which thousands of older adults ... The risk of falling — and fall-related problems —...
Read more >
Labor Laws and Issues | USAGov
Discrimination and Harassment at Your Job · Wrongful Discharge/Termination of Employment · Family and Medical Leave Act (FMLA) · Minimum Wage, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found