Uploaded image for project: 'Jira Service Management Data Center'
  1. Jira Service Management Data Center
  2. JSDSERVER-7058

Attempting to configure a mailbox with no 'inbox' folder fails with message "OAuth token not defined for connection. OAuth Authorisation required"

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Highest Highest
    • 5.4.2, 5.6.0
    • 4.12.2
    • Email - Incoming

      Issue Summary

      When attempting to configure a JSD project mailbox using OAuth2 the following error message is received:

      OAuth token not defined for connection. OAuth Authorisation required

      In the application logs the following message can be observed in relation to the above error:

      2020-11-13 09:06:42,158+0000 http-nio-8186-exec-8 ERROR de3124 546x57162x1 1n0hrdk 10.131.19.21,192.168.0.2 /rest/servicedesk/1/servicedesk/FTP/incomingemail/oauth/validateandsaveflow/df31abb6-3ebc-4c4c-8947-47e92a9a85c0 [c.a.s.i.rest.emailchannel.EmailChannelResource] Failed to validate and save token: jep.mail.connection.verifier.missing.folder.error : 'JIRA couldn't open the folder 'inbox' at outlook.office365.com. Check and make sure the folder name is correct and try again.'

      The cause of the problem is that Jira is unable to find a folder named "inbox" in the target IMAP account. Jira is currently hard-coded to look for the folder by the name "inbox" in the target IMAP account, and if the account does not have this folder, or if the account was originally created in non-English language and thus has inbox folder named something like "Posteingang", Jira won't be able to find it by name.

      If the account was created in non-English language, and the language pack was applied to rename all folders to English language, the underlying folder names would still be in the original language and the action of looking up the folder by name will fail.

      Steps to Reproduce

      1. Configure Microsoft Exchange mailbox in German language
      2. Try connecting to its mailbox from JSD project settings.

      Expected Results

      Since the folder with the type INBOX exists, JSD should be able to locate it.

      Actual Results

      JSD is unable to locate the Inbox folder.

      Workaround

      To work around this problem, either create a folder named "Inbox", or if one already there, change the language setting of your mailbox to the original language, and then create a folder named "Inbox".

          Form Name

            [JSDSERVER-7058] Attempting to configure a mailbox with no 'inbox' folder fails with message "OAuth token not defined for connection. OAuth Authorisation required"

            Conny Postma made changes -
            Remote Link Original: This issue links to "Page (Atlassian Documentation)" [ 603201 ]
            Alex Cooksey made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 763267 ]
            Divyanshi made changes -
            Remote Link Original: This issue links to "Page (Confluence)" [ 724336 ]
            Alex Cooksey made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 724336 ]
            Satej Mirpagar made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Waiting for Release [ 12075 ] New: Closed [ 6 ]
            SET Analytics Bot made changes -
            Support reference count Original: 62 New: 63
            SET Analytics Bot made changes -
            UIS Original: 147 New: 169
            SET Analytics Bot made changes -
            UIS Original: 169 New: 147
            SET Analytics Bot made changes -
            Support reference count Original: 61 New: 62
            SET Analytics Bot made changes -
            UIS Original: 145 New: 169

              cf304d525cce yyao (Inactive)
              apatyuchenko Andrey Patyuchenko
              Affected customers:
              16 This affects my team
              Watchers:
              24 Start watching this issue

                Created:
                Updated:
                Resolved: