Internal Server Error concerning session_id (value too long for character type)

Rodrigo Souto rodrigo at colivre.coop.br
Mon Jan 20 15:45:59 BRST 2014


Ana, if I'm not mistaken, the session_id is generated inside of Rails.
So I think you might have some problem on your setup.

Antonio Terceiro escreveu isso ai:
> On Mon, Jan 20, 2014 at 01:52:19PM -0300, Rodrigo Souto wrote:
> > Hey Ana,
> > 
> > Remember to describe your AI's in english too.
> > 
> > Looks like this problem is happening because the session_id is bigger
> > than 255 characters, which is the default size of a string field on the
> > database. I'm not sure this is a common thing to happen (session_ids
> > bigger than 255), but if it's happening I think we should change the
> > session_id type to text instead of string.
> 
> don't do that.
> 
> any code that needs more than 255 characters to represent an id (of
> whatever it is) is doing it wrong.
> 
> -- 
> Antonio Terceiro <terceiro at colivre.coop.br>
> Colivre - Cooperativa de Tecnologias Livres
> http://www.colivre.coop.br/
> 
> 



> _______________________________________________
> Noosfero-dev mailing list
> Noosfero-dev at listas.softwarelivre.org
> http://listas.softwarelivre.org/cgi-bin/mailman/listinfo/noosfero-dev


-- 
Rodrigo Souto <rodrigo at colivre.coop.br> :: 55 71 8131-7714
Colivre - Cooperativa de Tecnologias Livres
http://www.colivre.coop.br/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20140120/0a361695/attachment.pgp>


More information about the Noosfero-dev mailing list