API 0.6 Test Server

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

API 0.6 Test Server

Thomas Wood
Hi all,
I have set up a copy of the 0.6 API at
http://api06.dev.openstreetmap.org/ as a testing server.
The previous version that was originally at this address was quite
neglected as the original maintainer had moved onto other projects.
It currently contains a planet extract of the London area.

I hope to keep it tracking svn closely.

Many thanks to Shaun McDonald, Chris Schmidt and Brett Henderson for
their help so far.

--
Regards,
Thomas Wood
(Edgemaster)

_______________________________________________
dev mailing list
[hidden email]
http://lists.openstreetmap.org/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: API 0.6 Test Server

Dominik Spies
On Wed, Nov 26, 2008 at 8:33 PM, Thomas Wood <[hidden email]> wrote:

> Hi all,
> I have set up a copy of the 0.6 API at
> http://api06.dev.openstreetmap.org/ as a testing server.
> The previous version that was originally at this address was quite
> neglected as the original maintainer had moved onto other projects.
> It currently contains a planet extract of the London area.
>
> I hope to keep it tracking svn closely.
>
> Many thanks to Shaun McDonald, Chris Schmidt and Brett Henderson for
> their help so far.

Hi,

where can I get some username / password combination to test uploading?
The *normal* one does not work for me..

Regards,

Dominik

_______________________________________________
dev mailing list
[hidden email]
http://lists.openstreetmap.org/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: API 0.6 Test Server

Shaun McDonald

On 1 Dec 2008, at 12:34, Dominik Spies wrote:

> On Wed, Nov 26, 2008 at 8:33 PM, Thomas Wood <[hidden email]
> > wrote:
>> Hi all,
>> I have set up a copy of the 0.6 API at
>> http://api06.dev.openstreetmap.org/ as a testing server.
>> [..]
>
> Hi,
>
> where can I get some username / password combination to test  
> uploading?
> The *normal* one does not work for me..
>
You will need to create a new one specific to this server. No users  
were transferred from the production server.

Shaun


_______________________________________________
dev mailing list
[hidden email]
http://lists.openstreetmap.org/listinfo/dev

