Closed Bug 656754 Opened 13 years ago Closed 13 years ago

URLs without the trailing slash "/" result in an Internal Server Error / HTTP status code 500 - AttributeError 'str' object has no attribute 'resolve'

Categories

(Websites :: webifyme.org, defect, P2)

defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: williamr, Assigned: adam)

References

()

Details

We just started seeing 500 errors on several Webify Me pages on dev-stage.

This includes:

https://webifyme-dev.allizom.org/quiz/
https://webifyme-dev.allizom.org/features/
https://webifyme-dev.allizom.org/collage/e2c5ffc9c060/

This bug currently blocks QA testing
This bug needs an owner - who can take this?
Severity: critical → blocker
Pegging celery at af18771ea26faf7a2005 in Vendor library
Depends on: 657040
/ and /collage/e2c5ffc9c060 - fixed, 500 from Bug#657040 (fixed, but needs restart)

/quiz - 500 'str' object has no attribute 'resolve'
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
Okay, we still need to fix /quiz and /collage/e2c5ffc9c060

AttributeError at /quiz

'str' object has no attribute 'resolve'
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Summary: Webify Me 500 error on several pages → Webifyme.org /quiz 500 AttributeError 'str' object has no attribute 'resolve'
(In reply to comment #5)
> Okay, we still need to fix /quiz and /collage/e2c5ffc9c060
> 
> AttributeError at /quiz
> 
> 'str' object has no attribute 'resolve'

Where are you seeing these errors?  I'm able to load those two URLs (and more) without triggering a 500, at least ostensibly.
(In reply to comment #7)
> https://webifyme-dev.allizom.org/quiz

Aha; I was using the URLs from comment 0, which all have the trailing slash :-)
Looks like /quiz isn't a valid link, so this is a lower priority bug to fix.
Severity: blocker → normal
Priority: P1 → P2
Summary: Webifyme.org /quiz 500 AttributeError 'str' object has no attribute 'resolve' → URLs without the trailing slash "/" result in an Internal Server Error / HTTP status code 500 - AttributeError 'str' object has no attribute 'resolve'
Marking this as blocking bug 655130, because 404s are now returning 500.
If I make the trailing slashes conditional, would that fix this bug?
Assignee: nobody → adam
(In reply to comment #11)
Not sure what that means.

Normal pages and error pages should be able to render. If 'URLs without a trailing slash' can only be created artificially, then this sounds fine and fixing it completely would be a lower priority.

Why?
Ideally our systems are robust and don't provide known ways to generate server errors for performance and security reasons.
This is what I meant: 

https://github.com/mozilla/webifyme/commit/0f3f5529f3c806f8af6539ad2887d50eb7f65916

Does that resolve this issue?
Thanks Adam.
Status: REOPENED → RESOLVED
Closed: 13 years ago13 years ago
Resolution: --- → FIXED
this is fixed.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.