Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-7109

Allow user to adjust the size of Metadata that can be uploaded by the Common Task "Create SAMLv2 Providers" buttons.

    XMLWordPrintable

    Details

    • Rank:
      1|hzlgtj:
    • AM Sustaining Sprint 14

      Description

      Currently, users are limited to the size of a file they can upload when they register a remote Identity Provider through the Common Tasks tab This seem to be caused by the FileUpload.jsp file. The section of code is as follows:

      try {
                  boolean limitExceeded = false;
                  StringBuffer buff = new StringBuffer();
                  is = request.getInputStream();
                  bos = new BufferedReader(new InputStreamReader(is));
                  String line = bos.readLine();
                  while (line != null) {
                      buff.append(line).append("\n");
                      line = bos.readLine();
                      if (buff.length() > (1024 * 50)) {
                          limitExceeded = true;
                          break;
                      }
      
                  }
      

      To reproduce:

      1. Create a metadata file larger than 1024 * 50.
      2. Go to Common Tasks tab and try to Register Remote Identity Provider.
      3. Select File for where metadata file resides, and press upload.
      4. Browse to file, and select and open file.
      5. Upload file, and user will see "Size limit Exceeded. Please verify your metadata file and try again."

      It would be helpful if the user was able to adjust the size allowed by OpenAM to load larger files.

        Attachments

          Issue Links

            Activity

              People

              jonthomas Jonathan Thomas
              abel.hoxeng Abel Hoxeng
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3.5h
                  3.5h