bugMIT/GNU Scheme - Bugs: bug #62583, HTTP "Location" header...

 
 

bug #62583: HTTP "Location" header should allow relative URIs

Submitter:  - <_314975>
Submitted:  Sat 04 Jun 2022 06:43:26 AM UTC
   
 
Category:  runtime Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Feature request
Status:  Postponed Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Open
Keywords: 
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 06 Sep 2022 02:06:50 AM UTC, comment #1: 

The HTTP implementation in MIT/GNU Scheme is based upon RFC 2616, which specifies an absolute URI.

This could be fixed to comply with RFC7231, but in that case many other changes are likely to be needed.  So this is a large change, which I'm reclassifying as a feature request.

The bug will remain open, but don't expect this to happen any time soon.

Chris Hanson <cph>
Group administrator
Sat 04 Jun 2022 06:43:26 AM UTC, original submission:  

The "Location" header is defined in MIT Scheme 11.2 as

(define-header "Location"
  (direct-parser parse-absolute-uri)
  absolute-uri?
  write-ascii-uri)

Source: https://git.savannah.gnu.org/cgit/mit-scheme.git/tree/src/runtime/http-syntax.scm?h=release-11.2#n1344

This is incorrect because RFC 7231 [1] allows the Location header to refer to a relative URI.

[1]: https://www.rfc-editor.org/rfc/rfc7231#section-7.1.2

- <_314975>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by cph (Posted a comment)
  • -email is unavailable- added by _314975 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-09-06 cph Item GroupIncorrect behavior Feature request
        StatusNone Postponed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code