Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: URL error checking?  (Read 4821 times)

Keyrocks

  • Doug
  • ULTIMATE member
  • ******
  • Karma: 449
  • Posts: 6020
  • Semantically Challenged
    • snews.ca
Re: URL error checking?
« Reply #1 on: January 22, 2008, 04:40:08 am »

Uh... OK... care to explain what this is about?  ;D
Logged
Do it now... later may not come.
-------------------------------------------------------------------------------------------------
sNews 1.6 MESU | sNews 1.6 MEMU

philmoz

  • High flyer
  • ULTIMATE member
  • ******
  • Karma: 161
  • Posts: 1988
    • fiddle 'n fly
Re: URL error checking?
« Reply #2 on: January 22, 2008, 11:22:00 am »

Bob, something more closer to (your) home.

http://snews.ca/downloads/downloads/downloads/downloads/

do you have that item in snews.ca??
Logged
Of all the things I have lost, it is my mind that I miss the most.

centered

  • Guest
Re: URL error checking?
« Reply #3 on: January 22, 2008, 12:27:31 pm »

Yes breaking down the url:

http://localhost:8888/sNews16/home/what-is-lorem/home/what-is-lorem/home/what-is-lorem/

base url then /home/what-is-lorem/ then repeating /home/what-is-lorem/ gives the same url as before.  This should output 404 or an error.  I noticed this in the test gallery and a 1.4 test
Logged

Keyrocks

  • Doug
  • ULTIMATE member
  • ******
  • Karma: 449
  • Posts: 6020
  • Semantically Challenged
    • snews.ca
Re: URL error checking?
« Reply #4 on: January 22, 2008, 03:59:01 pm »

Bob, something more closer to (your) home.
http://snews.ca/downloads/downloads/downloads/downloads/
do you have that item in snews.ca??
Yes... thanks Phil... point well taken.  :)
After reading EQ's post in another location last night... where this emerged in testing Rui's gallery project... I duplicated the issue on my local machine. What amazes me is that we never noticed this before. snews.ca is still running on 1.4... and it doesn't seem to matter how often you duplicate the "downloads/" in the browser bar... I added another dozen or so... and the page still displays without tossing a "404". Obviously... as EQ notes... this is a bug that goes back to 1.4 if not further. Again... I am amazed we never came across this until now... you'd think it would have surfaced sooner.
(Doug)
« Last Edit: January 22, 2008, 04:00:35 pm by Keyrocks »
Logged
Do it now... later may not come.
-------------------------------------------------------------------------------------------------
sNews 1.6 MESU | sNews 1.6 MEMU

Keyrocks

  • Doug
  • ULTIMATE member
  • ******
  • Karma: 449
  • Posts: 6020
  • Semantically Challenged
    • snews.ca
Re: URL error checking?
« Reply #5 on: January 22, 2008, 04:05:29 pm »

This one's for Bob:

http://4inchorange.com/blog/blog/blog/blog/blog/blog/ - displays the page with everything except center(0 content... without a "404".
http://4inchorange.com/home/snewsmu_released/home/snewsmu_released/home/snewsmu_released/home/snewsmu_released/
... continues to display the same article with several duplications added on the URL of - home/snewsmu_released/
Logged
Do it now... later may not come.
-------------------------------------------------------------------------------------------------
sNews 1.6 MESU | sNews 1.6 MEMU

Fred K

  • Still trying to learn stuff
  • ULTIMATE member
  • ******
  • Karma: 130
  • Posts: 2728
    • Personal
Re: URL error checking?
« Reply #6 on: January 22, 2008, 06:14:48 pm »

On my local setup, running a modded 1.6, something like this:
http://localhost:8888/blog/blog/blog/ - throws 404
http://localhost:8888/blog/logout/login/logout/login/ - throws 404

So it seems to be related to something in one (or more) mod(s)...

(Most my mods are fairly standard but they do include links, homeless-url and keyword cloud, which all affect many pieces of the engine.)
Logged

centered

  • Guest
Re: URL error checking?
« Reply #7 on: January 22, 2008, 07:17:46 pm »

On my local setup, running a modded 1.6, something like this:
http://localhost:8888/blog/blog/blog/ - throws 404
http://localhost:8888/blog/logout/login/logout/login/ - throws 404

So it seems to be related to something in one (or more) mod(s)...

(Most my mods are fairly standard but they do include links, homeless-url and keyword cloud, which all affect many pieces of the engine.)

Can you try category/article Repeat
or category/article/Comment Repeat
Logged

Fred K

  • Still trying to learn stuff
  • ULTIMATE member
  • ******
  • Karma: 130
  • Posts: 2728
    • Personal
Re: URL error checking?
« Reply #8 on: January 22, 2008, 09:56:45 pm »

Quote from: equilni
category/article Repeat

ok, I see now. it loops.
Logged

centered

  • Guest
Re: URL error checking?
« Reply #9 on: January 23, 2008, 04:00:31 am »

psst... another thread ok....

*piX* I have split this discussion into 2 topics, please see this post for discussion concerning setting up XAMPP.
« Last Edit: January 24, 2008, 01:42:36 am by piXelatedEmpire »
Logged

philmoz

  • High flyer
  • ULTIMATE member
  • ******
  • Karma: 161
  • Posts: 1988
    • fiddle 'n fly
Re: URL error checking?
« Reply #10 on: January 24, 2008, 06:45:06 am »

Bob <--> Doug
From this distance you all look the same :D

prob seems to only occur with articles. Multiple page references throw back to home -- still no 404.

my take on what is happening with regards to articles -- htaccess + snews code.

category code is satisfied that category is present, and exists.
article code finds the article, therefore all is ok.

I suspect it is not necessarily reading everything after that, so doesn't get to the 404 stage at all.
Logged
Of all the things I have lost, it is my mind that I miss the most.