os-ddclient: GoDaddy updates still fail with the ddclient backend (TTL sent as a string), same as #5220
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 58/100
Línea de trabajo
Start by checking how os-ddclient installs or configures ddclient 3.11.2 and where its GoDaddy backend is maintained; the report identifies nic_godaddy_update and the TTL value passed to encode_json. Reproduce with the provided ddclient -daemon=0 -verbose -noquiet -force -file /usr/local/etc/ddclient.conf command using TTL 600. Done means GoDaddy accepts the update with a numeric TTL, and the plugin’s handling of the requested default and failed update logging is addressed.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
This is #5220 again; that issue was closed as "not planned" by the stale bot, and the bug is still there.
Versions: OPNsense 26.7.10-amd64 (FreeBSD 15.1-RELEASE-p7), os-ddclient 1.34, ddclient 3.11.2_2
What happens: with the ddclient backend and service GoDaddy, no update ever succeeds, and nothing shows in the plugin's log or status columns. Running ddclient by hand shows two problems in a row:
- With the default TTL (300), GoDaddy rejects the update:
SENDING: data="[{\"ttl\":300, ...}]" RECEIVE: HTTP/1.1 422 Unprocessable Entity {"code":"INVALID_BODY","fields":[{"code":"UNKNOWN_RESTRICTION","message":"must have a minimum value of 600","path":"records[0].ttl"}], ...} - With TTL set to 600 in the account, ddclient sends it as a JSON string, and GoDaddy rejects that too:
SENDING: data="[{... \"ttl\":\"600\" ...}]" RECEIVE: HTTP/1.1 422 Unprocessable Entity {"code":"INVALID_BODY","fields":[{"code":"UNEXPECTED_TYPE","message":"is not a integer","path":"records[0].ttl"}], ...}
So no TTL value works with GoDaddy.
Cause: in ddclient 3.11.2, nic_godaddy_update passes the config value straight into encode_json:
defined($config{$host}{'ttl'}) ? (ttl => $config{$host}{'ttl'}) : (),
Values read from ddclient.conf are strings, so JSON::PP encodes them quoted. Upstream ddclient tracked this as ddclient/ddclient#836, closed as fixed in 4.x, but OPNsense still ships 3.11.2.
Workaround (verified): forcing the value to a number makes the update succeed ("ttl":600, HTTP 200):
defined($config{$host}{'ttl'}) ? (ttl => 0 + $config{$host}{'ttl'}) : (),
The workaround is lost on every update that reinstalls ddclient.
Suggested fix:
- Ship a ddclient with the upstream fix, or carry this one-line patch in the package.
- Default the GoDaddy TTL to 600, GoDaddy's minimum, as #5220 proposed.
- It would also help if failed updates showed up in the plugin's log page. Here they only appeared when ddclient was run by hand with
-verbose.
To reproduce: os-ddclient, backend ddclient, service GoDaddy, any API key with DNS access, any TTL. Then run:
ddclient -daemon=0 -verbose -noquiet -force -file /usr/local/etc/ddclient.conf
- Lenguaje dominante
- PHP
- Estrellas
- 1.2k
- Forks
- 926
- Merge medio
- 1 d 10 h
- PR fusionados (30 d)
- 25
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de opnsense/plugins
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
opnsense/plugins#5976 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
net/haproxy: IPv6 literal in real server "Source address" generates an invalid `source` directiveAbiertoincomplete
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
opnsense/plugins#5973 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[dns/ddclient] Support hiding unused standard fields per service (optional_hiding)Posiblemente ocupada @bringha1 la tomó hace 1 día. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
q-feeds-connector: "error in configd communication" every update when the Unbound DNSBL rebuild takes longer than 120sPosiblemente ocupada @mhatipog la tomó hace 9 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
Todos los issues de opnsense/plugins
Issues similares
-
15.0
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
open-telemetry/opentelemetry-php-distro#176 ·
Los mantenedores suelen responder en 2 días
-
No Code Attached Yet
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
joomla/joomla-cms#48941 ·
Los mantenedores suelen responder en 1 día
-
needs-triage Platform(Default)
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
bug new
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
moodle-an-hochschulen/moodle-theme_boost_union#1500 ·
Los mantenedores suelen responder en 1 día