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

Uploading a file after a session timeout

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Trunk
    • Fix Version/s: 14.12.01, 16.11.01
    • Component/s: framework
    • Labels:
      None
    • Sprint:
      Bug Crush Event - 21/2/2015, Community Day 1 - 2015

      Description

      When a user goes to a page (eg. https://localhost:8443/partymgr/control/viewprofile?partyId=Company) and tries to upload a file to content after the session has timed out. Nothing happens except for the message, "(undefined%)" at the progress bar. Looking at the console log, getFileUploadProgressStatus is called continuously.

      Need a way to show the login screen for the user to login again to refresh the session before upload can take place.

      This issue would apply to all pages that upload content to ofbiz.

      1. OFBIZ-4651.patch
        0.6 kB
        Arun Patidar

        Activity

        Hide
        arunpati Arun Patidar added a comment -

        Attached is the patch to fix the issue. Handled error in js code.

        Show
        arunpati Arun Patidar added a comment - Attached is the patch to fix the issue. Handled error in js code.
        Hide
        pandeypranay Pranay Pandey added a comment -

        Hi Arun,

        Thanks for the patch. It looks like you have only checked this issue on party profile page. Please review other places where contents are uploaded to ofbiz like category or product contents. If its not an issue at other places we can commit this page or else will need an updated patch.

        Show
        pandeypranay Pranay Pandey added a comment - Hi Arun, Thanks for the patch. It looks like you have only checked this issue on party profile page. Please review other places where contents are uploaded to ofbiz like category or product contents. If its not an issue at other places we can commit this page or else will need an updated patch.
        Hide
        arunpati Arun Patidar added a comment -

        Thanks Pranay for your comment. I verified this across the application. This Js code exists only in single file.

        I have committed the changes in trunk at r1706553 and in 14.12 at r1706554

        Show
        arunpati Arun Patidar added a comment - Thanks Pranay for your comment. I verified this across the application. This Js code exists only in single file. I have committed the changes in trunk at r1706553 and in 14.12 at r1706554
        Hide
        jacques.le.roux Jacques Le Roux added a comment -

        Please Arun, don't forget to put the version fixed in the "Fix Version/s" field, thanks

        Show
        jacques.le.roux Jacques Le Roux added a comment - Please Arun, don't forget to put the version fixed in the "Fix Version/s" field, thanks
        Hide
        arunpati Arun Patidar added a comment -

        Thanks Jacques

        Show
        arunpati Arun Patidar added a comment - Thanks Jacques

          People

          • Assignee:
            arunpati Arun Patidar
            Reporter:
            wt Wai
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development

                Agile