Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2082245

Summary: Backport fixes to improve autodiscovery
Product: Red Hat Enterprise Linux 8 Reporter: jloscar
Component: evolution-ewsAssignee: Milan Crha <mcrha>
Status: CLOSED ERRATA QA Contact: Michal Odehnal <modehnal>
Severity: medium Docs Contact:
Priority: high    
Version: 8.5CC: grant_williamson, hills, mcrha, modehnal, tpopela
Target Milestone: rcKeywords: Triaged, ZStream
Target Release: ---Flags: pm-rhel: mirror+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: evolution-ews-3.28.5-13.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2088282 (view as bug list) Environment:
Last Closed: 2022-11-08 09:34:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2088282    

Description jloscar 2022-05-05 16:46:28 UTC
Description of problem:
Trying to connect to mail using evolution-ews fails on OAB URL.
Autodiscovery query failed.


Version-Release number of selected component (if applicable):
This fails on EL8 using evolution-ews-3.28.5-11.el8


Additional info:

Customer found the issue to be fixed upstream in Fedora, 
He links to the fix and submitted a patch to fix it in RHEL.

2nd patch is incorrect, excuses these patches are needed.
https://github.com/GNOME/evolution-ews/commit/7949f9e5595a83ae7b5c35a6b054150f85239ff5 (fix redirect)

https://github.com/GNOME/evolution-ews/commit/ef87ca56acdaeaf1b0f44fea0a9c624282e61b36 (do not change the name)

He also created his own patch to implement the fix which will be linked to the case.

Comment 4 Milan Crha 2022-05-06 05:40:37 UTC
Thanks for the bug report and links to the patches. I think these can be safely backported.

Comment 5 Milan Crha 2022-05-06 07:47:14 UTC
I see the provided working patch contains more than just the referenced commits from the description, but I can understand the changes for [1] (Check also DNS SRV _autodiscover._tcp during autodiscover) also make sense.

[1] https://gitlab.gnome.org/GNOME/evolution-ews/issues/42

Comment 10 Milan Crha 2022-05-06 10:29:28 UTC
Coverity scan uncovered some issues with the provided patch, which I fixes in a follow up update, hence the fixed-in-version change.

Comment 11 jloscar 2022-05-17 13:40:19 UTC
Do we have a status update on this BZ?

Do you need anything from me or my customer?

-Joshua

Comment 12 Milan Crha 2022-05-17 16:32:50 UTC
(In reply to jloscar from comment #11)
> Do we have a status update on this BZ?

The status is reflected in the bug status, which is currently in VERIFIED state, which is reflected in the "Fixed in Version" field, which currently says: evolution-ews-3.28.5-13.el8

> Do you need anything from me or my customer?

Maybe if they could test the package in their environment, but it's easier to wait when it gets to them through usual update channels, which seems to be some time during November this year, as a RHEL 8.7 update.

Comment 13 Grant Williamson 2022-05-17 17:43:13 UTC
Tested with the packages from https://koji.mbox.centos.org/koji/buildinfo?buildID=21758
Working.
Can these updates please be pushed as zstream. 8.7 is a long way out.

Comment 14 Milan Crha 2022-05-18 05:34:21 UTC
I did not think of the zstream. The autodiscovery is a one-time thing, and it's not mandatory (it used to be some time ago, but it's not now). You can just fill in the Host URL and it'll work, apart of the offline Global Address List, which requires the OAB URL (the "OAB" stands for Offline Address Book).

In any case, I've no objection. Feel free to file a zstream bug and if it gets approved I can create the update.

Comment 15 jloscar 2022-05-19 00:10:13 UTC
Hello Milan, 

This was submitted for RHEL 8.5, so I am hoping this can get backported to cover the customers use case.
Does that mean this still requires a separate zstream bug?
If this is still the case, please let me know if there is any special instruction on doing so.

-Joshua

Comment 16 Milan Crha 2022-05-19 05:57:27 UTC
(In reply to jloscar from comment #15)
> This was submitted for RHEL 8.5, so I am hoping this can get backported to
> cover the customers use case.
> Does that mean this still requires a separate zstream bug?
> If this is still the case, please let me know if there is any special
> instruction on doing so.

Tom, what do you think, please?

From what I understood, this is for 8.7, they want it down to the 8.5. See the other comments for a bit more information.

Comment 17 Tomas Popela 2022-05-19 06:36:32 UTC
(In reply to Milan Crha from comment #16)
> (In reply to jloscar from comment #15)
> > This was submitted for RHEL 8.5, so I am hoping this can get backported to
> > cover the customers use case.
> > Does that mean this still requires a separate zstream bug?
> > If this is still the case, please let me know if there is any special
> > instruction on doing so.
> 
> Tom, what do you think, please?
> 
> From what I understood, this is for 8.7, they want it down to the 8.5. See
> the other comments for a bit more information.

8.5 is EOL so no fixes there, but I can create a clone for 8.6.z.

Comment 21 errata-xmlrpc 2022-11-08 09:34:19 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (evolution-ews bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:7532