Fix libcurl upgrade breaking cloud backups#244
Fix libcurl upgrade breaking cloud backups#244prajwaltr93 wants to merge 1 commit intozmanda:3_5from
Conversation
- set only required http methods
|
I've rebuilt the amanda packages with these changes in for Ubuntu 24.04, and it mostly works (admitted on a small test setup). The only time it does not work, is when it's time to overwrite a tape, the taper debug log then shows the following: I think this is when the files are deleted that are related to the tape amanda will write to. The interesting thing is that this deletion seems to work, despite the error. A subsequent Let me add that the amanda version on Ubuntu 24.04 is 3.5.1 (with some Ubuntu-specific patches). |
|
After applying the above mentioned commit, I observed the exact same behaviour when amdump starts creating new files after deletion. I guessed it has something to do with the wrong HTTP method. After investigating the code, the libcurl docs, I can't remember exactly, please correct me, but as I understood, the http method could not be changed anymore in the request object of libcurl. Unless you do a reset. Therefore, despite the warning in device-src/s3.c: I applied following addition to the code, build it again, and it works: |
- Fix calling `ar` directly - Fix installing amandahosts file and symlink - Fix issues with S3 & libcurl (compile tested only, however comments from zmanda/amanda#244 indicate success) Signed-off-by: Doug Nazar <nazard@nazar.ca> Closes: https://bugs.gentoo.org/766692 Closes: https://bugs.gentoo.org/766698 Closes: https://bugs.gentoo.org/907685
- Fix calling `ar` directly - Fix installing amandahosts file and symlink - Fix issues with S3 & libcurl (compile tested only, however comments from zmanda/amanda#244 indicate success) Closes: https://bugs.gentoo.org/766692 Closes: https://bugs.gentoo.org/766698 Closes: https://bugs.gentoo.org/907685 Signed-off-by: Doug Nazar <nazard@nazar.ca>
- Fix calling `ar` directly - Fix installing amandahosts file and symlink - Fix issues with S3 & libcurl (compile tested only, however comments from zmanda/amanda#244 indicate success) Closes: https://bugs.gentoo.org/766692 Closes: https://bugs.gentoo.org/766698 Closes: https://bugs.gentoo.org/907685 Signed-off-by: Doug Nazar <nazard@nazar.ca>
- Fix calling `ar` directly - Fix installing amandahosts file and symlink - Fix issues with S3 & libcurl (compile tested only, however comments from zmanda/amanda#244 indicate success) Closes: https://bugs.gentoo.org/766692 Closes: https://bugs.gentoo.org/766698 Closes: https://bugs.gentoo.org/907685 Signed-off-by: Doug Nazar <nazard@nazar.ca> Closes: #39839 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
tested on ubuntu 22.04
certain PUT requests were being set as GET, due to multiple options being set at the same time. this caused a signature mis-match error since there was PUT verb in headers which was signed, and a GET request was being made by libcurl, it is now fixed by setting only required http method.