-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Renaming base64 added image using S3 driver, causes crash when using media conversions #3197
Comments
Another piece of the puzzle, this only occurs when a non-sync queue driver is used, and that the queue'd job for conversion runs faster than the MediaObserver can process the |
As a work around for this: in
in the Create a new class (in my case I called it Fileystem under App\Services\MediaLibrary) and populate it as follows:
This replaces |
Duplicate of #3089 |
Of course i notice, but you should know that if you already opened a discussion and they already gave you an answer you don't need to open an issue And still
|
You'll continue to notice then the time difference between the issue and the discussion and the discussion was elevated into an issue once an actual potential issue was identified, you'll also notice that the issue in question goes into great detail. Frankly I'm not sure what your problem is, your not being constructive to the process, you're not providing insight into the issue or assisting in the development of a solution, you're not commenting on the potential fix or providing any kind of peer review or reason as to whether the suggested approach is viable, or if it's good for the project or heads in a direction that is suitable. One thing you're correct about is PRs are indeed welcome. I invite you to be a constructive contributor |
S3 is a third party package, compatibility is not guaranteed, apparently you are the only one with this problem, it makes us think that you are doing something wrong (nobody wastes time on thos cases)
Same to you, If you don't do it, I guarantee that it will take years and you will not receive another answer than the one I already gave you, good luck. |
Who hurt you in a past life Fredsal? I really don't understand what your beef with me is, You've got nothing to gain by being so condescending and deeming to other members of the community. All I have done here is to log an issue and detail the situation under which it occurs, No one asked you to fix it, or to tell someone else to fix it. Yes it only occurs under S3, because as detailed S3 as the storage layer used in flysystem doesn't allow move commands from the same object id to the same object id (or rather, it did, but no longer does). Maybe I am the only user with this problem -- does that mean it any less of an issue? (that's rhetorical by the way, the answer is no it doesn't), does it mean the issue shouldn't be logged? I don't think so - more so when I've even provided a way to work around the issue until an adequate solution has been found. Maybe I am doing something wrong, you've been mightily helpful in trying to diagnosis the issue, reproduce, or other any form of functional constructive advice that might highlight the errors of my ways. (that by the way, was sarcasm, you've been quite quite pointless in all your posts, but thanks for trying?) From the start you seem to be under the assumption that A: I expect someone else to fix this, B: that I wont. Not once have you stopped to consider I'm logging the issue, my finding, my possible solutions, with work arounds until a PR can be created, and merged. no, instead, you've gone on some personal crusade against me for some unknown reason. bizarre behaviour frankly. And finally you've linked to comments from freek, someone you can't speak for. You'll also notice that freek has vetted those issues and tagged them accordingly.
That it might, Not sure what that's got to do with you? sounds like my problem not yours, Although if you actually wanted to be helpful you might even look into the problem and say if the proposed solution is sufficient and looks like it's a good candidate for a PR. Heck, you might even try and reproduce the issue and confirm it and work with another member of the community (like say, me) and develop a solution, but I suggest that is far too much to ask for, so I wont. Please go bother someone else, or provide actual useful discourse |
Ok, don't go beyond the first line, my time is more important than reading what I imagine are complaints So, PRs are welcome, feel free to make one to fix that if you think that there is a bug, have a good day |
Given you can't even have the common courtesy of reading a response to your comments, you'd notice it wasn't complaints. But for someone that values their time so greatly you sure are invested in replying over and over, So I have to question just how much value you place on things, heh. good day indeed. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
As discussed in #3089 because adding a base64 media via
addMediaFromBase64()
doesn't correctly set the file extension, and usingusingFileName()
isn't an option when you don't know the source mimetype. I have taken to renaming the filename of the Media after it has been added to the collection (it is always added as .tmp)This was working fine, however, (I believe) since upgrading from version 9 from 10 of medialibrary it's crashing with an Exception from the AWS S3 Adapter because
renameConversionFiles()
attempts to move a conversion with the same name to the same location, Something not permitted by S3 - The conversions have the correct extension the first place, as they work out the correct extension when they're generated...I believe in
MedicaCollections\Filesystem::renameConversionFiles()
if a check is added to see if$oldFile
and$newFile
do in fact differ in their filepath or filename, then do the move, otherwise there isn't a move to be done?The text was updated successfully, but these errors were encountered: