[Bug]: AirGappedinstance - Image widget throwing error on binding with camera imageblobUrl
Is there an existing issue for this?
- [X] I have searched the existing issues
Description
On binding camera widget with image widget using {{Camera1.imageBlobURL}}, it show show the picture clicked on camera instead throwing an error
Note: This issue happens only in localhost
Steps To Reproduce
- Drag & Drop Camera widget
- Drag & Drop Image widget
- Bind image widget with
{{Camera1.imageBlobURL}} - Click a photo on camera and save it
- Observe there is no image shown on Image widget and throws error
Public Sample App
No response
Environment
Production
Issue video log
https://www.loom.com/share/34126bcf40794beebf0599f8257fc8ed
Version
localhost
@berzerkeer is this a valid issue, can you check the same on a cloud environment.
cc @dhruvikn please help Sangeet if required.
@somangshu This will happen only on localhost, because I guess the regex considers the localhost URL as an invalid URL. Thats why when its deployed to a valid URL, this doesn't evaluate to an invalid URL. I will update regex to allow localhost URLs aswell only if the instance is AIRGAPPED.
Attaching the slack thread here : https://theappsmith.slack.com/archives/C02K2MZERSL/p1681798986314589?thread_ts=1681715688.955619&cid=C02K2MZERSL
We decided to not solve for it at that time, but since it affects camera widget, I will raise a PR for this.
Since it's only happening on localhost, removing the high-priority tag. Had a chat with @berzerkeer, and we will push a fix soon.
cc: @somangshu