#910 clicking save repeatedly on wiki update produces 500 error

v1.0.0
closed
General
nobody
2015-08-20
2010-09-13
Mark Ramm
No

If I click save a bunch of times very rapidly on a wiki edit page, I can occasonally get a 500 error:

    Module forgewiki.model.wiki:87 in commit
    <<          VersionedArtifact.commit(self)
                   if self.version > 1:
                       v1 = self.get_version(self.version-1)
                       v2 = self
                       la = [ line + '\n'  for line in v1.text.splitlines() ]
    >>  v1 = self.get_version(self.version-1)
    Module forgewiki.model.wiki:165 in get_version
    <<              version = self.version + 1 + version
                   HC = Page.__mongometa__.history_class
                   return HC.query.find({'artifact_id':self._id, 'version':version}).one()

               def reply(self, text):
    >>  return HC.query.find({'artifact_id':self._id, 'version':version}).one()
    Module ming.orm.ormsession:252 in one
    <<          except StopIteration:
                       return result
                   raise ValueError, 'More than one result from .one()'

               def first(self):
    >>  raise ValueError, 'More than one result from .one()'
    ValueError: More than one result from .one()

Discussion

  • Mark Ramm

    Mark Ramm - 2010-09-13
    • custom_field__size: --> 1
     
  • Rick Copeland - 2010-09-13
    • status: open --> in-progress
    • assigned_to: Rick Copeland
     
  • Rick Copeland - 2010-09-13
    • status: in-progress --> code-review
     
  • Rick Copeland - 2010-09-13
    • status: code-review --> closed
     
  • Rick Copeland - 2010-09-13
     

Log in to post a comment.