Closed
      
        Bug 915265
      
      
        Opened 12 years ago
          Closed 12 years ago
      
        
    
  
Loading topcrashers with unknown product should produce a 404 error
Categories
(Socorro :: Webapp, task)
        Socorro
          
        
        
      
        
    
        Webapp
          
        
        
      
        
    Tracking
(Not tracked)
        VERIFIED
        FIXED
        
    
  
        
            59
        
    
  
People
(Reporter: peterbe, Assigned: peterbe)
Details
Attachments
(1 file)
| 472.94 KB,
          image/png         | Details | 
If you try to load Top Crashers with https://crash-stats.mozilla.com/topcrasher/products/Camino/versions/2.0.1 you get way too far into the view function. 
See 
 https://errormill.mozilla.org/webtools/socorro-prod/group/104894/
|   | Assignee | |
| Updated•12 years ago
           | 
Assignee: nobody → peterbe
Status: NEW → ASSIGNED
|   | Assignee | |
| Comment 1•12 years ago
           | ||
Pull request: https://github.com/mozilla/socorro/pull/1492
|   | Assignee | |
| Comment 2•12 years ago
           | ||
:rhelmer mind taking a quick r?
| Comment 3•12 years ago
           | ||
(In reply to Peter Bengtsson [:peterbe] from comment #2)
> :rhelmer mind taking a quick r?
sure
| Comment 4•12 years ago
           | ||
Commit pushed to master at https://github.com/mozilla/socorro
https://github.com/mozilla/socorro/commit/b762e32ca20b77e03eac5e82c52e2ab18af4da67
fixes bug 915265 - Loading topcrashers with unknown product doesn't 404, r=rhelmer
| Updated•12 years ago
           | 
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
| Updated•12 years ago
           | 
Target Milestone: --- → 59
|   | ||
| Comment 5•12 years ago
           | ||
Reopening for clarification:
1. The the title of the bug leads me to understand that a HTTP 404 is incorrect.
- Bug title - > "Loading topcrashers with unknown product doesn't 404"
- [14:14:29.166] GET https://crash-stats.allizom.org/topcrasher/products/Camino/versions/2.0.1 [HTTP/1.1 404 NOT FOUND 233ms]
2. Should the page display an error with "Product Unrecognized?" It doesn't appear to.
- https://crash-stats.allizom.org/topcrasher/products/dude/versions/2.0.1
- https://crash-stats.allizom.org/topcrasher/products/Camino/versions/2.0.1
- https://github.com/mozilla/socorro/commit/b762e32ca20b77e03eac5e82c52e2ab18af4da67#L1R300
|   | ||
| Updated•12 years ago
           | 
Status: RESOLVED → REOPENED
OS: Mac OS X → All
Hardware: x86 → All
Resolution: FIXED → ---
|   | Assignee | |
| Comment 6•12 years ago
           | ||
Thanks for asking. No, what should happen is a 404 error which according to your last comment it correctly does. 
No, we don't want a "Product Unrecognized" there. Perhaps we should since the URL getting you there was an old bookmark or something. 
What do you think? I'm primarily interested in not getting a 500 error.
Status: REOPENED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → FIXED
|   | ||
| Updated•12 years ago
           | 
Summary: Loading topcrashers with unknown product doesn't 404 → Loading topcrashers with unknown product should produce a 404 error
|   | ||
| Comment 7•12 years ago
           | ||
Sounds great - bumping to QA verified. A 404 is most-excellently (and definitely) better than a 500 error.
I'd vote for note adding additional error handling, I suspect our users are proficient enough to recognize when an invalid product version, etc is used.
Status: RESOLVED → VERIFIED
          You need to log in
          before you can comment on or make changes to this bug.
        
 qa - reopened
 qa - reopened
            
Description
•