Changing/renaming media db dirs

Found a bug? Tell us!!
Post Reply
User avatar
yellowled
Regular
Posts: 6994
Joined: Fri Jan 13, 2006 12:46 pm
Location: Eutin, Germany
Contact:

Changing/renaming media db dirs

Post by yellowled » Sun Apr 16, 2017 12:35 pm

s9y 2.2.0-beta1, PHP 7.0.11

Reproduce:
– I had an image called steak.jpg in a folder called Artikel in the media db, so the path to said image was /uploads/Artikel/steak.jpg
– I renamed the folder to artikel (lowercase) because I was suspecting that the Uppercase in the path was irritating the responsive images parser while testing the new plugin.
– In articles where said image was used, the new path is now replaced as /uploads/artikelsteak.jpg – which of course results in a broken image (404).

I'm just not sure if this is new in 2.1.x or if that existed before … anyone still have a pre-2.1.x test blog? (Which is also why I did not create a GitHub issue yet.)

YL
amazon Wishlist - Serendipity-Podcast (German only, sorry)

Imajica
Regular
Posts: 55
Joined: Mon Dec 05, 2016 6:26 pm
Location: Racine
Contact:

Re: Changing/renaming media db dirs

Post by Imajica » Mon Apr 17, 2017 11:18 pm

I have a 2.0.5 that I haven't updated yet

it's also blank because I haven't finished theming it yet

John

User avatar
yellowled
Regular
Posts: 6994
Joined: Fri Jan 13, 2006 12:46 pm
Location: Eutin, Germany
Contact:

Re: Changing/renaming media db dirs

Post by yellowled » Mon Apr 17, 2017 11:49 pm

Thanks for providing me access to that.

So, in 2.0.5, this does not happen. However, it does not happen because the reference to the image in the article is not changed at all. I'm not sure if this is because John's test blog uses WYSIWYG and my dev blog doesn't or if it's because of PHP 5.6 vs 7.0 or because of the missing responsive images plugin which is only in 2.2.0-beta1 … hard to replicate. :?

YL
amazon Wishlist - Serendipity-Podcast (German only, sorry)

Imajica
Regular
Posts: 55
Joined: Mon Dec 05, 2016 6:26 pm
Location: Racine
Contact:

Re: Changing/renaming media db dirs

Post by Imajica » Wed Apr 19, 2017 6:52 pm

feel free to change the editor as necessary

John

Post Reply