Ticket #4510 (closed Bugs: duplicate)

Opened 1 year ago

Last modified 1 year ago

User Portal 2.5 problem when directories/files get larger than 10

Reported by: adyn Assigned to:
Priority: major Milestone: 2.9
Component: User Portal Version: 2.8-branch
Keywords: Cc:
Confirmation: Unreviewed SVN Revision (if applicable):
Backend Engine: Asterisk 1.4.x Backend Engine Version:

Description

When directories/files get larger than 10 an error message shows: Too many directories in /var/spool/asterisk/voicemail/default/132. Not all files processed

in the file: /var/www/html/recordings/includes/bootstrap.php line 125 there is:

if ($dirCount>10) {
            $_SESSION['ari_error']
              .= sprintf(_("Too many directories in %s. Not all files processed"),$msg_path) . "<br>";
            return;
          }

If I change $dirCount>10 to $dirCount>100 (or more) the problem is fixed.

Here is a diff of the changes I made, I did not do anything major just increased 10 to 100 to resolve the issue:

diff bootstrap.php bootstrap.php_orig

123c123
<           if ($dirCount>1000) {
---
>           if ($dirCount>10) {

Change History

08/27/10 10:29:23 changed by mickecarlsson

  • status changed from new to closed.
  • resolution set to duplicate.

Dupe of #4509