Bug 247129 - When we subscribe collection entitytreemodel doesn't show it
Summary: When we subscribe collection entitytreemodel doesn't show it
Status: RESOLVED UNMAINTAINED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: libakonadi (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Volker Krause
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-09 11:28 UTC by Laurent Montel
Modified: 2017-01-07 21:52 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Laurent Montel 2010-08-09 11:28:57 UTC
Version:           unspecified (using Devel) 
OS:                Linux

I used last trunk version of akonadi/kdepimlibs/kdepim.
When I use "Manage Local Subscription" dialogbox to subscribe collection, signal is emitted so no problem but collection is not added to ETM.

I debug it and I can see that:
in: void EntityTreeModelPrivate::monitoredCollectionAdded( const Akonadi::Collection& collection, const Akonadi::Collection& parent )
{
....

  qDebug()<<" collection :"<<collection;
  if ( !m_mimeChecker.wantedMimeTypes().isEmpty() && !m_mimeChecker.isWantedCollection( collection ) )
    return;

....
}

 m_mimeChecker.wantedMimeTypes() : ("message/rfc822") 
 collection : Collection ID: 17    remote ID: "ddd" 
   name: "" 
   url: KUrl("akonadi:?collection=17") 
   parent: 7 "inbox" 
   resource: "akonadi_maildir_resource_0" 
   rights: 63 
   contents mime type: () 
    CachePolicy:  
   inherit: true 
   interval: -1 
   timeout: -1 
   sync on demand: false 
   local parts: () 
    CollectionStatistics: 
   count: -1 
   unread count: -1 
   size: -1 


=> we can see that when we add collection, "contents mime type: () " is empty
=> it can add it.

So there is a bug here. I think that collection is not fetched.



Reproducible: Didn't try

Steps to Reproduce:
Unsubscribe a collection => you can see this is removed from ETM
Subscribe this collection => it's not added.
Comment 1 Denis Kurz 2016-09-24 20:36:46 UTC
This bug has only been reported for versions older than KDEPIM 4.14 (at most akonadi-1.3). Can anyone tell if this bug still present?

If noone confirms this bug for a recent version of akonadi (part of KDE Applications 15.08 or later), it gets closed in about three months.
Comment 2 Denis Kurz 2017-01-07 21:52:43 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.