Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 155904

Summary: Support for Refresh http attribute to the web connector
Product: z_Archived Reporter: Eugene Kuleshov <ekuleshov>
Component: MylynAssignee: Eugene Kuleshov <ekuleshov>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:
Bug Depends on: 156060    
Bug Blocks: 155861    
Attachments:
Description Flags
implemented Refresh header handling
none
mylar/context/zip none

Description Eugene Kuleshov CLA 2006-08-31 17:22:43 EDT
When fetching list of issues from issue trackers like Mantis we need to follow the URL that is returned in "Refresh" attribute in the response returned on query request and also preserver cookies returned on this request.

Here is the debug output from wget requesting "open issues" queries from Mantis repository.

>wget -d -v "http://www.futureware.biz/mantis/view_all_set.php?type=3&source_query_id=34"
Setting --verbose (verbose) to 1
DEBUG output created by Wget 1.10.2 on cygwin.

--17:20:54--  http://www.futureware.biz/mantis/view_all_set.php?type=3&source_query_id=34
           => `view_all_set.php@type=3&source_query_id=34'
Resolving www.futureware.biz... 69.61.12.101
Caching www.futureware.biz => 69.61.12.101
Connecting to www.futureware.biz|69.61.12.101|:80... connected.
Created socket 3.
Releasing 0x10042080 (new refcount 1).

---request begin---
GET /mantis/view_all_set.php?type=3&source_query_id=34 HTTP/1.0
User-Agent: Wget/1.10.2
Accept: */*
Host: www.futureware.biz
Connection: Keep-Alive

---request end---
HTTP request sent, awaiting response...
---response begin---
HTTP/1.1 200 OK
Date: Thu, 31 Aug 2006 21:21:01 GMT
Server: Apache/1.3.36 (Unix) mod_deflate/1.0.21 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.4.2 F
rontPage/5.0.2.2634a mod_ssl/2.8.27 OpenSSL/0.9.7a
X-Powered-By: PHP/4.4.2
Pragma: no-cache
Cache-Control: no-store, no-cache, must-revalidate
Cache-Control: post-check=0, pre-check=0
Expires: Thu, 31 Aug 2006 21:21:01 GMT
Set-Cookie: MANTIS_VIEW_ALL_COOKIE=14; expires=Tue, 14 Aug 2007 02:41:01 GMT; path=/
Refresh: 0;url=view_all_bug_page.php
Connection: close
Content-Type: text/html; charset=windows-1252

---response end---
200 OK

Stored cookie www.futureware.biz -1 (ANY) / <permanent> <insecure> [expiry 2007-08-13 22:41:01] MANTIS_VIEW_ALL_COOKIE 14
Length: unspecified [text/html]
...
Closed fd 3
17:20:55 (0.00 B/s) - `view_all_set.php@type=3&source_query_id=34' saved [0]
Comment 1 Eugene Kuleshov CLA 2006-09-03 12:31:15 EDT
Created attachment 49312 [details]
implemented Refresh header handling
Comment 2 Eugene Kuleshov CLA 2006-09-03 12:31:16 EDT
Created attachment 49313 [details]
mylar/context/zip
Comment 3 Mik Kersten CLA 2006-09-07 14:04:02 EDT
Patch applied.