When I revise a post via the editpost link, I get redirected to the
following url when I click on update:
/forums/edit_post/3/#snap_post4
This raises a 404. Initially looking at the edit_post view, I see the
following lines:
try:
next = request.POST['next'].split('#')[0] + '#snap_post' +
str(div_id_num)
except KeyError:
next = SNAP_PREFIX + '/threads/id/' + str(orig_post.thread.id)
+ '/'
When place an assert False right after this series of statements, the
next variable is assigned "#snap_post12". This seems to indicate that
lookup for the "next" key in the POST dict is failing.
I don't have time to continue debugging right now, so I'm firing this
post off to find out if you've run into the same problem. Not going
to file as a bug until I find out with it's a known issue or just me.
1. Follow the create a new topic link.
2. Enter some text and click on Start Subject.
3. Edit the post using the edit post link.
4. Alter some of the text and click on update.
you should error out with a 404.
On Feb 21, 1:18 pm, "Bo Shi" <bs1...@gmail.com> wrote:
> Can't reproduce this. Can you give me exactly the process you used to
> produce the 404?
>
http://snapboard.deadpuck.net/threads/
On 2/21/07, johnnie...@gmail.com <johnnie...@gmail.com> wrote:
>
try my instance:
http://www.peepz.net:8080/accounts/register/
On Feb 21, 1:40 pm, "Bo Shi" <bs1...@gmail.com> wrote:
> Hrm... still can't get it to 404 out. Can you try to generate the
> error from the following page? Perhaps this issue is resulting from
> some bad configuration options on my part.
>
> http://snapboard.deadpuck.net/threads/
>
On 2/21/07, johnnie...@gmail.com <johnnie...@gmail.com> wrote:
>
It definitely works in your environment. I'm so doing something wrong
here.
On Feb 21, 2:06 pm, "Bo Shi" <bs1...@gmail.com> wrote:
> woa, scratch that. doesn't work.
>
> On 2/21/07, Bo Shi <bs1...@gmail.com> wrote:
>
> > Works for me. This must be a javascript problem. What browser are you using?
>
> > On 2/21/07, Bo Shi <bs1...@gmail.com> wrote:
> > > :) Google thinks it's spam. Check your spam box. I'll try your instance now.
>
When I run it as apart of my project site, it totally fails. So I did
the following to the edit_post function:
try:
# next = request.POST['next'].split('#')[0] + '#snap_post' +
str(div_id_num)
#except KeyError:
next = SNAP_PREFIX + '/threads/id/' + str(orig_post.thread.id)
+ '/'
except:
raise Http404
And it worked fine. For some reason in my environment,
request.POST['next'] is empty. It's failing because the redirect is
relative.
btw, sorry about missing your chat request. I'm available whenever.
On Feb 21, 2:13 pm, "johnnie.pitt...@gmail.com"