Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

badarg to pgsql_binary:encode/3 #459

kaos opened this Issue Nov 14, 2012 · 2 comments


None yet
2 participants

kaos commented Nov 14, 2012

500 error


Judging by the m_rsc_gone in the backtrace, this might be related to the recent addition in #450.
/me is investigating...

@ghost ghost assigned kaos Nov 14, 2012


mworrell commented Nov 14, 2012

Looks like the function is called with something else than an integer.

I think we need a guard is_integer(...) on the argument and check the name field when it is not.
Which makes me think that #450 should also check somewhere in the rewriter that maps a page_path to a resource id.


kaos commented Nov 14, 2012

Yeah, I think it got a 'false', due to the fact that the resource doesn't exist (have a name that it needs to look up in the dispatch file) (from controller_page:get_id/1).

@kaos kaos closed this in ae823f4 Nov 14, 2012

rpip pushed a commit to rpip/zotonic that referenced this issue Aug 12, 2013

core: add guards to m_rsc_gone functions.
This gives a better error message.

Fix for controller_page:previously_existed/2 to return 404 for unknown resource id's.

Fixes #459.

Also an additional fix for controller_page:resource_exists/2,
as discussed in commit 45bca64 on github.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment