Date: Sun, 16 Jun 2024 20:23:39 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 269979] net/megacmd: webdav server fail on any version after 1.4.1 (was: v1.5.0 broken / core dump during start) Message-ID: <bug-269979-7788-xSFkbYvf4R@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-269979-7788@https.bugs.freebsd.org/bugzilla/> References: <bug-269979-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269979 --- 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 =3D=3D HTTP_PUT) { //create tmp file with contents in messageBody if (!httpctx->tmpFileAccess) { httpctx->tmpFileName=3Dhttpctx->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 =3D LocalPath::fromPath(httpctx->path, *httpctx->server->fsAccess); + LocalPath localpath =3D 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 thi= s, we are sorry for the inconvenience. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-269979-7788-xSFkbYvf4R>