smime.p7s (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: API 0.6 Test Server

Iván Sánchez Ortega
In reply to this post by Dominik Spies
El Monday 01 December 2008 13:34:42 Dominik Spies escribió:
> where can I get some username / password combination to test uploading?
> The *normal* one does not work for me..

Maybe http://api06.dev.openstreetmap.org/user/new  ? (I haven't tried myself)


--
Iván Sánchez Ortega <[hidden email]>

Un ordenador no es una televisión ni un microondas: es una herramienta
compleja.

_______________________________________________
dev mailing list
[hidden email]
http://lists.openstreetmap.org/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: API 0.6 Test Server

Dominik Spies
In reply to this post by Thomas Wood
On Wed, Nov 26, 2008 at 8:33 PM, Thomas Wood <[hidden email]> wrote:

> Hi all,
> I have set up a copy of the 0.6 API at
> http://api06.dev.openstreetmap.org/ as a testing server.
> The previous version that was originally at this address was quite
> neglected as the original maintainer had moved onto other projects.
> It currently contains a planet extract of the London area.
>
> I hope to keep it tracking svn closely.
>
> Many thanks to Shaun McDonald, Chris Schmidt and Brett Henderson for
> their help so far.

I'm not sur if this is the right place to submit such a (possible)
bug, but I don't know where else.

I tried this devapi with JOSM 1097. When I try to add or change a Tag
on a *node*, this doesn't work.
A trcace with wireshark shows, that JOSM creats the changeset
(successfully), than tries to upload and getting a HTTP/1.1 422
Unprocessable Entity in response. With some payload showing an
exception:

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>Action Controller: Exception caught</title>
  <style>
    body { background-color: #fff; color: #333; }

    body, p, ol, ul, td {
      font-family: verdana, arial, helvetica, sans-serif;
      font-size:   13px;
      line-height: 18px;
    }

    pre {
      background-color: #eee;
      padding: 10px;
      font-size: 11px;
    }

    a { color: #000; }
    a:visited { color: #666; }
    a:hover { color: #fff; background-color:#000; }
  </style>
</head>
<body>

<h1>
  ActiveRecord::RecordInvalid

    in ChangesetController#upload

</h1>
<pre>Validation failed: Changeset is invalid</pre>



<p><code>RAILS_ROOT: /home/edgemaster/apis/api06</code></p>

<div id="traces">


    <a href="#"
onclick="document.getElementById('Framework-Trace').style.display='none';document.getElementById('Full-Trace').style.display='none';document.getElementById('Application-Trace').style.display='block';;
return false;">Application Trace</a> |


    <a href="#"
onclick="document.getElementById('Application-Trace').style.display='none';document.getElementById('Full-Trace').style.display='none';document.getElementById('Framework-Trace').style.display='block';;
return false;">Framework Trace</a> |


    <a href="#"
onclick="document.getElementById('Application-Trace').style.display='none';document.getElementById('Framework-Trace').style.display='none';document.getElementById('Full-Trace').style.display='block';;
return false;">Full Trace</a>



    <div id="Application-Trace" style="display: block;">
      <pre><code>/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/validations.rb:923:in
`save_without_dirty!'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/dirty.rb:83:in
`save_without_transactions!'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/transactions.rb:110:in
`save!'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/connection_adapters/abstract/database_statements.rb:66:in
`transaction'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/transactions.rb:79:in
`transaction_without_deadlock_handling'
/home/edgemaster/apis/api06/vendor/plugins/deadlock_retry/lib/deadlock_retry.rb:45:in
`transaction'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/transactions.rb:98:in
`transaction'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/transactions.rb:110:in
`save!'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/transactions.rb:118:in
`rollback_active_record_state!'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/transactions.rb:110:in
`save!'
/home/edgemaster/apis/api06/app/models/node.rb:130:in `save_with_history!'
/home/edgemaster/apis/api06/app/models/node.rb:127:in `save_with_history!'
/home/edgemaster/apis/api06/app/models/node.rb:199:in `update_from'
/home/edgemaster/apis/api06/lib/diff_reader.rb:129:in `commit'
/home/edgemaster/apis/api06/lib/diff_reader.rb:54:in `with_model'
/home/edgemaster/apis/api06/lib/diff_reader.rb:39:in `with_element'
/home/edgemaster/apis/api06/lib/diff_reader.rb:50:in `with_model'
/home/edgemaster/apis/api06/lib/diff_reader.rb:120:in `commit'
/home/edgemaster/apis/api06/lib/diff_reader.rb:39:in `with_element'
/home/edgemaster/apis/api06/lib/diff_reader.rb:86:in `commit'
/home/edgemaster/apis/api06/app/controllers/changeset_controller.rb:144:in
`upload'
/home/edgemaster/apis/api06/app/controllers/changeset_controller.rb:143:in
`upload'</code></pre>
    </div>

    <div id="Framework-Trace" style="display: none;">
      <pre><code>/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/validations.rb:923:in
`save_without_dirty!'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/dirty.rb:83:in
`save_without_transactions!'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/transactions.rb:110:in
`save!'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/connection_adapters/abstract/database_statements.rb:66:in
`transaction'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/transactions.rb:79:in
`transaction_without_deadlock_handling'
/home/edgemaster/apis/api06/vendor/plugins/deadlock_retry/lib/deadlock_retry.rb:45:in
`transaction'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/transactions.rb:98:in
`transaction'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/transactions.rb:110:in
`save!'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/transactions.rb:118:in
`rollback_active_record_state!'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/transactions.rb:110:in
`save!'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/connection_adapters/abstract/database_statements.rb:66:in
`transaction'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/transactions.rb:79:in
`transaction_without_deadlock_handling'
/home/edgemaster/apis/api06/vendor/plugins/deadlock_retry/lib/deadlock_retry.rb:45:in
`transaction'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/connection_adapters/abstract/database_statements.rb:66:in
`transaction'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/transactions.rb:79:in
`transaction_without_deadlock_handling'
/home/edgemaster/apis/api06/vendor/plugins/deadlock_retry/lib/deadlock_retry.rb:45:in
`transaction'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:1166:in
`send'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:1166:in
`perform_action_without_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/filters.rb:579:in
`call_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/filters.rb:572:in
`perform_action_without_benchmark'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/benchmarking.rb:68:in
`perform_action_without_rescue'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/benchmarking.rb:68:in
`perform_action_without_rescue'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/rescue.rb:201:in
`perform_action_without_caching'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/caching/sql_cache.rb:13:in
`passenger_orig_perform_action'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in
`cache'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/query_cache.rb:8:in
`cache'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/caching/sql_cache.rb:12:in
`passenger_orig_perform_action'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/request_handler.rb:53:in
`perform_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:529:in
`send'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:529:in
`process_without_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/filters.rb:568:in
`process_without_session_management_support'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/session_management.rb:130:in
`process'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:389:in
`process'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:149:in
`handle_request'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:107:in
`dispatch'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:104:in
`synchronize'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:104:in
`dispatch'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:120:in
`dispatch_cgi'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:35:in
`dispatch'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/request_handler.rb:38:in
`process_request'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_request_handler.rb:163:in
`main_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/application_spawner.rb:307:in
`start_request_handler'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/application_spawner.rb:276:in
`handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/utils.rb:165:in
`safe_fork'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/utils.rb:163:in `fork'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/utils.rb:163:in
`safe_fork'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/application_spawner.rb:274:in
`handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/utils.rb:165:in
`safe_fork'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/utils.rb:163:in `fork'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/utils.rb:163:in
`safe_fork'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/application_spawner.rb:273:in
`handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:317:in
`__send__'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:317:in
`main_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:168:in
`start_synchronously'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:135:in
`start'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:112:in
`fork'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:112:in
`start'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/application_spawner.rb:177:in
`start'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/framework_spawner.rb:270:in
`handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/framework_spawner.rb:263:in
`synchronize'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/framework_spawner.rb:263:in
`handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:317:in
`__send__'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:317:in
`main_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:168:in
`start_synchronously'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:135:in
`start'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:112:in
`fork'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:112:in
`start'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/framework_spawner.rb:87:in
`start'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/spawn_manager.rb:218:in
`spawn_rails_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/spawn_manager.rb:213:in
`synchronize'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/spawn_manager.rb:213:in
`spawn_rails_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/spawn_manager.rb:122:in
`spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/spawn_manager.rb:247:in
`handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:317:in
`__send__'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:317:in
`main_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:168:in
`start_synchronously'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/bin/passenger-spawn-server:46</code></pre>
    </div>

    <div id="Full-Trace" style="display: none;">
      <pre><code>/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/validations.rb:923:in
`save_without_dirty!'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/dirty.rb:83:in
`save_without_transactions!'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/transactions.rb:110:in
`save!'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/connection_adapters/abstract/database_statements.rb:66:in
`transaction'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/transactions.rb:79:in
`transaction_without_deadlock_handling'
/home/edgemaster/apis/api06/vendor/plugins/deadlock_retry/lib/deadlock_retry.rb:45:in
`transaction'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/transactions.rb:98:in
`transaction'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/transactions.rb:110:in
`save!'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/transactions.rb:118:in
`rollback_active_record_state!'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/transactions.rb:110:in
`save!'
/home/edgemaster/apis/api06/app/models/node.rb:130:in `save_with_history!'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/connection_adapters/abstract/database_statements.rb:66:in
`transaction'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/transactions.rb:79:in
`transaction_without_deadlock_handling'
/home/edgemaster/apis/api06/vendor/plugins/deadlock_retry/lib/deadlock_retry.rb:45:in
`transaction'
/home/edgemaster/apis/api06/app/models/node.rb:127:in `save_with_history!'
/home/edgemaster/apis/api06/app/models/node.rb:199:in `update_from'
/home/edgemaster/apis/api06/lib/diff_reader.rb:129:in `commit'
/home/edgemaster/apis/api06/lib/diff_reader.rb:54:in `with_model'
/home/edgemaster/apis/api06/lib/diff_reader.rb:39:in `with_element'
/home/edgemaster/apis/api06/lib/diff_reader.rb:50:in `with_model'
/home/edgemaster/apis/api06/lib/diff_reader.rb:120:in `commit'
/home/edgemaster/apis/api06/lib/diff_reader.rb:39:in `with_element'
/home/edgemaster/apis/api06/lib/diff_reader.rb:86:in `commit'
/home/edgemaster/apis/api06/app/controllers/changeset_controller.rb:144:in
`upload'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/connection_adapters/abstract/database_statements.rb:66:in
`transaction'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/transactions.rb:79:in
`transaction_without_deadlock_handling'
/home/edgemaster/apis/api06/vendor/plugins/deadlock_retry/lib/deadlock_retry.rb:45:in
`transaction'
/home/edgemaster/apis/api06/app/controllers/changeset_controller.rb:143:in
`upload'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:1166:in
`send'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:1166:in
`perform_action_without_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/filters.rb:579:in
`call_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/filters.rb:572:in
`perform_action_without_benchmark'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/benchmarking.rb:68:in
`perform_action_without_rescue'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/benchmarking.rb:68:in
`perform_action_without_rescue'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/rescue.rb:201:in
`perform_action_without_caching'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/caching/sql_cache.rb:13:in
`passenger_orig_perform_action'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in
`cache'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/query_cache.rb:8:in
`cache'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/caching/sql_cache.rb:12:in
`passenger_orig_perform_action'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/request_handler.rb:53:in
`perform_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:529:in
`send'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:529:in
`process_without_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/filters.rb:568:in
`process_without_session_management_support'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/session_management.rb:130:in
`process'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:389:in
`process'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:149:in
`handle_request'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:107:in
`dispatch'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:104:in
`synchronize'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:104:in
`dispatch'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:120:in
`dispatch_cgi'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:35:in
`dispatch'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/request_handler.rb:38:in
`process_request'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_request_handler.rb:163:in
`main_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/application_spawner.rb:307:in
`start_request_handler'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/application_spawner.rb:276:in
`handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/utils.rb:165:in
`safe_fork'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/utils.rb:163:in `fork'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/utils.rb:163:in
`safe_fork'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/application_spawner.rb:274:in
`handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/utils.rb:165:in
`safe_fork'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/utils.rb:163:in `fork'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/utils.rb:163:in
`safe_fork'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/application_spawner.rb:273:in
`handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:317:in
`__send__'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:317:in
`main_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:168:in
`start_synchronously'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:135:in
`start'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:112:in
`fork'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:112:in
`start'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/application_spawner.rb:177:in
`start'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/framework_spawner.rb:270:in
`handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/framework_spawner.rb:263:in
`synchronize'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/framework_spawner.rb:263:in
`handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:317:in
`__send__'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:317:in
`main_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:168:in
`start_synchronously'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:135:in
`start'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:112:in
`fork'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:112:in
`start'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/framework_spawner.rb:87:in
`start'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/spawn_manager.rb:218:in
`spawn_rails_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/spawn_manager.rb:213:in
`synchronize'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/spawn_manager.rb:213:in
`spawn_rails_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/spawn_manager.rb:122:in
`spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/spawn_manager.rb:247:in
`handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:317:in
`__send__'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:317:in
`main_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:168:in
`start_synchronously'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/bin/passenger-spawn-server:46</code></pre>
    </div>

</div>






<h2 style="margin-top: 30px">Request</h2>
<p><b>Parameters</b>: <pre>{&quot;id&quot;=&gt;&quot;21&quot;,
 &quot;&lt;osmChange version&quot;=&gt;&quot;\&quot;0.6\&quot;
generator=\&quot;JOSM\&quot;&gt;\n&lt;modify version=\&quot;0.6\&quot;
generator=\&quot;JOSM\&quot;&gt;\n  &lt;node id='267824285'
action='modify' timestamp='2008-11-19T11:18:40Z' visible='true'
version='1' changeset='21' lat='51.4996308' lon='0.0041466'&gt;\r\n
&lt;tag k='created_by' v='JOSM' /&gt;\r\n    &lt;tag k='capacity'
v='1000' /&gt;\r\n    &lt;tag k='amenity' v='bicycle_parking'
/&gt;\r\n  &lt;/node&gt;\r\n&lt;/modify&gt;\n&lt;/osmChange&gt;\n&quot;}</pre></p>

<p><a href="#" onclick="document.getElementById('session_dump').style.display='block';
return false;">Show session dump</a></p>
<div id="session_dump" style="display:none"><pre class='debug_dump'>---
flash: !map:ActionController::Flash::FlashHash {}

</pre></div>


<h2 style="margin-top: 30px">Response</h2>
<p><b>Headers</b>: <pre>{&quot;X-Powered-By&quot;=&gt;&quot;Phusion
Passenger (mod_rails/mod_rack) 2.0.3&quot;,
 &quot;cookie&quot;=&gt;[],
 &quot;Cache-Control&quot;=&gt;&quot;no-cache&quot;}</pre></p>



</body>
</html>

After that, JOSM closes successfully the opened changeset, AND after
that, tries also to close the changeset with id 0. which is not
successfull. (404 Not Found)

Regards,

Dominik

_______________________________________________
dev mailing list
[hidden email]
http://lists.openstreetmap.org/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: API 0.6 Test Server

Shaun McDonald
Hi,
On 1 Dec 2008, at 13:21, Dominik Spies wrote:

> On Wed, Nov 26, 2008 at 8:33 PM, Thomas Wood <[hidden email]
> > wrote:
>> Hi all,
>> I have set up a copy of the 0.6 API at
>> http://api06.dev.openstreetmap.org/ as a testing server.
>> The previous version that was originally at this address was quite
>> neglected as the original maintainer had moved onto other projects.
>> It currently contains a planet extract of the London area.
>>
>> I hope to keep it tracking svn closely.
>>
>> Many thanks to Shaun McDonald, Chris Schmidt and Brett Henderson for
>> their help so far.
>
> I'm not sur if this is the right place to submit such a (possible)
> bug, but I don't know where else.
Thanks for alerting us to this problem.

>
>
> I tried this devapi with JOSM 1097. When I try to add or change a Tag
> on a *node*, this doesn't work.
> A trcace with wireshark shows, that JOSM creats the changeset
> (successfully), than tries to upload and getting a HTTP/1.1 422
> Unprocessable Entity in response. With some payload showing an
> exception:
>

  I am able to reproduce it on that server, but struggling to  
reproduce locally. Will continue looking into it tomorrow. There have  
been a couple of other bugs fixed in the process.

> [..]
> After that, JOSM closes successfully the opened changeset, AND after
> that, tries also to close the changeset with id 0. which is not
> successfull. (404 Not Found)

This is a problem with JOSM's upload code. I have sent Frederik a mail  
explaining the problem.

Shaun


_______________________________________________
dev mailing list
[hidden email]
http://lists.openstreetmap.org/listinfo/dev

smime.p7s (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: API 0.6 Test Server

Thomas Wood
2008/12/1 Shaun McDonald <[hidden email]>:

>> I tried this devapi with JOSM 1097. When I try to add or change a Tag
>> on a *node*, this doesn't work.
>> A trcace with wireshark shows, that JOSM creats the changeset
>> (successfully), than tries to upload and getting a HTTP/1.1 422
>> Unprocessable Entity in response. With some payload showing an
>> exception:
>>
>
>  I am able to reproduce it on that server, but struggling to reproduce
> locally. Will continue looking into it tomorrow. There have been a couple of
> other bugs fixed in the process.
>
> Shaun

We think we've now managed to track this issue down to osmosis' user
account that it creates for mysql imports. The rails validation
doesn't like something about it, but I'm not quite sure what yet.
Manual database tweakings of the changeset/osmosis user have provided
fruitless so far.

--
Regards,
Thomas Wood
(Edgemaster)

_______________________________________________
dev mailing list
[hidden email]
http://lists.openstreetmap.org/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: API 0.6 Test Server

Thomas Wood
In reply to this post by Thomas Wood
We think we've now pinned down and fixed all osmosis-related errors.
I've dropped the database and freshly reloaded it with the same
extract.
You'll need to create a new user account.

Happy testing all!

--
Regards,
Thomas Wood
(Edgemaster)

_______________________________________________
dev mailing list
[hidden email]
http://lists.openstreetmap.org/listinfo/dev