GNOME Bugzilla – Bug 783046
Invalid URIs are generated when q and q_internal properties are set
Last modified: 2017-05-25 13:22:30 UTC
get_query_uri produces invalid URIs for cases when q and q_internal properties are set, because any separator isn't added between them. Consequently, the queries end up with errors.
Created attachment 352497 [details] [review] Fix invalid URIs when q and q_internal properties are set get_query_uri produces invalid URIs for cases when q and q_internal properties are set, because any separator isn't added between them. Consequently, the queries end up with errors. Let's add " and " between them to fix this issue.
Review of attachment 352497 [details] [review]: ::: gdata/gdata-query.c @@ +446,3 @@ g_string_append_uri_escaped (query_uri, priv->q, NULL, FALSE); + if (priv->q_internal != NULL) + g_string_append (query_uri, " and "); This should be URI-escaped, so I suspect it should be `"%20and%20"`.
Created attachment 352570 [details] [review] Fix invalid URIs when q and q_internal properties are set Thanks for the review. You are right. Although it works regardless of encoding, it should be encoded...
Review of attachment 352570 [details] [review]: Super, thanks.
Attachment 352570 [details] pushed as 868359d - Fix invalid URIs when q and q_internal properties are set