Either I have a major misconfiguration on 4 of my drupal sites (I hope not so), or this is a grave bug (I hope even less!):
I am using German language.
When opening the "Text übersetzen" ("Translate Text") overlay, filling in a value and pressing "Save translation", it gets saved into the DB normally, but uploading fails with the error message:

Die Verbindung mit dem entfernten Server https://localize.drupal.org konnte nicht hergestellt werden: 403: Forbidden..

I have triple-checked that my API token is correct.
And I don't know how else this could fail.

The only thing I could think of: I am using Uberspace as hoster - could it be that the server has problems opening connections to the outside world from drupal?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

nerdoc created an issue. See original summary.

Neograph734’s picture

Title: 403 for uploading translations » Wrong default variable causing HTTP 403 Forbidden error for uploading translations
Version: 7.x-1.3 » 7.x-1.x-dev

I ran into the same, and found a solution in this this issue: #2638468: 403 forbidden on http://localize.drupal.org/xmlrpc.php due to redirects. You need to manually enforce the translation server variable (l10n_client_server) to be http://localize.drupal.org/. The current default variable http://localize.drupal.org (without the trailing slash) no longer appears to work.

Perhaps this value can be set as the new default for this field? And a database update I guess.

Neograph734’s picture

Gábor Hojtsy’s picture

Version: 7.x-1.x-dev » 8.x-1.x-dev
FileSize
6.61 KB

Here is a full https-ifying patch including fixing some mention of the domain in docs for Drupal 8. It does have the right default with https and slash and everything, so it does not need more fixing there.

Gábor Hojtsy’s picture

Title: Wrong default variable causing HTTP 403 Forbidden error for uploading translations » Fix instances of wrong localize.drupal.org defaults and other outdated http links

Pushed to Drupal 8.

  • Gábor Hojtsy committed 6a93695 on 8.x-1.x
    Issue #2705877 by Gábor Hojtsy, Neograph734, nerdoc: Fix instances of...
Gábor Hojtsy’s picture

Title: Wrong default variable causing HTTP 403 Forbidden error for uploading translations » Fix instances of wrong localize.drupal.org defaults and other outdated http links
Version: 8.x-1.x-dev » 7.x-1.x-dev
Status: Active » Needs review
FileSize
7.64 KB

Same patch for Drupal 7.

  • Gábor Hojtsy committed 647c0d5 on 7.x-1.x
    Issue #2705877 by Gábor Hojtsy, Neograph734, nerdoc: Fix instances of...
Gábor Hojtsy’s picture

Status: Needs review » Fixed

Status: Fixed » Needs work

The last submitted patch, 7: 2705877.patch, failed testing.

Gábor Hojtsy’s picture

Status: Needs work » Fixed

Patch was not tested against the right branch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.