【问题标题】:Validation of manifest versions Office365 addin清单版本的验证 Office365 插件
【发布时间】:2016-07-06 22:30:21
【问题描述】:

我们正在尝试向商店提交我们的第一个 Outlook 办公室插件,但由于 Outlook webaccess 2013 被拒绝。我们正在尝试使用 2013 年不应支持的 1.3 api,但验证团队仍在测试2013 年。

在此页面上,微软明确指出 OWA 2013 需要 1.1。 http://dev.office.com/reference/add-ins/outlook/tutorial-api-requirement-sets

验证团队的评论是: 您的加载项无法在 Windows 7 上使用 Internet Explorer 11 的 Outlook 2013 客户端中运行。用户无法向 Hogia 进行身份验证。认证到O365再认证到Hogia后,认证弹窗关闭,但是用户没有登录。

在 Fiddler 跟踪中不再看到 404 错误,但用户未登录到任务窗格,并且加载项不可用。

如果您因为使用仅在 2016/Online 中可用的 API 而不支持 2013 SP1,则必须将这些 API 放在清单中的需求标签中。如果您使用的不是仅在 2016/Online 中可用的 API,那么您必须支持 2013 SP1。

下面提供的是我们的匿名清单。关于如何将插件限制为仅 1.3 的任何想法。是不是也应该是 1.3 的 xml 命名空间?

<?xml version="1.0" encoding="utf-8"?>
<!-- For more information on using transformations
     see the web.config examples at http://go.microsoft.com/fwlink/?LinkId=214134. -->

<OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0"
  xmlns:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides/1.0"
  xsi:type="MailApp">

  <Id>0ada1ef7-1cea-4e3a-b946-a234e777d07b</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>Provider</ProviderName>
  <DefaultLocale>sv-SE</DefaultLocale>

  <DisplayName DefaultValue="Name"/>
  <Description DefaultValue="Description"/>
  <IconUrl DefaultValue="url" />
  <HighResolutionIconUrl DefaultValue="url" />
  <SupportUrl DefaultValue="url" />
  <Hosts>
    <Host Name="Mailbox" />
  </Hosts>

  <Requirements>
    <Sets>
      <Set Name="Mailbox" MinVersion="1.3" />
    </Sets>
  </Requirements>
  <!-- These elements support older clients that don't support add-in commands -->
  <FormSettings>
    <Form xsi:type="ItemEdit">
      <DesktopSettings>
        <SourceLocation DefaultValue="url"/>
      </DesktopSettings>
      <TabletSettings>
        <SourceLocation DefaultValue="url"/>
      </TabletSettings>
      <PhoneSettings>
        <SourceLocation DefaultValue="url"/>
      </PhoneSettings>
    </Form>
  </FormSettings>

  <Permissions>ReadWriteMailbox</Permissions>
  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Appointment" FormType="Edit" />
  </Rule>
  <DisableEntityHighlighting>false</DisableEntityHighlighting>
  <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Requirements>
      <bt:Sets DefaultMinVersion="1.3">
        <bt:Set Name="Mailbox" />
      </bt:Sets>
    </Requirements>
    <Hosts>
      <Host xsi:type="MailHost">

        <DesktopFormFactor>
          <!-- Location of the Functions that UI-less buttons can trigger (ExecuteFunction Actions). -->
          <FunctionFile resid="functionFile" />

          <!-- Message Read -->
          <ExtensionPoint xsi:type="AppointmentOrganizerCommandSurface">
            <!-- Use the default tab of the ExtensionPoint or create your own with <CustomTab id="myTab"> -->
            <OfficeTab id="TabDefault">
              <!-- Up to 6 Groups added per Tab -->
              <Group id="apptComposeDemoGroup">
                <Label resid="groupLabel" />
                <!-- Launch the add-in : task pane button -->
                <Control xsi:type="Button" id="apptComposeFunctionButton">
                  <Label resid="funcComposeButtonLabel" />
                  <Supertip>
                    <Title resid="funcComposeButtonLabel" />
                    <Description resid="funcComposeSuperTipDescription" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="icon16" />
                    <bt:Image size="32" resid="icon32" />
                    <bt:Image size="80" resid="icon80" />
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="functionFile" />
                  </Action>
                </Control>
                <!-- Go to http://aka.ms/ButtonCommands to learn how to add more Controls: ExecuteFunction and Menu -->
              </Group>
            </OfficeTab>
          </ExtensionPoint>
          <!-- Go to http://aka.ms/ExtensionPointsCommands to learn how to add more Extension Points: MessageRead, AppointmentOrganizer, AppointmentAttendee -->
        </DesktopFormFactor>
      </Host>
    </Hosts>

    <Resources>
      <bt:Images>
        <bt:Image id="icon16" DefaultValue="url"/>
        <bt:Image id="icon32" DefaultValue="url"/>
        <bt:Image id="icon80" DefaultValue="url"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="functionFile" DefaultValue="url"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="groupLabel" DefaultValue="Name"/>
        <bt:String id="funcComposeButtonLabel"  DefaultValue="Name"/>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="paneReadSuperTipDescription" DefaultValue="string"/>
        <bt:String id="funcComposeSuperTipTitle" DefaultValue="string"/>
        <bt:String id="funcComposeSuperTipDescription" DefaultValue="string"/>
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>

【问题讨论】:

  • 我相信您混淆了 Outlook Web App 2013(Exchange 2013 附带的 OWA 的本地版本)和适用于 Windows 的 Outlook 2013。在没有看到完整的验证报告的情况下,我无法给出明确的答案,但我相信他们将您的加载项标记为不适用于 Windows 的 Outlook 2013 SP1,不适用于带有 Exchange 2013 的 OWA。
  • 感谢您的回答,可能是这样。我提供了上述验证的全部回复。
  • 是的,问题出在 Outlook 2013 for windows。登录问题与正确收到令牌后的重定向有关。 Outlook 2013 for windows 中的浏览器在其地址字段中具有相同的 url,因此浏览器认为它不需要重定向。

标签: office365 manifest office-addins office-js


【解决方案1】:

鉴于此问题与 OAUTH 相关,我建议查看 Dialog API。这个 API 的核心目的之一是处理这样的场景。

这假设您对面向 Outlook 2013 不感兴趣。 Dialog API 需要 Mailbox 1.4,目前仅在 2016 年受支持。通过要求 1.4,加载项将不会出现在 Outlook 2013 上。

【讨论】:

  • 这仍然相关吗?我正在尝试帮助我们的客户让我们的加载项与他们的 Exchange 2013 一起使用。但是当他们尝试安装它时,它只是说他们的 Exchange 不支持 Mailbox API 1.3。消息如下:preview.ibb.co/kTbACH/image001.png 任何帮助将不胜感激!
  • 我不确定 Exchange 2013 支持哪些版本,但我希望 v1.3 可以工作。确保它们已更新到最新的 CU。例如,我知道在 CU19 中有一些与加载项相关的 EWS 更改。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-12-28
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-02-25
  • 1970-01-01
相关资源
最近更新 更多