AlistGo/alist · error
must not be empty
Error message
%s must not be empty
What it means
propfindProps.UnmarshalXML rejects a <prop> element that contains no property names at all — the DAV: prop element must list at least one property per RFC 4918. This is an XML-schema validation guard on the parsed PROPFIND body.
Solutions
- Ensure the referenced value is configured and non-empty, then retry the operation.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at server/webdav/xml.go:152 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of AlistGo/alist@843d9dc814 (2026-08-15).
Data as JSON: /api/errors/f7704f36fda03c6d.
Report an issue: GitHub.
Appendix: source
Thrown at server/webdav/xml.go:152
}
// http://www.webdav.org/specs/rfc4918.html#ELEMENT_prop (for propfind)
type propfindProps []xml.Name
// UnmarshalXML appends the property names enclosed within start to pn.
//
// It returns an error if start does not contain any properties or if
// properties contain values. Character data between properties is ignored.
func (pn *propfindProps) UnmarshalXML(d *ixml.Decoder, start ixml.StartElement) error {
for {
t, err := next(d)
if err != nil {
return err
}
switch t.(type) {
case ixml.EndElement:
if len(*pn) == 0 {
return fmt.Errorf("%s must not be empty", start.Name.Local)
}
return nil
case ixml.StartElement:
name := t.(ixml.StartElement).Name
t, err = next(d)
if err != nil {
return err
}
if _, ok := t.(ixml.EndElement); !ok {
return fmt.Errorf("unexpected token %T", t)
}
*pn = append(*pn, xml.Name(name))
}
}
}
// http://www.webdav.org/specs/rfc4918.html#ELEMENT_propfind
type propfind struct {View on GitHub (pinned to 843d9dc814)