Bug 279435 - Search using amazon source never return any results
Summary: Search using amazon source never return any results
Status: RESOLVED WORKSFORME
Alias: None
Product: tellico
Classification: Applications
Component: general (show other bugs)
Version: 2.3.3
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Robby Stephenson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-05 10:36 UTC by Bertrand
Modified: 2012-03-28 03:05 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bertrand 2011-08-05 10:36:15 UTC
Version:           2.3.3 (using KDE 4.6.2) 
OS:                Linux

If I perform a search using the Amazon source (US or FR) I never find any match wathever is the request (message "The search returned no items").

In the mean time I've the following message in the console : "tellico(2405) Tellico::CollectionFactory::create: no collection created for type =  0"



I've no problem with other sources. I've no problem accessing amazon information from other software (like gcstar).

Same problem on another computer (tellico 2.3 using fedora 13)

Reproducible: Always

Steps to Reproduce:
Search "house" as title of a book using the amazon (US) source

Actual Results:  
"The search returned no items"

Expected Results:  
A least one results
Comment 1 Robby Stephenson 2011-08-06 06:12:41 UTC
Can you confirm that you've added your Amazon access and secret key correctly in the data source settings? Can you confirm that running

kde4-config --locate tellico/amazon2tellico.xsl --path data

shows a real file location? 

SO far, I can't confirm your bug.
Comment 2 Bertrand 2011-08-06 16:50:54 UTC
I confirm that the access and secret key are correctly configured. It is confirmed by your command:

berti@bigbox:~$ kde4-config --locate tellico/amazon2tellico.xsl --path data
/usr/share/kde4/apps/tellico/amazon2tellico.xsl
Comment 3 Robby Stephenson 2011-08-07 23:11:50 UTC
(In reply to comment #2)
> I confirm that the access and secret key are correctly configured. It is
> confirmed by your command:
> 
> berti@bigbox:~$ kde4-config --locate tellico/amazon2tellico.xsl --path data
> /usr/share/kde4/apps/tellico/amazon2tellico.xsl

I'm at a loss then. I'm not sure why it would not be working for you. I can't confirm the problem. There have been no recent changes to the Amazon code, nor any changes that I'm aware of with Amazon that would affect the API usage.

Any firewalls or network settings or anything about your setup that might be unusual?

This message:
Tellico::CollectionFactory::create: no collection created for type =  0"
basically means that either the submission of the Amazon query failed or that there was an error in Amazon's reply.
Comment 4 Robby Stephenson 2011-08-30 02:51:18 UTC
(In reply to comment #2)
> I confirm that the access and secret key are correctly configured.

Based on a report from another user on the mailing list, the issue seems to be timed to a conflict with kwallet. Can you erase your current secret key settings, press the apply button in the settings config, and then re-enter the key and see if that solves your problem?
Comment 5 Robby Stephenson 2011-08-31 06:55:25 UTC
Git commit 0f87be481decaeb3837bee7444d377e4760198b4 by Robby Stephenson.
Committed on 31/08/2011 at 08:46.
Pushed by rstephenson into branch '2.3'.

Try to ensure that Amazon secret key is written to the config file

I still can't reproduce the bug, but someone on the email list reported
that it seemed to be some issue with Tellico trying to read the secret
key from kwallet instead of the config file, when appropriate.
CCBUG: 279435

M  +3    -1    src/fetch/amazonfetcher.h
M  +13   -2    src/fetch/amazonfetcher.cpp

http://commits.kde.org/tellico/0f87be481decaeb3837bee7444d377e4760198b4
Comment 6 Bertrand 2011-08-31 17:26:09 UTC
Good news : it works
Bad news : I don't know why

Apparently it was not linked to kwallet (the secret key was correctly written in the config file).

I've modified different settings and created a new ID/secret key on the amazon web site. One point I've discovered is that Amazon cookies were previously refused by konqueror due to my settings (is it linked? I don't know).

One suggestion, would it be possible to detect this problem of connexion to the Amazon service and to generate a clear error message instead of the single "The search returned no items" ?
Comment 7 Robby Stephenson 2012-03-28 03:05:45 UTC
I'm going to close it because it was mostly unreproduceable, but also because it could have been an installation problem with an old version of amazon2tellico.xsl