Multiple Site Alias request returns insufficient error content
Nessuno ha ancora preso questa issue.
- Lingua principale
- PHP
- Stelle
- 157
- Fork
- 79
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
In setting up some tools to 'bulk-manage' site aliases, it appears that when I make a request to get Info for multiple Site Aliases and one of them doesn't exist, I get a generic, singular, and somewhat malformed result. Examples below:
There were four aliased subdomains on qa.domain.com. The last two aliases have been removed prior to this test.
REQUEST
<packet>
<site-alias>
<get>
<filter>
<name>alias-02.qa.domain.com</name>
<name>alias-03.qa.domain.com</name>
<name>alias-04.qa.domain.com</name>
<name>alias-05.qa.domain.com</name>
</filter>
</get>
</site-alias>
</packet>
RESPONSE (in JSON for readability)
{
"success": false,
"domain": "..domain.com",
"message": "Domain alias does not exist"
}
The domain element is malformed, and it neither gives me the info that it can get on the existing aliases, nor does it tell me which aliases, if any, do not exist.
I can work around this by making discrete calls to see which fail, but cringe at the wasted overhead and time to set this up.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Start with the multi-name site-alias get request and its malformed response example, then trace how the library handles missing aliases and successful results. Done means the response identifies missing aliases and returns information for aliases that exist, without the malformed domain value.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- php
- Ambito
- api
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100