Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

scaffolding tools redirect to localhost after insert

#61

After inserting a new entry I will be redirected to localhost. The location-header seems to be wrong.

Here is the HTTP-Header:

REQUEST:

  • http://schirkan.de/recess/snippe...
  • POST /recess/snippets/category/ HTTP/1.1
  • Host: schirkan.de
  • User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5 FirePHP/0.2.1
  • Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
  • Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
  • Accept-Encoding: gzip,deflate
  • Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
  • Keep-Alive: 300
  • Connection: keep-alive
  • Referer: http://schirkan.de/recess/snippe...
  • Content-Type: application/x-www-form-urlencoded
  • Content-Length: 27
  • id=&category%5Bname%5D=test

RESPONSE:

  • HTTP/1.x 302 Found
  • Date: Fri, 30 Jan 2009 22:49:55 GMT
  • Server: Apache/2.2.3 (Debian) mod_ssl/2.2.3 OpenSSL/0.9.8c
  • X-Powered-By: PHP/5.2.6-0.dotdeb.1
  • Location: http://localhost/recess/snippets...
  • Content-Length: 332
  • Keep-Alive: timeout=15, max=98
  • Connection: Keep-Alive
  • Content-Type: text/html; charset=iso-8859-1

Reported by Schirkan · January 30th, 2009 @ 06:06 PM

State: resolved
Milestone: 0.11.1
Assigned to: Kris Jordan Kris Jordan

Activity

  1. Kris Jordan
    Kris Jordan
    • State changed from new to resolved

    I believe this should be fixed in commit 077dc7924358ea6cb9e9f12ebcdef6e1c29a5aee on the GitHub tree: http://github.com/recess/recess/...

    Not sure why you are getting a '302 Found' response, though, it should be a 201 CREATED and the Location should not actually forward you to another address it is simply the URI in which your newly created object can be found.

    Thanks for the report!

    February 4th, 2009 @ 05:58 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.