Forum

ownCloud & garbage.log entries

Gour
15 April 2015, 09:20
Hello,

I noticed that I can not edit my contacts in ownCloud with Hiawatha running behind reverse-proxy (Nginx), while it works when using Apache.

Not seeing anything interesting in access/error logs, I did try with the setup on my localhost without reverse-proxy and...same problem.

Then I noticed there are entries in garbage.log like this:

127.0.0.1|Wed 15 Apr 2015 09:01:03 +0200|PATCH /index.php/apps/contacts/addressbook/local/2/contact/513 HTTP/1.1
Host: oc.local
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:37.0) Gecko/20100101 Firefox/37.0
Accept: application/json; charset=utf-8
Accept-Language: en,hr;q=0.5
Accept-Encoding: gzip, deflate
DNT: 1
Content-Type: application/json-merge-patch; charset=UTF-8
requesttoken: /xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
OCS-APIREQUEST: true
X-Requested-With: XMLHttpRequest
Referer: http://oc.local/index.php/apps/contacts/
Content-Length: 57
Cookie: xxxxxxxxxx=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Connection: keep-alive

{"name":"FN","value":"Zini (Hlapičina)","parameters":{}}


created after attempt to do simple edit to one of my Contacts in ownCloud.

Any clue what might be wrong and/or some possible workaround?

Hiawatha version: 9.12.
Operating System: openSUSE Tumbleweed
Hugo Leisink
15 April 2015, 09:24
It looks like Hiawatha doesn't know of the PATCH request. I'll make it available for the next release. You can manually add the following to determine_request_method() at line 225 in src/session.c:
    } else if (strncmp(session->request, "PATCH ", 5) == 0) {
session->request_method = unsupported;

Gour
15 April 2015, 10:26
It looks like Hiawatha doesn't know of the PATCH request. I'll make it available for the next release.

Thanks a lot for your support!! It works.
This topic has been closed.