Mind Control Comics Forum

The Bullpen => Site Questions and Problems => Topic started by: Sane Scientist on February 18, 2019, 07:49:06 am



Title: Opening image in new tab results in 404
Post by: Sane Scientist on February 18, 2019, 07:49:06 am
Hi!

I tried to open an image in a new tab and found that I was unable to do so.

If I enter this url (https://mindcontrolcomics.com/comics/images/friend_zone/i01/friend_zone-i01-p01.jpg) into the address bar, I can't access it. However, if I open in a new tab by itself (presumably without the referer header) I get an error.

Is there any reason why this is now happening?

Thanks.



Title: Re: Opening image in new tab results in 404
Post by: macavity on February 18, 2019, 09:07:38 am

If I enter this url (https://mindcontrolcomics.com/comics/images/friend_zone/i01/friend_zone-i01-p01.jpg) into the address bar, I can't access it.



I could access it PROVIDED I had logged in first!


Title: Re: Opening image in new tab results in 404
Post by: Daphne on February 18, 2019, 09:11:14 am
Is there any reason why this is now happening?

There haven't been any changes to the site in that area in several months.


Title: Re: Opening image in new tab results in 404
Post by: lifmcs on February 18, 2019, 10:52:02 am
Can confirm, nothing seems to have changed recently. No Referrer header = no D12 has been my experience for a long time. Can right click -> View Image with no problem because Firefox at least sends a Referrer in that case, but just pasting the URL for an image into the address bar returns that lovely render from Sturk. I'll defer to Daphne on the question of why. Be thankful there are actual <img> tags instead of CSS backgrounds?


Title: Re: Opening image in new tab results in 404
Post by: macavity on February 18, 2019, 02:09:21 pm
but just pasting the URL for an image into the address bar returns that lovely render from Sturk. I'll defer to Daphne on the question of why. Be thankful there are actual <img> tags instead of CSS backgrounds?

As far as I can see, 'Sorry we couldn't find that page' can also mean 'Sorry, you don't have access rights to that page.' so the URL works for me in Firefox provided I'm logged in to MCC


Title: Re: Opening image in new tab results in 404
Post by: Sane Scientist on February 18, 2019, 04:01:39 pm
Is there any reason why this is now happening?

There haven't been any changes to the site in that area in several months.

When you say months, is there any reason why the site is now working like this?

My annoyance is that I had a couple of sessions open on my computer and several (20+) panels were opened in individual tabs. Then my browser crashed and when I re-opened it, all of the pages showed a not found banner.

I was able to reproduce this reliably and determined that my browser restart following a crash wasn't keeping the referer header, but I don't really understand the reasoning for requiring the referer header. Relying upon it offers zero protection or security beyond making users miserable. :(


Title: Re: Opening image in new tab results in 404
Post by: Daphne on February 18, 2019, 04:37:27 pm
When you say months, is there any reason why the site is now working like this?

A quick trip down memory lane with git blame indicates that it's been like this since the new site launched.

Quote
My annoyance is that I had a couple of sessions open on my computer and several (20+) panels were opened in individual tabs. Then my browser crashed and when I re-opened it, all of the pages showed a not found banner.

Apologies for the annoyance, although this is... not a super-common usage model.


Title: Re: Opening image in new tab results in 404
Post by: ozymandias on February 19, 2019, 09:18:04 am
My annoyance is that I had a couple of sessions open on my computer and several (20+) panels were opened in individual tabs. Then my browser crashed and when I re-opened it, all of the pages showed a not found banner.

I found that if I just went to an image URL directly, I get a 404, but if I open the page, then "open image in a new tab", the image opens. I can't refresh the image, though. I assume this is tied to a usage cookie or other session state variable.