<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hi!<br>
    <br>
    I've been trying to find a solution for a whole week. I tried
    different distros of Linux, none worked. <br>
    <br>
    Today I installed the brand new Ubuntu 11.04 and decided to give a
    final try. What I have now:<br>
    <br>
    1. The text of the error in Josm changed, now it is:<br>
    <br>
    POST <a class="moz-txt-link-freetext" href="http://127.0.0.1/api/0.6/changeset/4575222/upload">http://127.0.0.1/api/0.6/changeset/4575222/upload</a>... Bad
    Request<br>
    Error header: Document is not accessible to Ruby (hint - did you
    call Reader#expand?).<br>
    org.openstreetmap.josm.io.OsmApiException: ResponseCode=400, Error
    Header=<Document is not accessible to Ruby (hint - did you call
    Reader#expand?).><br>
    <br>
    2. The 'rake test' passes (previously it was falling in the middle
    of functional tests with segmentation fault) but gives about 20
    failures with 500 or 400 error code.<br>
    <br>
    <br>
    What can all this mean?<br>
    <br>
    Kirill<br>
    <br>
    <br>
    <br>
    On 22.04.2011 14:15, Shaun McDonald wrote:
    <blockquote
      cite="mid:FBEFEBEB-C280-4A01-B390-144582F6DDFC@shaunmcdonald.me.uk"
      type="cite">The problem is to do with OAuth. Have you setup a new
      OAuth application in your rails port install and entered those
      settings into JOSM?
      <div><br>
      </div>
      <div>Shaun</div>
      <div><br>
        <div>
          <div>On 22 Apr 2011, at 11:11, Kirill Bestoujev wrote:</div>
          <br class="Apple-interchange-newline">
          <blockquote type="cite">I just tried to edit the data with
            Poltach - it works ok... <br>
            <br>
            Is Poltach interacting with the api in a different way then
            josm does?<br>
            <br>
            Kirill<br>
            <br>
            <div class="gmail_quote">2011/4/22 Kirill Bestoujev <span
                dir="ltr"><<a moz-do-not-send="true"
                  href="mailto:bestoujev@gmail.com">bestoujev@gmail.com</a>></span><br>
              <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
                0.8ex; border-left: 1px solid rgb(204, 204, 204);
                padding-left: 1ex;">Hi everybody!<br>
                <br>
                I have a problem with rails port.<br>
                <br>
                Ubuntu 10.04, x64.<br>
                I installed the rails port according to the wiki,
                uploaded the data into it. Activated the users.\<br>
                <br>
                All looks fine, I can download data with Josm, but I
                fail to upload anything.<br>
                <br>
                In josm I get Internal server error 500.<br>
                In rails log I have<br>
                <br>
                [2011-04-22 09:32:45.814749 #13100] Processing
                ChangesetController#close (for 127.0.0.1 at 2011-04-22
                09:32:45) [PUT]<br>
                [2011-04-22 09:32:45.814877 #13100]   Parameters:
                {"action"=>"close", "id"=>"4575187",
                "controller"=>"changeset"}<br>
                [2011-04-22 09:32:45.815438 #13100]
                ERROROAuth::Signature::UnknownSignatureMethod<br>
                <br>
                In apache error.log I get:<br>
                <br>
                [Thu Apr 21 17:38:14 2011] [error] [client 127.0.0.1]
                Premature end of script headers: 0.6<br>
                [ pid=21761 thr=139954888980288
                file=ext/apache2/Hooks.cpp:822 time=2011-04-21
                17:38:14.321 ]: The backend application (process 22666)
                did not send a valid HTTP response; instead, it sent
                nothing at all. It is possible that it has crashed;
                please check whether there are crashing bugs in this
                application.<br>
                /home/kirill/fork/rails/app/models/node.rb:82: [BUG]
                Segmentation fault<br>
                ruby 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux]<br>
                <br>
                <br>
                I tried different version of josm, the problem is always
                there.<br>
                <br>
                What can it be?<br>
                <font color="#888888">
                  <br>
                  Kirill<br>
                </font></blockquote>
            </div>
            <br>
            _______________________________________________<br>
            dev mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a><br>
            <a class="moz-txt-link-freetext" href="http://lists.openstreetmap.org/listinfo/dev">http://lists.openstreetmap.org/listinfo/dev</a><br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>