After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 257367 - Exchange plugin should not be loaded if there is no exchange account
Exchange plugin should not be loaded if there is no exchange account
Status: RESOLVED OBSOLETE
Product: evolution
Classification: Applications
Component: general
1.5.x (obsolete)
Other All
: Normal normal
: ---
Assigned To: Harish Krishnaswamy
Evolution QA team
evolution[connector]
: 261018 342522 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-04-21 20:12 UTC by christine
Modified: 2013-09-10 14:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
diff for shell changes (7.07 KB, patch)
2004-06-24 08:15 UTC, Not Zed
none Details | Review

Description christine 2004-04-21 20:12:13 UTC
the big button w/ Exchange should really only show up if there is a
Connector account configured and enabled.
Comment 1 Dan Winship 2004-04-21 20:27:13 UTC
That would imply that the easy way to launch the exchange autoconfig
wizard does not involve going into the exchange component.
Comment 2 Dan Winship 2004-05-03 17:15:57 UTC
*** http://bugzilla.ximian.com/show_bug.cgi?id=57922 has been marked as a duplicate of this bug. ***
Comment 3 Dan Winship 2004-05-20 20:20:30 UTC
The buttons are displayed by the shell, and there is nothing
connector can do to make it not do that. So if we want to implement
this, we need changes in the shell
Comment 4 Not Zed 2004-05-24 09:21:55 UTC
can you not just display a different control set from the connector
component, if there is nothing to show?

why what happens?  it seems really very odd that the shell should
care, if the component is installed it should be available.

even if its just a big button that says 'configure an account'.
Comment 5 Dan Winship 2004-05-24 14:19:38 UTC
i agree about always showing the button. I think the problem
is that we want to include connector as part of the default install,
but adding the extra button requires an extra row, and we know users
will get annoyed if they lose one button-height's-worth of folder
tree space to a feature they never use.
Comment 6 Not Zed 2004-06-18 05:01:51 UTC
well what do you propose.  as far as i can tell there's nothing i can
do about this.  this is all a connector issue.
Comment 7 christine 2004-06-22 22:54:57 UTC
the problem: if we do not install connector rpm as part of Evo, users
cannot figure out how to configure an Exchange account. If we install
connector by default, then users who do not use Exchange, are stuck w/
the icon button.

open to other ideas? danw? zucchi? 

if this is not solveable for 2.0... please propose fix for 2.2? 
Comment 8 Dan Winship 2004-06-23 17:19:53 UTC
I suppose we could implement this by adding an API to
GNOME::Evolution::Shell to hide or show a given component button.
Then Connector could hide itself at createControls time if
there was no Exchange account configured, and unhide itself later
if an account was created.

(However, this solution would mean that all evolution users
would still have an evolution-exchange-storage process running
in the background whenever evolution was running. Something people
would likely complain about given all the e-d-s/b-a-s complaints.)

As for 2.2, assuming you are talking about the Spring 2005 release,
isn't the plan to have killed off the separate Exchange component
entirely by that point?
Comment 9 Not Zed 2004-06-24 08:13:28 UTC
I've put a solution into the shell which i think should cover it.  it
forces you to restart to pick up any change to the state, but i think
thats fine at this point.

components are activated immediately now (actually they're activated
at the same time because of the way the code uses the api), and if
they fail to activate, they're ignored totally.

So you basically just have to exit with failure instead of setting up
the factory in main.c.

Then it will wont be activated, and you wont get any button showing
up.  Of course you wont be able to access any other components from
that factory either.

I guess you could even pop up the account setup wizard (based on a
gconf key? env var?) at startup or from the factory method, if you
wanted it to behave like evo does with no setup setup.

I dont know how to implement this bit in connector, so redirecting
there now.

i've attached the patch i made here just for reference.
Comment 10 Not Zed 2004-06-24 08:15:22 UTC
Created attachment 43892 [details] [review]
diff for shell changes
Comment 11 Gerardo Marin 2004-07-01 23:33:31 UTC
*** bug 261018 has been marked as a duplicate of this bug. ***
Comment 12 Luis Villa 2004-08-09 12:33:06 UTC
Dan, Zucchi, Christine- Christine, you asked that we not install
connector by default if this isn't resolved in 2.0. Is it going to be
resolved in 2.0 or should I go ahead and file the request to not
install this by default?
Comment 13 christine 2004-08-17 15:25:39 UTC
per conversation w/ danw and jpr, moving to 2.1, but this may actually
become obsolete due to changes needed to exchange implementation using
the plugin architecture.... assuming that happens in 2.1, this bug
becomes invalid.  

but for now.... 
not able to address in 2.0, so moving to 2.1 
and for NLD, we will not install the exchange component by defult.
Comment 14 Sarfraaz Ahmed 2005-07-21 05:34:20 UTC
For 2.3, we no longer have the Exchange button. So, this bug needs a bit of
modifications.

There are 2 cases which might need to be looked into.

1. Exchange plugin should get unloaded if there is no exchange account enabled.
But, this has another problem. Currently, we do not have a plugin architecture,
where we can programatically load any plugin at runtime. So, the user would have
to enable exchange plugin before he can create an exchange account.

2. The evolution-exchange-storage process should exit, when there is no exchange
accout enabled. 

Both of these do not affect the UI for now. So removing the ui keyword. But
these might cause some usability issues.
Comment 15 Sushma Rai 2006-03-07 13:13:36 UTC
Future..
Comment 16 Sushma Rai 2006-04-21 05:19:29 UTC
Moving to Evolution-Misc.
Comment 17 Harish Krishnaswamy 2006-05-09 10:59:39 UTC
What is the next action here ? Why is this under Miscellaneous ?
Comment 18 Sushma Rai 2006-05-25 06:45:20 UTC
The way providers are being loaded needs to be changed.
Comment 19 Sushma Rai 2006-05-25 06:46:08 UTC
*** Bug 342522 has been marked as a duplicate of this bug. ***
Comment 20 Sushma Rai 2006-05-25 08:21:25 UTC
Another related bug
http://bugzilla.gnome.org/show_bug.cgi?id=314003
Comment 21 Sankar P 2007-02-26 11:39:55 UTC
What has this has got to do with the way providers are loaded ?

If you dont want a plugin to be enabled, then do not add it to defaults. It is as simple as that. And having exchange-operations plugin enabled will (should) not require evolution-exchange process to be running. So #342522 is definitely not a dup of this. 

IMO, this bug is no longer valid (after the conenctor-button is removed)
Comment 22 Srinivasa Ragavan 2007-05-30 20:37:47 UTC
Obsoleting the patch as it is no longer valid. No more exchange button.
Comment 23 Basilio Kublik 2007-11-02 01:25:17 UTC
I'm closing this bug because it's not applicable anymore since the newer versions of evolution doesn't provide this feature.