Opened 10 years ago

Closed 10 years ago

#1350 closed defect (fixed)

Changeset timestamp stuff appears to break Potlatch & Potlatch

Reported by: Richard Owned by: smsm1
Priority: blocker Milestone: OSM 0.6
Component: api Version:
Keywords: Cc:

Description

Creating a new changeset doesn't work any more:

[2008-11-20 11:23:58.455368 #24653] NoMethodError? (You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.-):

/app/models/changeset.rb:140:in `save_with_tags!'
/Library/Ruby/Gems?/1.8/gems/activerecord-2.1.2/lib/active_record/connection_adapters/abstract/database_statements.rb:66:in `transaction'
/Library/Ruby/Gems?/1.8/gems/activerecord-2.1.2/lib/active_record/transactions.rb:79:in `transaction_without_deadlock_handling'
/vendor/plugins/deadlock_retry/lib/deadlock_retry.rb:45:in `transaction'
/app/models/changeset.rb:136:in `save_with_tags!'
/app/controllers/amf_controller.rb:158:in `startchangeset'

Potlatch code is from line 149 of amf_controller.rb.

Change History (2)

comment:1 Changed 10 years ago by smsm1

  • Milestone set to OSM 0.6
  • Owner changed from tom@… to smsm1
  • Priority changed from major to blocker
  • Summary changed from Changeset timestamp stuff appears to break Potlatch to Changeset timestamp stuff appears to break Potlatch & Potlatch

This issue is not specific to Potlatch, as JOSM has the same problem.

comment:2 Changed 10 years ago by smsm1

  • Resolution set to fixed
  • Status changed from new to closed

(In [12011]) Closes #1350 through updating amf_controller to use the newer closed_at method of determining whether a changeset is closed. Richard please check the rest of the amf controller for more things that may reference the open field that is no longer available. Use is_open? to determine if a changeset is open. Fix indentation in amf controller. Fix minor bug in the links to changesets in the data brower.

Note: See TracTickets for help on using tickets.