Screenshot trait can create filenames that are too long

Created on 12 August 2024, 3 months ago

Problem/Motivation

Sometimes the URL can cause the filename to be too long, as in this case with a Google Classroom sign-in window.

  file_put_contents(/app/tmp/screenshots/66ba5efe26a7f_https--accountsgooglecom-v3-signin-identifiercontinuehttps3A2F2Fclassroomgooglecom2Fshare3Furl3Dhttps3A2F2Fmysitelndosite2Fresource-library2Ftest-resource-4followuphttps3A2F2Fclassroomgooglecom2Fshare3Furl3Dhttps3A2F2Ffhaolndosite2Fresource-library2Ftest-resource-4ifkvAb5oB3rbvrruRk8USiBJi6v8BXwWHCnEGkd-SrVUjiiR2JyQqrukXG1FXXlh5-lkN3VsAy1QCFd-passive1209600serviceclassroomflowNameWebLiteSignInflowEntryServiceLogindshS-20614862513A1723490021253252__5F10BE851.png): 

Failed to open stream: File name too long

Proposed resolution

Truncate the filename to a safe length.

I'm happy to work on this if you like.

πŸ› Bug report
Status

Active

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States awolfey

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024