[tahoe-lafs-trac-stream] [Tahoe-LAFS] #1928: web redirects should use relative URLs

Tahoe-LAFS trac at tahoe-lafs.org
Sat Sep 27 12:40:16 UTC 2014


#1928: web redirects should use relative URLs
-----------------------------------+----------------------------------
     Reporter:  leif               |      Owner:  davidsarah
         Type:  defect             |     Status:  assigned
     Priority:  normal             |  Milestone:  soon
    Component:  code-frontend-web  |    Version:  1.9.2
   Resolution:                     |   Keywords:  http redirect webapi
Launchpad Bug:                     |
-----------------------------------+----------------------------------

Comment (by daira):

 Replying to [ticket:1928 leif]:
 > This request to the web interface returns a redirect to a newly created
 directory, as a relative URL:
 >
 > curl -v -F t=mkdir -F redirect_to_result=true http://localhost:3456/uri
 >
 > <  Location: uri/URI%3ADIR2%3Ajhjqp....
 >
 > I think this is good. Unfortunately, this relative URL does not include
 a trailing slash, so when it is followed the response is another redirect,
 to append the slash. This second redirect is not relative.

 As well as fixing the redirect to be local, for efficiency we should
 change the mkdir to redirect to the URL ending with a slash.

--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1928#comment:6>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list