Bug 333449 - Creating/editing/deleting a todo list item results in an "Invalid item payload" and "Bad request"
Summary: Creating/editing/deleting a todo list item results in an "Invalid item payloa...
Status: RESOLVED UNMAINTAINED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: Google Resource (show other bugs)
Version: 4.13
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Daniel Vrátil
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-15 09:06 UTC by Jasper
Modified: 2018-02-01 09:54 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
akonadi log for google tasks (3.57 KB, text/x-log)
2014-05-07 20:09 UTC, Evgeny
Details
LibKGAPi.log (3.52 KB, text/plain)
2014-05-10 17:24 UTC, Marco Antonucci
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jasper 2014-04-15 09:06:24 UTC
Calendars and contacts are added and sync fine.
Adding calendar entries works as expected
 BUT
Adding, modifying or deleting a task results in an "Invalid item payload" followed by an "Bad request" from akonaditray, and in the terminal that kontact was started from:

akonadi_googlecalendar_resource_1(26123)/LibKGAPI KGAPI2::Job::Private::_k_replyReceived: Bad request, Google replied ' "{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "invalid",
    "message": "Invalid Value"
   }
  ],
  "code": 400,
  "message": "Invalid Value"
 }
}
" ' 
Modifying a calendar entry results in a similar problem, after stating that I am not the creator of the calendar entry and this will put you out of sync. I get an error:
Google calendar and tasks <blah> Bad request

I have made sure that my email address is correct in KOrganiser settings.

I have deleted all kde/akonadi references ie .kde .config/blah .local/blah

Reproducible: Always

Steps to Reproduce:
1.start kontact
2.add google calendar
3.add todo item
Actual Results:  
Error as above.
Invalid item payload" followed by an "Bad request" from akonaditray, and in the terminal that kontact was started from:

akonadi_googlecalendar_resource_1(26123)/LibKGAPI KGAPI2::Job::Private::_k_replyReceived: Bad request, Google replied ' "{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "invalid",
    "message": "Invalid Value"
   }
  ],
  "code": 400,
  "message": "Invalid Value"
 }
}
" ' 

Expected Results:  
That the todo entry is created and synced
That there is no complaint about not being the organizer of the event, that the event is modified and synced
 ie, it should "just work " 8)
Comment 1 John 2014-04-20 15:55:02 UTC
Experiancing the same issues and same output in Kubuntu 14.04. This did not work previously either (13.10) and has been broken for as long as I can remember.
Comment 2 Daniel Vrátil 2014-04-22 16:25:08 UTC
Please provide information about libkgapi package version.

In kdebugdialog, enable "LibKGAPI2 (raw data)" and restart Akonadi from console (akonadictl restart), then try to reproduce the behavior and paste output from console here. That will make it possible to find out what exact part of the request makes Google unhappy.
Comment 3 Evgeny 2014-05-07 16:43:07 UTC
(In reply to comment #2)
> Please provide information about libkgapi package version.
> 
> In kdebugdialog, enable "LibKGAPI2 (raw data)" and restart Akonadi from
> console (akonadictl restart), then try to reproduce the behavior and paste
> output from console here. That will make it possible to find out what exact
> part of the request makes Google unhappy.

Hello.
I have the same problem. I've tried to follow your advice, but there is no LibKGAPI2 in kdebugdialog =( jiust only LibKGAPI.
I enabled this one and it didn't help me =(
Comment 4 Evgeny 2014-05-07 20:09:50 UTC
Created attachment 86514 [details]
akonadi log for google tasks

(In reply to comment #3)
> (In reply to comment #2)
> > Please provide information about libkgapi package version.
> > 
> > In kdebugdialog, enable "LibKGAPI2 (raw data)" and restart Akonadi from
> > console (akonadictl restart), then try to reproduce the behavior and paste
> > output from console here. That will make it possible to find out what exact
> > part of the request makes Google unhappy.
> 
> Hello.
> I have the same problem. I've tried to follow your advice, but there is no
> LibKGAPI2 in kdebugdialog =( jiust only LibKGAPI.
> I enabled this one and it didn't help me =(

Daniel, I'm sorry, I didn't understand you correctly at the first time =(
So, I have a libkgapi 2.1.1-1 (KDE 4.13, ArchLinux)
For debugging I had to enable "akonadi_googlecalendar_resource_2", not "LibKGAPI2 (raw data)". 
So, I can provide you more detail information in the attach.
Comment 5 Marco Antonucci 2014-05-10 02:29:31 UTC
*** This bug has been confirmed by popular vote. ***
Comment 6 Jasper 2014-05-10 12:27:13 UTC
On Wed, 23 Apr 2014 04:25:08 +1200, Daniel Vrátil  <dvratil@redhat.com>  
wrote:

> https://bugs.kde.org/show_bug.cgi?id=333449
>
> --- Comment #2 from Daniel Vrátil <dvratil@redhat.com> ---
> Please provide information about libkgapi package version.
>
> In kdebugdialog, enable "LibKGAPI2 (raw data)" and restart Akonadi from  
> console
> (akonadictl restart), then try to reproduce the behavior and paste  
> output from
> console here. That will make it possible to find out what exact part of  
> the
> request makes Google unhappy.

Embarrassingly it is now working as it should. I believe the difference is  
that I am using Kwallet to store the passwords.
  Maybe it is that I enable LibKGAPI2 (raw data) in kdebugdialoge.

I did remove completely akonadi from .kde and .local and start again  
before testing, and did not enable auto refresh (for whatever reason).

Anyway, thanks again, it is all good for now 8)

Jasper
Comment 7 Marco Antonucci 2014-05-10 17:24:37 UTC
Created attachment 86565 [details]
LibKGAPi.log
Comment 8 Sebastian Niemeyer 2014-09-15 00:57:42 UTC
HI!

I have so same problem as the other people here!

Very annoying
Comment 9 Sebastian Niemeyer 2014-09-15 01:03:27 UTC
Ah some additional informations.

* It has never worked for me correctly.
* It works sometimes with some events, others didnt
* I have the same problem with calendar entrys.

* I currently work on the newest libkgapi with the newest KDE 4.14

* It is the same issue as posted in the first comment.

konadi_googlecalendar_resource_1(26123)/LibKGAPI KGAPI2::Job::Private::_k_replyReceived: Bad request, Google replied ' "{ "error": { "errors": [ { "domain": "global", "reason": "invalid", "message": "Invalid Value" } ], "code": 400, "message": "Invalid Value" } }
Comment 10 Denis Kurz 2017-06-23 19:59:03 UTC
This bug has never been confirmed for a KDE PIM version that is based on KDE Frameworks (5.x). Those versions differ significantly from the old 4.x series. Therefore, I plan to close it in around two or three months. In the meantime, it is set to WAITINGFORINFO to give reporters the oportunity to check if it is still valid. As soon as someone confirms it for a recent version (at least 5.1, ideally even more recent), I'll gladly reopen it.

Please understand that we lack the manpower to triage bugs reported for versions almost two years beyond their end of life.
Comment 11 Denis Kurz 2018-02-01 09:54:26 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.1 aka 15.12; preferably much more recent), please open a new one unless it already exists. Thank you for all your input.