Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Original issue reported: #2208679: All Translators (auto created) (unsupported)
After investigation it turned out that in case of auth failure we only log the error but nothing gets displayed to UI. That leaves an impression that either bing cannot translate the language pair or there is a bug at the client side. This problem should be addressed on both the job checkout page as well as the translator settings page where it tries to get available target languages.
Comment | File | Size | Author |
---|---|---|---|
#21 | interdiff-authentication_error_to-2211889-20-21.txt | 998 bytes | edurenye |
#21 | authentication_error_to-2211889-21.patch | 5.78 KB | edurenye |
| |||
#20 | interdiff-authentication_error_to-2211889-19-20.txt | 1.02 KB | edurenye |
#20 | authentication_error_to-2211889-20.patch | 5.78 KB | edurenye |
| |||
#19 | interdiff-authentication_error_to-2211889-17-19.txt | 1004 bytes | edurenye |
Comments
Comment #1
miro_dietikerPushing to major as it's a severe usability issue.
People always had problems to get the credentials right.
Validation is critical.
Comment #2
blueminds CreditAttribution: blueminds commentedAlso see https://drupal.org/comment/8553545#comment-8553545 and below. The API key is causing also some confusion (including in my case). Maybe getting rid of it?
Comment #3
BerdirYes, but we decided to leave it originally because it still worked for existing clients. Probably no longer the case.
Comment #4
AnybodyI can confirm that the old method does not work anymore. It should be removed with the next release and these problems could be fixed though. It would be good to output a note using hook_update() :)
Comment #5
AnybodyCould the maintainer have a look at this perhaps and fix it in the .dev release?
This bug makes the module hard to use for new users currently!
Comment #6
edurenye CreditAttribution: edurenye at MD Systems GmbH commentedIn this issue we can do both validations, the api-key and the remote langcode (https://www.drupal.org/node/2256959#comment-10331205).
Comment #7
edurenye CreditAttribution: edurenye at MD Systems GmbH commentedDone both validations for api key and for languages.
Added tests for not valid api key.
Tested manually language validation as it needs a valid api key to be tested.
Comment #10
edurenye CreditAttribution: edurenye at MD Systems GmbH commentedSorry, I thought that this issue was for D8, should I open a new issue for D8 or change this issue to D8?
Comment #11
edurenye CreditAttribution: edurenye at MD Systems GmbH commentedChanged to D8
Comment #12
edurenye CreditAttribution: edurenye at MD Systems GmbH commentedApply the last api changes and added tests using the mock.
Comment #15
BerdirThis comment isn't really correct, they're not unsupported, they're just not mapped.
Also ,this logic doesn't seem to belong here, it's not specific to Microsoft translator, we could do this for all translators that support remote mappings?
The second part is tricky then, of course, if we remove the first part.
Comment #16
edurenye CreditAttribution: edurenye at MD Systems GmbH commentedSo we might move the logic to the parent then? Should I do it here #2256959: Validate language mapping selection?
Comment #17
edurenye CreditAttribution: edurenye at MD Systems GmbH commentedI discussed this with @Berdir, we are going to move the mapping validation to the TranslatorForm in the issue #2256959: Validate language mapping selection
So here is the patch with just the validaton of the client id and client secret and the changes in the API.
Comment #18
juanse254 CreditAttribution: juanse254 at MD Systems GmbH commentedThis is not right.
Comment #19
edurenye CreditAttribution: edurenye at MD Systems GmbH commentedDone.
Comment #20
edurenye CreditAttribution: edurenye at MD Systems GmbH commentedSmall fix.
Comment #21
edurenye CreditAttribution: edurenye at MD Systems GmbH commentedThe last was wrong, this is the good way.
Comment #22
BerdirOk, committed.
Comment #24
miro_dietikerYay! We start to have real setting validations! :-)