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

There should not need to setup SystemProperty data on each tenant for specifying path to store tenant images.

    Details

    • Sprint:
      Bug Crush Event - 21/2/2015

      Description

      Currently user need to setup SystemProperty data for each tenant to specify path of product images to be store in separate directory . There should not need to create this data for each tenant instead system should add directory with tenantId in path of images.
      For doing this there should common property value set in catalog.properties like as:
      image.server.path=$

      {sys:getProperty('ofbiz.home')}

      /hot-deploy/hwmapps/webapp/resources/$

      {tenantId}

      image.url.prefix=/images/${tenantId}

      Only need to pass tenantId in context with FlexibleStringExpander.expandString() method.

      This change is extension of efforts done under task OFBIZ-5455

      1. OFBIZ-6088_1307.patch
        17 kB
        Arun Patidar
      2. OFBIZ-6088.patch
        17 kB
        Arun Patidar

        Issue Links

          Activity

          Hide
          arunpati Arun Patidar added a comment -

          Attached are a patches for 13.07, 14.12 and trunk. It is a complete solution to store product images with respect to tenant. Now, there is no need to prepare SystemProperty data for each tenant.

          Steps to verify:

          • Apply the patch
          • Create two tenants with Ids like:TENANT1 and TENANT2
          • Login into catalog component of a tenant
          • Navigate to catalog ->products ->content and upload images for product
          • Perform all above steps for both the tenants

          Expected result
          The product images should be uploaded in different directories in framework/images/webapp e.g.
          /images/TENANT1/products/PRODUCT_ID/original.png
          /images/TENANT2/products/PRODUCT_ID/original.png

          and for no tenant i.e. default account
          /images/products/PRODUCT_ID/original.png

          Show
          arunpati Arun Patidar added a comment - Attached are a patches for 13.07, 14.12 and trunk. It is a complete solution to store product images with respect to tenant. Now, there is no need to prepare SystemProperty data for each tenant. Steps to verify: Apply the patch Create two tenants with Ids like:TENANT1 and TENANT2 Login into catalog component of a tenant Navigate to catalog ->products ->content and upload images for product Perform all above steps for both the tenants Expected result The product images should be uploaded in different directories in framework/images/webapp e.g. /images/TENANT1/products/PRODUCT_ID/original.png /images/TENANT2/products/PRODUCT_ID/original.png and for no tenant i.e. default account /images/products/PRODUCT_ID/original.png
          Hide
          toashishvijay Ashish Vijaywargiya added a comment -

          Thanks Arun for creating the issue and providing the patch for the same.

          Committed your changes at following revisions:

          trunk - r1661307
          R14.12 - r1661310
          R13.07 - r1661312
          R12.04 - r1661313

          Show
          toashishvijay Ashish Vijaywargiya added a comment - Thanks Arun for creating the issue and providing the patch for the same. Committed your changes at following revisions: trunk - r1661307 R14.12 - r1661310 R13.07 - r1661312 R12.04 - r1661313

            People

            • Assignee:
              toashishvijay Ashish Vijaywargiya
              Reporter:
              arunpati Arun Patidar
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development

                  Agile