mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-05-09 08:25:54 +02:00
[GH-ISSUE #1174] [Bug]: Copy Button in PrinterInfoModal failing silently #851
Labels
No labels
A1
automated
automated
bug
bug
Closed due to inactivity
contrib
dependencies
dependencies
duplicate
enhancement
feedback
hold
invalid
Notes
P1S
pull-request
security
ThumbsUp
user-report
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/bambuddy-maziggy-1#851
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @BurntOutHylian on GitHub (Apr 30, 2026).
Original GitHub issue: https://github.com/maziggy/bambuddy/issues/1174
Originally assigned to: @maziggy on GitHub.
Component
Bambuddy
Bug Description
The "copy" buttons for IP Address and Serial Number in the printer information modal silently fail when not using secure context.
The root cause appears to be that navigator.clipboard.writeText() requires a secure context (HTTPS or localhost).
For situations where is accessed over plain HTTP (on a private home network for example), navigator.clipboard is either undefined or its methods throw a NotAllowedError. The catch block is silent, so no feedback is given and nothing is copied.
NOTE: I can reproduce this in the current dev branch
Expected Behavior
Contents of the IP Address or Serial Number should be written to the clipboard
Steps to Reproduce
Printer Model
None
Bambuddy Version
0.2.3.2
SpoolBuddy Version
No response
Printer Firmware Version
No response
Installation Method
Other
Operating System
Linux (Ubuntu/Debian)
Relevant Logs / Support Package
No response
Screenshots
No response
Additional Context
No response
Checklist
@BurntOutHylian commented on GitHub (Apr 30, 2026):
Suggestion:
File: frontend/src/components/PrinterInfoModal.tsx — CopyButton component (lines 20–28)
Replace the handleCopy function with one that:
@maziggy commented on GitHub (May 1, 2026):
Available/Fixed in branch dev and available with the next release or daily build. Please let me know if it works for you.
If you find Bambuddy useful, please consider giving it a ⭐ on GitHub — it helps others discover the project!
@BurntOutHylian commented on GitHub (May 1, 2026):
Confirmed! Thanks mate