Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[firebase/storage-resize-images] Wildcard in input path doesn't match/support a storage directory path #2047

Open
stib opened this issue Apr 11, 2024 · 0 comments
Labels
type: bug Something isn't working

Comments

@stib
Copy link

stib commented Apr 11, 2024

[READ] Step 1: Are you in the right place?

Read

[REQUIRED] Step 2: Describe your configuration

  • Extension name: storage-resize-images
  • Extension version: 0.2.3
  • Configuration values (redact info where appropriate):
Sizes of resized images 200x200,25x25 Deletion of original file false Make resized images public (Optional) false Cloud Storage path for resized images (Optional) Resized Paths that contain images you want to resize (Optional) /users/*/Profile/Pictures List of absolute paths not included for resized images (Optional) Parameter not set Cloud Storage path for failed images (Optional) failed-image-processing Cache-Control header for resized images (Optional) Parameter not set Convert image to preferred types false Output options for selected formats (Optional) Parameter not set Sharp constructor options for resizing images (Optional) Parameter not set GIF and WEBP animated option (Optional) true Cloud Function memory 512 Backfill existing images false Assign new access token (Optional) true Enabled events

If you enable events, you can write custom event handlers that respond to these events. Events will be emitted via Eventarc. Fees apply.
How do events in this extension work?

Channel location
us-central1
Type of events
firebase.extensions.storage-resize-images.v1
firebase.extensions.storage-resize-images.v1.onSuccess
Occurs when image resizing completes successfully. The event will contain further details about specific formats and sizes.
firebase.extensions.storage-resize-images.v1.onError
Occurs when an issue has been experienced in the Extension. This will include any error data that has been included within the Error Exception.

[REQUIRED] Step 3: Describe the problem

  1. I have the extension configured to monitor the path /users/*/Profile/Pictures
  2. I upload a test image at /users/+14085551212/Profile/Pictures
  3. Images are not resized and I get this error in the logs "/users/+14085551212/Profile/Pictures' is not supported, these are the supported absolute paths: /users/*/Profile/Pictures"

I would think the * will account for the different phone numbers in the paths +14085551212 but not sure why it says this is not supported.

Steps to reproduce:

  1. Configure the extension as in step 1 above
  2. Add a directory path /users/+14085551212/Profile/Pictures
  3. Upload a png image to path in step 2 through Firebase console
Expected result

It should process the image and crate resized images

Actual result

Get the error described above

@stib stib added the type: bug Something isn't working label Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant