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

Post replacement breaks posts whose images are hosted on raikou2.donmai.us #3569

Closed
RaisingK opened this issue Mar 4, 2018 · 5 comments · Fixed by #3577
Closed

Post replacement breaks posts whose images are hosted on raikou2.donmai.us #3569

RaisingK opened this issue Mar 4, 2018 · 5 comments · Fixed by #3577

Comments

@RaisingK
Copy link
Collaborator

RaisingK commented Mar 4, 2018

When post replacement is done on an old post whose sample/fullsize are hosted on https://raikou2.donmai.us/, the new image is stored as new posts store images, but the post still tries to use the old https://raikou2.donmai.us/ URLs with the new MD5.

See post #872149 for one such casualty.

@RaisingK RaisingK added the Bug label Mar 4, 2018
@evazion
Copy link
Member

evazion commented Mar 4, 2018

See also #3560. I haven't tested this, but I think replacing ugoiras is also broken. Ugoira thumbnails/samples are generated asynchronously during the upload process, so they may not exist yet when post replacement tries to distribute the files. I don't think replaced files can be deleted from the archive servers either.

I think it would be a good idea to introduce some kind of AssetManager abstraction for dealing with file storage. RemoteFileManager and S3BackupService would become instances of this.

@evazion
Copy link
Member

evazion commented Mar 16, 2018

Some WIP towards this: e38673d. The uploading process will have to be reworked a little bit, because right now it assumes uploads will be stored on the local filesystem, which is not necessarily the case.

@evazion
Copy link
Member

evazion commented Mar 19, 2018

More work: evazion/danbooru@master-evazion...evazion:feat-storage-manager. Nearly there, just need to finish some tests.

@RaisingK
Copy link
Collaborator Author

RaisingK commented Jul 9, 2018

post #324768, post #1045226, and post #185322 (raikou# images) broke after replacement. And post #749786 may have been broken for a year.

@RaisingK RaisingK reopened this Jul 9, 2018
r888888888 pushed a commit that referenced this issue Jul 20, 2018
@stale
Copy link

stale bot commented Jul 30, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jul 30, 2019
@evazion evazion closed this as completed Jul 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants