| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
This is already done in finish_call and the assignent to
priv->status_message was leaking the previously set value.
|
|
|
|
| |
WIP (enums?)
|
|
|
|
|
|
| |
Before this, it was impossible to get the server payload from a proxy
call invoked via rest_proxy_call_upload.
Also test that this works.
|
|
|
|
|
| |
Remove some of the old functions from rest-sections.txt and add some new
ones.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
... and use TestServer.
|
| |
|
|
|
|
| |
That's what libsoup uses as well.
|
|
|
|
| |
Add a simple soup server implementation that runs in a different thread.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Allowing NULL parameter values and then changing that to "GET" seems
weird, so just check that the given method is !NULL and use it in any
case.
|
| |
|
| |
|
|
|
|
| |
configure.ac already checks for libsoup >= 2.42
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Use assert macros instead of error counting and drop deprecated libsoup
API
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
Currently rest_proxy_call_sync (and everything else using
prepare_message) might return FALSE without setting @error at all. Add
two new error codes to indicate the possible problems and reliably
set the error if something went wrong.
|
| |
|
|
|
|
|
|
|
| |
It has been deprecated for a long while, and we were only using it for
proxy support. However, now that we switched to using SoupSession rather
than SoupSession{Sync,Async}, a default proxy resolver will be used, so
we don't need to set it explicitly.
|
|
|
|
|
| |
We switched to using SoupSession directly, but it's only possible since
libsoup 2.42
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This fixes:
==16342== 93 (64 direct, 29 indirect) bytes in 1 blocks are definitely lost in loss record 211 of 278
==16342== at 0x4C2BBAD: malloc (vg_replace_malloc.c:299)
==16342== by 0x5F5CE58: g_malloc (gmem.c:94)
==16342== by 0x5F73D42: g_slice_alloc (gslice.c:1025)
==16342== by 0x5F7436D: g_slice_alloc0 (gslice.c:1051)
==16342== by 0x56DA77A: soup_uri_new_with_base (soup-uri.c:283)
==16342== by 0x56DAA42: soup_uri_new (soup-uri.c:519)
==16342== by 0x4E48BB5: oauth2_proxy_extract_access_token (oauth2-proxy.c:384)
==16342== by 0x4009E6: test_url_fragment_no_access_token (oauth2.c:36)
==16342== by 0x5F7C983: test_case_run (gtestutils.c:2158)
==16342== by 0x5F7C983: g_test_run_suite_internal (gtestutils.c:2241)
==16342== by 0x5F7CB4E: g_test_run_suite_internal (gtestutils.c:2253)
==16342== by 0x5F7CD5D: g_test_run_suite (gtestutils.c:2328)
==16342== by 0x5F7CD80: g_test_run (gtestutils.c:1596)
==16342== by 0x400B64: main (oauth2.c:65)
==16342==
==16342== 133 (64 direct, 69 indirect) bytes in 1 blocks are definitely lost in loss record 262 of 278
==16342== at 0x4C2BBAD: malloc (vg_replace_malloc.c:299)
==16342== by 0x5F5CE58: g_malloc (gmem.c:94)
==16342== by 0x5F73D42: g_slice_alloc (gslice.c:1025)
==16342== by 0x5F7436D: g_slice_alloc0 (gslice.c:1051)
==16342== by 0x56DA77A: soup_uri_new_with_base (soup-uri.c:283)
==16342== by 0x56DAA42: soup_uri_new (soup-uri.c:519)
==16342== by 0x4E48BB5: oauth2_proxy_extract_access_token (oauth2-proxy.c:384)
==16342== by 0x400A25: test_access_token_simple (oauth2.c:44)
==16342== by 0x5F7C983: test_case_run (gtestutils.c:2158)
==16342== by 0x5F7C983: g_test_run_suite_internal (gtestutils.c:2241)
==16342== by 0x5F7CB4E: g_test_run_suite_internal (gtestutils.c:2253)
==16342== by 0x5F7CD5D: g_test_run_suite (gtestutils.c:2328)
==16342== by 0x5F7CD80: g_test_run (gtestutils.c:1596)
==16342== by 0x400B64: main (oauth2.c:65)
==16342==
==16342== 137 (64 direct, 73 indirect) bytes in 1 blocks are definitely lost in loss record 263 of 278
==16342== at 0x4C2BBAD: malloc (vg_replace_malloc.c:299)
==16342== by 0x5F5CE58: g_malloc (gmem.c:94)
==16342== by 0x5F73D42: g_slice_alloc (gslice.c:1025)
==16342== by 0x5F7436D: g_slice_alloc0 (gslice.c:1051)
==16342== by 0x56DA77A: soup_uri_new_with_base (soup-uri.c:283)
==16342== by 0x56DAA42: soup_uri_new (soup-uri.c:519)
==16342== by 0x4E48BB5: oauth2_proxy_extract_access_token (oauth2-proxy.c:384)
==16342== by 0x400A97: test_url_encoding_access_token (oauth2.c:51)
==16342== by 0x5F7C983: test_case_run (gtestutils.c:2158)
==16342== by 0x5F7C983: g_test_run_suite_internal (gtestutils.c:2241)
==16342== by 0x5F7CB4E: g_test_run_suite_internal (gtestutils.c:2253)
==16342== by 0x5F7CD5D: g_test_run_suite (gtestutils.c:2328)
==16342== by 0x5F7CD80: g_test_run (gtestutils.c:1596)
==16342== by 0x400B64: main (oauth2.c:65)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The string returned from oauth2_proxy_extract_access_token() must be
freed. This fixes:
==16342== 27 bytes in 1 blocks are definitely lost in loss record 125 of 278
==16342== at 0x4C2BBAD: malloc (vg_replace_malloc.c:299)
==16342== by 0x5F5CE58: g_malloc (gmem.c:94)
==16342== by 0x5F75917: g_strndup (gstrfuncs.c:425)
==16342== by 0x56D9BA4: soup_uri_decoded_copy (soup-uri.c:761)
==16342== by 0x4E48C0B: oauth2_proxy_extract_access_token (oauth2-proxy.c:392)
==16342== by 0x400A25: test_access_token_simple (oauth2.c:44)
==16342== by 0x5F7C983: test_case_run (gtestutils.c:2158)
==16342== by 0x5F7C983: g_test_run_suite_internal (gtestutils.c:2241)
==16342== by 0x5F7CB4E: g_test_run_suite_internal (gtestutils.c:2253)
==16342== by 0x5F7CD5D: g_test_run_suite (gtestutils.c:2328)
==16342== by 0x5F7CD80: g_test_run (gtestutils.c:1596)
==16342== by 0x400B64: main (oauth2.c:65)
==16342==
==16342== 27 bytes in 1 blocks are definitely lost in loss record 126 of 278
==16342== at 0x4C2BBAD: malloc (vg_replace_malloc.c:299)
==16342== by 0x5F5CE58: g_malloc (gmem.c:94)
==16342== by 0x5F75917: g_strndup (gstrfuncs.c:425)
==16342== by 0x56D9BA4: soup_uri_decoded_copy (soup-uri.c:761)
==16342== by 0x4E48C0B: oauth2_proxy_extract_access_token (oauth2-proxy.c:392)
==16342== by 0x400A97: test_url_encoding_access_token (oauth2.c:51)
==16342== by 0x5F7C983: test_case_run (gtestutils.c:2158)
==16342== by 0x5F7C983: g_test_run_suite_internal (gtestutils.c:2241)
==16342== by 0x5F7CB4E: g_test_run_suite_internal (gtestutils.c:2253)
==16342== by 0x5F7CD5D: g_test_run_suite (gtestutils.c:2328)
==16342== by 0x5F7CD80: g_test_run (gtestutils.c:1596)
==16342== by 0x400B64: main (oauth2.c:65)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This fixes:
==16369== 16 bytes in 1 blocks are definitely lost in loss record 885 of 3,291
==16369== at 0x4C2DA60: calloc (vg_replace_malloc.c:711)
==16369== by 0x5F5CEB0: g_malloc0 (gmem.c:124)
==16369== by 0x5F57BF1: g_main_loop_new (gmain.c:3929)
==16369== by 0x401B13: test_request_token (oauth-async.c:183)
==16369== by 0x5F7C983: test_case_run (gtestutils.c:2158)
==16369== by 0x5F7C983: g_test_run_suite_internal (gtestutils.c:2241)
==16369== by 0x5F7CB4E: g_test_run_suite_internal (gtestutils.c:2253)
==16369== by 0x5F7CD5D: g_test_run_suite (gtestutils.c:2328)
==16369== by 0x5F7CD80: g_test_run (gtestutils.c:1596)
==16369== by 0x401D1C: main (oauth-async.c:237)
==16369==
==16369== 16 bytes in 1 blocks are definitely lost in loss record 886 of 3,291
==16369== at 0x4C2DA60: calloc (vg_replace_malloc.c:711)
==16369== by 0x5F5CEB0: g_malloc0 (gmem.c:124)
==16369== by 0x5F57BF1: g_main_loop_new (gmain.c:3929)
==16369== by 0x401BA9: test_access_token (oauth-async.c:199)
==16369== by 0x5F7C983: test_case_run (gtestutils.c:2158)
==16369== by 0x5F7C983: g_test_run_suite_internal (gtestutils.c:2241)
==16369== by 0x5F7CB4E: g_test_run_suite_internal (gtestutils.c:2253)
==16369== by 0x5F7CD5D: g_test_run_suite (gtestutils.c:2328)
==16369== by 0x5F7CD80: g_test_run (gtestutils.c:1596)
==16369== by 0x401D1C: main (oauth-async.c:237)
==16369==
==16369== 16 bytes in 1 blocks are definitely lost in loss record 887 of 3,291
==16369== at 0x4C2DA60: calloc (vg_replace_malloc.c:711)
==16369== by 0x5F5CEB0: g_malloc0 (gmem.c:124)
==16369== by 0x5F57BF1: g_main_loop_new (gmain.c:3929)
==16369== by 0x401C3F: test_calls (oauth-async.c:215)
==16369== by 0x5F7C983: test_case_run (gtestutils.c:2158)
==16369== by 0x5F7C983: g_test_run_suite_internal (gtestutils.c:2241)
==16369== by 0x5F7CB4E: g_test_run_suite_internal (gtestutils.c:2253)
==16369== by 0x5F7CD5D: g_test_run_suite (gtestutils.c:2328)
==16369== by 0x5F7CD80: g_test_run (gtestutils.c:1596)
==16369== by 0x401D1C: main (oauth-async.c:237)
|