BPM, Workflow, and Case

 View Only
Expand all | Collapse all

mime-type - extension conflict when uploading to BPM document store v21

  • 1.  mime-type - extension conflict when uploading to BPM document store v21

    Posted Thu November 17, 2022 05:54 AM

    Hi All,

    In one of our BAW application's coach we use a BPM file uploader view. Using this app under v19 we have no problems, but under v21 we get this error when we try to upload a docx (or js, sql, xlsx, xlsm, etc.) file:

    webapp        E com.ibm.ws.webcontainer.webapp.WebApp log SRVE0293E: [Servlet Error]-[CREATE_FILE_FAILED]: java.lang.SecurityException: Document Attachment document mime-type application/vnd.openxmlformats-officedocument.wordprocessingml.document and extension docx is not accepted for upload to the server

    For txt, pdf, xml the upload works.

    What's the probblem and how to solve it?

    Any help appreciated,
    Thx



    ------------------------------
    Laszlo
    ------------------------------


  • 2.  RE: mime-type - extension conflict when uploading to BPM document store v21

    IBM Champion
    Posted Fri November 18, 2022 09:01 AM
    Hi Laszlo,

    Can you check <document-attachment-accepted-mime-types> tag in your TeamWorksConfiguration.running.xml? If it is restricting the format, then update that from 100Custom.xml.

    ------------------------------
    Atanu Roy
    Solution Architect
    Salient Process
    ------------------------------



  • 3.  RE: mime-type - extension conflict when uploading to BPM document store v21

    Posted Fri November 18, 2022 09:08 AM
    Hi Atanu,

    Meanwhile we found the solution by inserting the accepted mime types int to the 100Custom.xml. 

    Thx

    ------------------------------
    Laszlo
    ------------------------------



  • 4.  RE: mime-type - extension conflict when uploading to BPM document store v21

    Posted Tue April 04, 2023 10:41 AM

    Hi @Laszlo Kertesz 

    Can you tell us how you solved it?
    Do you know how to configure it for type msg?

    Kind regards



    ------------------------------
    Abdelgadir Sulaiman
    ------------------------------



  • 5.  RE: mime-type - extension conflict when uploading to BPM document store v21

    Posted Tue April 04, 2023 10:52 AM

    Hi,

    We don't use msg files, but our config for acceptable mime types looks like this:

     <document-attachment-accepted-mime-types> 
           <mime-type merge="append">application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</mime-type>
            <mime-type merge="append">application/vnd.openxmlformats-officedocument.wordprocessingml.document</mime-type>
            <mime-type merge="append">application/vnd.openxmlformats-officedocument.presentationml.presentation</mime-type>

            <mime-type merge="append">application/msword</mime-type>
            <mime-type merge="append">application/vnd.ms-excel</mime-type>
            <mime-type merge="append">application/vnd.ms-excel.sheet.macroEnabled.12</mime-type>
            <mime-type merge="append">application/vnd.ms-powerpoint</mime-type>
            <mime-type merge="append">application/pdf</mime-type>
            <mime-type merge="append">application/rtf</mime-type>
            <mime-type merge="append">application/xml</mime-type>
            <mime-type merge="append">application/zip</mime-type>
            
            <mime-type merge="append">text/plain</mime-type>
            <mime-type merge="append">text/csv</mime-type>
            <mime-type merge="append">text/html</mime-type>
            
            <mime-type merge="append">image/bmp</mime-type>
            <mime-type merge="append">image/gif</mime-type>
            <mime-type merge="append">image/jpeg</mime-type>
            <mime-type merge="append">image/tiff</mime-type>
            <mime-type merge="append">image/png</mime-type>
        </document-attachment-accepted-mime-types>



    ------------------------------
    Laszlo
    ------------------------------



  • 6.  RE: mime-type - extension conflict when uploading to BPM document store v21

    Posted Thu April 06, 2023 03:08 AM

    Thanks!

    We have used this solution below after adding mime type for msg
    https://www.ibm.com/mysupport/s/defect/aCI3p000000bm2TGAQ/dt195853?language=en_US




    ------------------------------
    Abdelgadir Sulaiman
    ------------------------------



  • 7.  RE: mime-type - extension conflict when uploading to BPM document store v21

    Posted Fri June 23, 2023 10:56 AM

    Hi @Laszlo Kertesz 

    Can you tell us how you solved it?
    Do you know how to configure it for type pgp?

    add the following line and it doesn't work

    <mime-type merge="append">application/pgp</mime-type>

    <mime-type merge="append">application/pgp-encrypted</mime-type> 

    <mime-type merge="append">application/pgp-signature</mime-type>

    <mime-type merge="append">application/octet-stream</mime-type>

    Help plis



    ------------------------------
    Jhon Freddy Osorio Alfonzo
    ------------------------------



  • 8.  RE: mime-type - extension conflict when uploading to BPM document store v21

    Posted Mon June 26, 2023 07:21 AM
    First take a look in the ICN documentation to see what viewers are supported by ICN and depending on this the file formats, like here

    https://www.ibm.com/docs/en/content-navigator/2.0.3?topic=client-supported-viewers
    Try to find the supported formats depending on the ICN and the Viewer version implemented in your system...

    Or perhaps you implemented a new viewer in ICN?
    Hope it helps

    Dorothea
    ______________________________

    Dorothea Vulcan

    ________________________________
    This email is strict confidential otherwise not specified. All other receivers are required to use no content and addresses and to delete  them from all clients and servers. In any other cases they could be punished conform international laws.
    ___________________






  • 9.  RE: mime-type - extension conflict when uploading to BPM document store v21

    Posted Wed July 19, 2023 11:57 AM
    Edited by Jhon Freddy Osorio Alfonzo Wed July 19, 2023 11:59 AM

    Hi community,

    we had a problem loading files with a .pgp extension in IBM BAW v21.0.3.1 and the error was resolved by applying the following available ifix 8.6.30021031-WS-BPM-IFDT141838.

    https://www.ibm.com/mysupport/s/defect/aCI3p000000TVAo/dt141838?language=en_US

    1.- Then we add the following configuration to the 100Custom.xml file

    <!-- Disable file security -->
    <server merge="mergeChildren">
        <document-attachment-accepted-mime-types merge="replace">
            <disable-document-attachment-accepted-mime-types>true</disable-document-attachment-accepted-mime-types>
        </document-attachment-accepted-mime-types>
    </server>

    2.- Application server restart

    Note: You can also use the list <document-attachment-accepted-mime-types>



    ------------------------------
    Jhon Freddy Osorio Alfonzo
    ------------------------------