Bug 402284

Summary: ProviderTest::testFetchInvalidProvider() fails with: Could not fetch provider
Product: [Frameworks and Libraries] frameworks-attica Reporter: Oliver Smith <ollieparanoid>
Component: generalAssignee: Frederik Gladhorn <gladhorn>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: bugzilla, justin.zobel
Priority: NOR    
Version: 5.53.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Oliver Smith 2018-12-18 09:05:35 UTC
The ProviderTest in attica 5.53 is not working for me:


********* Start testing of ProviderTest *********
Config: Using QtTest library 5.10.1, Qt 5.10.1 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 8.2.0)                          
PASS   : ProviderTest::initTestCase()
QDEBUG : ProviderTest::testFetchValidProvider() org.kde.attica: executing Get for QUrl("https://autoconfig.kde.org/ocs/providers.xml")           
QDEBUG : ProviderTest::testFetchValidProvider() got provider "api.kde-look.org"                                                                  
QDEBUG : ProviderTest::testFetchValidProvider() default providers loaded                                                                         
QDEBUG : ProviderTest::testFetchValidProvider() org.kde.attica: executing Get request for QUrl("https://api.kde-look.org/ocs/v1/config")         
QDEBUG : ProviderTest::testFetchValidProvider() "Config loaded - Server has version" "1.7"                                                       
PASS   : ProviderTest::testFetchValidProvider()
QDEBUG : ProviderTest::testFetchInvalidProvider() org.kde.attica: executing Get for QUrl("https://invalid-url.org/ocs/providers.xml")            
FAIL!  : ProviderTest::testFetchInvalidProvider() Could not fetch provider                                                                       
   Loc: [/home/pmos/build/src/attica-5.53.0/autotests/providertest.cpp(134)]                                                                     
PASS   : ProviderTest::cleanupTestCase()
Totals: 3 passed, 1 failed, 0 skipped, 0 blacklisted, 5979ms
********* Finished testing of ProviderTest *********



Interestingly, the test for 5.52 isn't working anymore either, although it used to work before. It fails with a slightly different error:


********* Start testing of ProviderTest *********
Config: Using QtTest library 5.10.1, Qt 5.10.1 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 8.2.0)                                                                                           
PASS   : ProviderTest::initTestCase()
QDEBUG : ProviderTest::testFetchValidProvider() org.kde.attica: executing Get for QUrl("https://autoconfig.kde.org/ocs/providers.xml")                                                                            
QDEBUG : ProviderTest::testFetchValidProvider() got provider "api.kde-look.org"
QDEBUG : ProviderTest::testFetchValidProvider() default providers loaded
QDEBUG : ProviderTest::testFetchValidProvider() org.kde.attica: executing Get request for QUrl("https://api.kde-look.org/ocs/v1/config")                                                                          
QDEBUG : ProviderTest::testFetchValidProvider() "Config loaded - Server has version" "1.7"
PASS   : ProviderTest::testFetchValidProvider()
QDEBUG : ProviderTest::testFetchInvalidProvider() org.kde.attica: executing Get for QUrl("https://invalid-url.org/ocs/providers.xml")                                                                             
FAIL!  : ProviderTest::testFetchInvalidProvider() Could not fetch provider
   Loc: [/home/pmos/build/src/attica-5.52.0/autotests/providertest.cpp(134)]
QDEBUG : ProviderTest::testFetchInvalidProvider() org.kde.attica: error: "Premature end of document." in QUrl("https://invalid-url.org/ocs/providers.xml")                                                        
QDEBUG : ProviderTest::testFetchInvalidProvider() default providers loaded
PASS   : ProviderTest::cleanupTestCase()
Totals: 3 passed, 1 failed, 0 skipped, 0 blacklisted, 6501ms
********* Finished testing of ProviderTest *********


What I don't understand is: it is fetching from "invalid-url.org" - isn't that supposed to fail?



STEPS TO REPRODUCE

Compile attica-qt, execute the tests.



SOFTWARE/OS VERSIONS

Arch Linux with a 4.14.88-1-lts kernel, compiling in an Alpine Linux edge chroot (as set up with pmbootstrap from postmarketOS).

KDE Plasma Version: 5.53.0, 5.52.0
KDE Frameworks Version: 5.53.0, 5.52.0
Qt Version: 5.10.1

ADDITIONAL INFORMATION

It is working with the same chroot for another user.

Downstream report:
https://gitlab.com/postmarketOS/pmaports/merge_requests/105
Comment 1 Justin Zobel 2022-01-04 08:59:37 UTC
As this is an older bug report please retest and confirm if this is still an issue.

I am altering the status to NEEDSINFO / WAITINGFORINFO.

If this is still occurring please change the bug back to REPORTED, thank you.
Comment 2 Bug Janitor Service 2022-01-19 04:36:28 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Oliver Smith 2022-01-20 18:32:14 UTC
Old bug report, not relevant anymore.

attica is now maintained in Alpine, and all tests are passing.

https://git.alpinelinux.org/aports/tree/community/attica/APKBUILD

Marking as RESOLVED DOWNSTREAM.

Have a nice day!