Index: roundup/cgi/templating.py =================================================================== --- roundup/cgi/templating.py (revision 4213) +++ roundup/cgi/templating.py (working copy) @@ -1304,6 +1304,8 @@ item = match.group('item') cls = match.group('class').lower() id = match.group('id') + if int(id) > 2**30: # Avoid Postgres error + return item try: # make sure cls is a valid tracker classname cl = self._db.getclass(cls)