Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-12602

XML Import fails due to security check

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 17.12.09, 18.12.05, Upcoming Branch
    • 18.12.06, 22.01.01
    • framework/webtools
    • None

    Description

      When importing an entity like

       

      <SystemProperty systemResourceId="catalog" 
      systemPropertyId="image.server.path" systemPropertyValue="${sys:getProperty("ofbiz.home")}/themes/common-theme/webapp/images/${tenantId}" description="Image upload path on the server." lastUpdatedStamp="2022-04-14 12:00:12.597" lastUpdatedTxStamp="2022-04-14 12:00:12.596" createdStamp="2022-04-14 12:00:12.597" createdTxStamp="2022-04-14 12:00:12.596"/>

       

      I get the following info message.

      HTTP Status 403 – Forbidden
      Type Status Report
      Message Not saved for security reason, strings '${', '<#', '#{', '[=' or '[#' not accepted in fields!
      Description The server understood the request but refuses to authorize it.
      

      I do have the same problem when I try to update the value via entity mainainance. Importing an XML file works.

      Would it make sense to bypass the check if the user has the appropriate permissions?

       

       

      Attachments

        1. OFBIZ-12602.patch
          2 kB
          Jacques Le Roux

        Issue Links

          Activity

            People

              jleroux Jacques Le Roux
              iwolf Ingo Wolfmayr
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: