0

我想增加 HCL Connections 6.5.1 的最大上传文件大小。它配置在/opt/IBM/WebSphere/AppServer/profiles/Dmgr01/config/cells/CnxCell/LotusConnections-config/files-config.xml

<simpleUploadAPI maximumSizeInKb="8388608">
    <organization estimatedBytesInSeconds="8388608" id="admin_replace" maxConcurrenceRequests="50" maximumSizeInKb="512000"/>
</simpleUploadAPI>

但这似乎无效,文件应用程序将无法正确加载:

在此处输入图像描述

所以我在这里检查了关于最大值的相应xsd验证文件:

   <xsd:element name="simpleUploadAPI">
                <xsd:complexType>
                        <xsd:sequence>
                                <xsd:element name="organization" type="tns:organization" minOccurs="0" maxOccurs="unbounded" />
                        </xsd:sequence>
                        <xsd:attribute name="maximumSizeInKb" type="tns:intGTE1" use="required"/>
                </xsd:complexType>
        </xsd:element>

我不知道类型是什么intGTE1意思。文档头部的方案定义参考了两个链接:

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    elementFormDefault="qualified"
    targetNamespace="http://www.ibm.com/connections/files/files-config/1.0"
    xmlns:tns="http://www.ibm.com/connections/files/files-config/1.0"
    xmlns:xml="http://www.w3.org/XML/1998/namespace">
    <!-- ... -->

由于两个 IBM 链接都被删除(重定向到 IBM 主页),怎么可能知道限制是多少?我知道超过 500MB 的文件应该由 IHS 处理,这是一个可以尝试的测试环境。

4

1 回答 1

0

一般来说,我仍然不知道如何获得该 XML 类型的定义。但我发现使用FilesConfigServicewith 检查配置文件,有一些逻辑验证提供的方案类型:

wsadmin>FilesConfigService.checkInConfig()
Using configuration arguments :
        workingDirectory: /tmp/files
        cellName: CnxCell
        nodeName: None
        serverName: None
Loading schema file for validation: /tmp/files/files-config.xsd
Exception - org.xml.sax.SAXParseException: cvc-maxInclusive-valid: Value '8388608' is not facet-valid with respect to maxInclusive '2097152' for type 'intGTE2M'.
Exception - org.xml.sax.SAXParseException org.xml.sax.SAXParseException: cvc-maxInclusive-valid: Value '8388608' is not facet-valid with respect to maxInclusive '2097152' for type 'intGTE2M'.

所以最大可能值为2097152,等于 2GB。

于 2021-04-14T15:21:04.313 回答