Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webdav door returns 500 withour explanation if OSMTemplate has invalid content #7560

Closed
kofemann opened this issue Apr 26, 2024 · 1 comment

Comments

@kofemann
Copy link
Member

If a directory tag OSMTemplate is not empty but doesn't contain the expected line StoreName xxx, then Webdav door will return error 500 without details and log message. With higher debug lever one can get more information, which is still quite cryptic:

26 Apr 2024 08:56:40 (WebDAVs-door01) [door:WebDAVs-door01@WebDAVs-door01-domain:AAYW/BUEIhA] template 'client' not found in templategroup: /usr/share/dcache/webdav/templates/html.stg
26 Apr 2024 08:56:40 (WebDAVs-door01) [door:WebDAVs-door01@WebDAVs-door01-domain:AAYW/BUEIhA] Internal server error: org.dcache.webdav.WebDavException: StoreName not found in template
26 Apr 2024 08:56:40 (WebDAVs-door01) [door:WebDAVs-door01@WebDAVs-door01-domain:AAYW/BUEIhA] Client indicated response preference: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
26 Apr 2024 08:56:40 (WebDAVs-door01) [door:WebDAVs-door01@WebDAVs-door01-domain:AAYW/BUEIhA] MIME-Type "text/html" has no q-value
26 Apr 2024 08:56:40 (WebDAVs-door01) [door:WebDAVs-door01@WebDAVs-door01-domain:AAYW/BUEIhA] Responding with MIME-Type "text/html; charset=utf-8"
26 Apr 2024 08:56:40 (WebDAVs-door01) [door:WebDAVs-door01@WebDAVs-door01-domain:AAYW/BUEIhA] write(array HeapByteBuffer@72ad8a0a[p=0,l=3251,c=3251,r=3251]={<<<    <!DOCTYPE html>\n    <...    </body>\n    </html>>>>})
26 Apr 2024 08:56:40 (WebDAVs-door01) [door:WebDAVs-door01@WebDAVs-door01-domain:AAYW/BUEIhA] write(array) s=OPEN,api=BLOCKING,sc=false,e=null aggregated !flush HeapByteBuffer@734cee33[p=0,l=3251,c=32768,r=3251]={<<<    <!DOCTYPE html>\n    <...    </body>\n    </html>>>>  </html>...\x00\x00\x00\x00\x00\x00\x00}
26 Apr 2024 08:56:40 (WebDAVs-door01) [door:WebDAVs-door01@WebDAVs-door01-domain:AAYW/BUEIhA] sendResponse info=null content=HeapByteBuffer@734cee33[p=0,l=3251,c=32768,r=3251]={<<<    <!DOCTYPE html>\n    <...    </body>\n    </html>>>>  </html>...\x00\x00\x00\x00\x00\x00\x00} complete=false committing=true callback=Blocker@ab7cb39{null}
26 Apr 2024 08:56:40 (WebDAVs-door01) [door:WebDAVs-door01@WebDAVs-door01-domain:AAYW/BUEIhA] COMMIT for / on HttpChannelOverHttp@10ef9815{s=HttpChannelState@55ed046c{s=HANDLING rs=BLOCKING os=COMMITTED is=IDLE awp=false se=false i=true al=0},r=1,c=false/false,a=HANDLING,uri=https://10.47.91.34:8443/,age=18}
Apr 26 08:56:40 door01 dcache@WebDAVs-door01-domain[3480]: 500 null HTTP/1.1
Apr 26 08:56:40 door01 dcache@WebDAVs-door01-domain[3480]: Date: Fri, 26 Apr 2024 08:56:40 GMT
Apr 26 08:56:40 door01 dcache@WebDAVs-door01-domain[3480]: Server: dCache/9.2.12
Apr 26 08:56:40 door01 dcache@WebDAVs-door01-domain[3480]: Accept-Ranges: bytes
@kofemann
Copy link
Member Author

One is to remove such a 'bad' directory from the listing and rise an alarm:

} catch (CacheException e) {
  LOGGER.error(AlarmMarkerFactory.getMarker(PredefinedAlarm.INACCESSIBLE_FILE,
                  "namespace"),
          "Failed to retrieve file attributes {} : {}",
                           entry.getStat().getId(), e.toString());
}
Failed to retrieve file attributes 00007FE77774C27B4EF6BB08D509FFE393BE : CacheException(rc=37;msg=StoreName not found in template)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant