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

keystone-storage-adapter-s3 v1.1.1 depends on unusable version of knox #4498

Closed
augustbjornberg opened this issue Nov 10, 2017 · 12 comments
Closed
Labels

Comments

@augustbjornberg
Copy link

augustbjornberg commented Nov 10, 2017

Expected behavior

The File model field type, with the keystone-storage-adapter-s3 module is expected to upload files to AWS S3.

Actual/Current behavior

File upload with keystone-storage-adapter-s3 seems to be broken, right now it's throwing the same knox error as i've seen posted by other users for similar errors.

TypeError: mime.lookup is not a function

The runtime crashes and no file is uploaded to S3.

Steps to reproduce the actual/current behavior

Use the File field type with keystone-storage-adapter-s3.

Environment

Software Version
Keystone 4.0.0-beta.7
Node 8.3.0
@augustbjornberg
Copy link
Author

augustbjornberg commented Nov 14, 2017

screen shot 2017-11-13 at 8 13 11 pm

See you later, crocodiles.

@TheModFather
Copy link

Resolution can be found @ Automattic/knox#326

@cvn
Copy link
Contributor

cvn commented Feb 14, 2018

This was fixed by PR #4453 and released in 4.0.0-beta.8.

cvn referenced this issue in cvn/keystone-storage-adapter-s3 Feb 15, 2018
- knox-s3 is a fork of knox with one difference: a mime 1.x dependency that avoids breaking changes in mime 2.x
- see keystonejs/keystone#4498
cvn referenced this issue in cvn/keystone-storage-adapter-s3 Feb 15, 2018
- knox-s3 is a fork of knox with one difference: a mime 1.x dependency constraint that avoids breaking changes in mime 2.x
- see keystonejs/keystone#4498
Vagr9K referenced this issue in tmvanetten/keystone-storage-adapter-s3 Mar 19, 2018
@stennie stennie closed this as completed May 27, 2018
@g3r4n
Copy link

g3r4n commented Jun 15, 2018

@stennie when do you think the next release will be done ? This fix is not in the beta 8

@stennie
Copy link
Contributor

stennie commented Jun 15, 2018

@g3r4n This issue needs to be addressed via the keystone-storage-adapter-s3 dependency.

It was mentioned by @JedWatson on the Keystone Slack earlier today:

@mikehazell has taken a look and, building on keystonejs/keystone-storage-adapter-s3#29, is going to publish a new version that's using the AWS SDK directly instead of knox. It'll be a new major version of that package.

Regards,
Stennie

@stennie stennie reopened this Jun 15, 2018
@stennie stennie added this to the 4.0.0 milestone Jun 15, 2018
@stennie stennie changed the title TypeError: mime.lookup is not a function keystone-storage-adapter-s3 v1.1.1 depends on unusable version of knox Jun 15, 2018
@g3r4n
Copy link

g3r4n commented Jun 16, 2018

@stennie does this PR is the fix ?

@stennie
Copy link
Contributor

stennie commented Jun 16, 2018

@g3r4n The planned fix is keystonejs/keystone-storage-adapter-s3#35, which will be included in the next release of keystone-storage-adapter-s3.

Regards,
Stennie

@g3r4n
Copy link

g3r4n commented Jun 17, 2018

@stennie thanks for your feedback.

@mikehazell
Copy link
Contributor

FYI - @g3r4n keystonejs/keystone-storage-adapter-s3#35 has been released in v2.0.0.

@g3r4n
Copy link

g3r4n commented Jun 18, 2018

Thanks @mikehazell for your fix !

To everyone don't forget to apply the breaking changes and to generate files name wihout spaces : see this issue

@g3r4n
Copy link

g3r4n commented Jun 18, 2018

Working for me now.
@stennie you can close this issue.

@stennie
Copy link
Contributor

stennie commented Jun 18, 2018

@g3r4n Thanks for confirming the updated s3 adapter worked for you (and reporting the bug generating filenames with spaces).

This issue should remain open until we bump & test the dependency for the next Keystone release.

EDIT: just checked and this isn't an explicit Keystone dependency, so can be closed.

Regards,
Stennie

@stennie stennie closed this as completed Jun 18, 2018
@stennie stennie removed this from the 4.0.0 milestone Jun 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants