Closed Bug 20838 Opened 25 years ago Closed 9 years ago

Conn: Unreachable server should cause cached data to be displayed

Categories

(Core :: Networking, enhancement, P3)

All
Windows NT
enhancement

Tracking

()

RESOLVED WONTFIX
Future

People

(Reporter: fur, Unassigned)

References

Details

In prior versions of Navigator, the cached version of a page was shown (with a
warning dialog) if the origin server could not be contacted.
Blocks: 14050
Mass move of all bugs without target milestones to M13.
Bulk move of all Cache (to be deleted component) bugs to new Networking: Cache
component.
Assigning fur's cache bugs to Gordon. He can split them up with davidm.
Target Milestone: M13 → M14
Status: NEW → ASSIGNED
Seems non-essential for beta. Moving to M15.
Target Milestone: M14 → M15
Assigning to ruslan per warren's request.
Assignee: gordon → ruslan
Status: ASSIGNED → NEW
Target Milestone: M15 → M16
Status: NEW → ASSIGNED
Moving to M17 which is now considered part of beta2.
Target Milestone: M16 → M17
Keywords: beta2
Whiteboard: 1d
I added some code (not enabled yet) which will return the cached response in 
cases when the connection can't be established with the Success serverity but 
with the original error code. The docshell needs to check for the error code and 
if it's there - pop-up the dialog box complaining about it.
Assignee: ruslan → travis
Status: ASSIGNED → NEW
Um, details on where this error is returned from?
Keywords: nsbeta2
Putting on [nsbeta2-] radar. Not critical to beta2.  Assigning to valeski 
temporarily.
Assignee: travis → valeski
Keywords: nsbeta3
Whiteboard: 1d → [nsbeta2-]1d
ruslan, is your code in? what code do we look for?
Whiteboard: [nsbeta2-]1d → [nsbeta2-]1d[nsbeta3-]
It's in and it can be enabled, but the docshell needs to display smth. Necko 
will just return cached copy.
Status: NEW → ASSIGNED
ruslan, how do we know when it's cached? check some status code on the channel?
-> gagan until we get a better idea of what to look for.
Assignee: valeski → gagan
Status: ASSIGNED → NEW
Clearing very old milestone (M17) in hope of reevaluation.
Target Milestone: M17 → ---
should be looked at after the new cache lands. 
->neeti
Assignee: gagan → neeti
Target Milestone: --- → mozilla0.9.1
Darin, any suggestions on what to do with this bug?  Do you know anything about 
what Ruslan put in place?
The correct/clean way IMHO is that we should intercept the errors propogated 
from the transport. currently we don't!-- we just let it send the error message 
directly to the progress listener handed in to the channel. So essentially we 
need a progress listener (in the channel) that we can hand over to the socket 
transport. once we get the notification of server not reached, we should turn 
around pop up the alert box and send data from the cache. 
gagan: i agree
...but hasn't HTTP already truncated/doomed the old cache entry?  Maybe not, if 
it was simply trying to validate the entry.  Sounds like this is an HTTP issue, 
more than a cache issue.
Component: Networking: Cache → Networking: HTTP
moving to 0.9.2
Keywords: nsbeta2, nsbeta3nsbeta1+
Whiteboard: [nsbeta2-]1d[nsbeta3-]
Target Milestone: mozilla0.9.1 → mozilla0.9.2
*** Bug 75944 has been marked as a duplicate of this bug. ***
qa to me.
Severity: minor → enhancement
QA Contact: tever → benc
Summary: Unreachable server should cause cached data to be displayed → [RFE] Unreachable server should cause cached data to be displayed
Target Milestone: mozilla0.9.2 → mozilla0.9.3
Target Milestone: mozilla0.9.3 → mozilla0.9.4
Target Milestone: mozilla0.9.4 → mozilla0.9.5
*** Bug 100917 has been marked as a duplicate of this bug. ***
See also bug 28586, Should use placeholder error page, not dialog, for 
inaccessible pages.
Keywords: 4xp
Target Milestone: mozilla0.9.5 → mozilla0.9.6
Target Milestone: mozilla0.9.6 → mozilla0.9.8
Target Milestone: mozilla0.9.8 → Future
This would be a nice improvement, and relatively simple to implement. Nominating
for Mozilla 1.0 and nsbeta1.
Keywords: mozilla1.0, nsbeta1
per adt, not critical for nsbeta1. hence minus.
Keywords: nsbeta1nsbeta1-
+ conn - working on more detailed offline/online testcases. 
Summary: [RFE] Unreachable server should cause cached data to be displayed → [RFE] Conn: Unreachable server should cause cached data to be displayed
Component: Networking: HTTP → Networking
moving neeti's futured bugs for triaging.
Assignee: neeti → new-network-bugs
Summary: [RFE] Conn: Unreachable server should cause cached data to be displayed → Conn: Unreachable server should cause cached data to be displayed
we do some different things in offline mode - which seems like the right plan for now
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.