[Bug 269979] net/megacmd: webdav server fail on any version after 1.4.1 (was: v1.5.0 broken / core dump during start)
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 269979] net/megacmd: v1.5.0 broken (core dump during start)"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 16 Jun 2024 20:23:39 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269979 --- Comment #13 from Riccardo Torrini <riccardo@torrini.org> --- This is (part of) one of my trouble tickets to mega: ----- 8< ----- I'm not fluent on C++ programming but I think that you can investigate megaapi_impl.cpp, inside MegaHTTPServer::onBody() (diff between sdk-3.9.11a and sdk-4.17.1d, as an example) ----- 8< ----- if (parser->method == HTTP_PUT) { //create tmp file with contents in messageBody if (!httpctx->tmpFileAccess) { httpctx->tmpFileName=httpctx->server->basePath; httpctx->tmpFileName.append("httputfile"); - LocalPath suffix; - httpctx->server->fsAccess->tmpnamelocal(suffix); - httpctx->tmpFileName.append(suffix.toPath(*httpctx->server->fsAccess)); + httpctx->tmpFileName.append(LocalPath::tmpNameLocal().toPath(false)); string ext; - LocalPath localpath = LocalPath::fromPath(httpctx->path, *httpctx->server->fsAccess); + LocalPath localpath = LocalPath::fromAbsolutePath(httpctx->path); if (httpctx->server->fsAccess->getextension(localpath, ext)) { httpctx->tmpFileName.append(ext); } ----- 8< ----- Could the problem be triggered by files without an extension? Unfortunately (for me at least) last answer was: Our developers are chacking the issue but they have answered that we won't be fixing that any time soon though. We will contact you again if we solve this, we are sorry for the inconvenience. -- You are receiving this mail because: You are the assignee for the bug.