You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2021/01/19 15:42:10 UTC

[Bug 65091] New: htcacheclean displays only one cache files when few exists in one subdirectory

https://bz.apache.org/bugzilla/show_bug.cgi?id=65091

            Bug ID: 65091
           Summary: htcacheclean displays only one cache files when few
                    exists in one subdirectory
           Product: Apache httpd-2
           Version: 2.4.37
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: support
          Assignee: bugs@httpd.apache.org
          Reporter: aegorenkov.91@gmail.com
  Target Milestone: ---

Sometimes there are few files in one cache subdirectory. In this case using of
"htcacheclean -p . -A" will only show one record.

How to reproduce:

1.
# cat /etc/httpd/conf.d/cache.conf 
<IfModule cache_disk_module>
        CacheRoot /var/cache/httpd/proxy
        CacheEnable disk  "/"
        CacheDirLevels 1
</IfModule>

2.
static html with multiple pictures created in /var/www/html/
I just saved ddg image search page with random request

3.
access static html with web browser
cache content should be generated

# ls -l /var/cache/httpd/proxy/9E/
total 112
-rw-------. 1 apache apache 27331 Jan 19 09:53 kMC7qG8oV2vER7QOa5@w.data
-rw-------. 1 apache apache   556 Jan 19 09:53 kMC7qG8oV2vER7QOa5@w.header
-rw-------. 1 apache apache 77684 Jan 19 09:53 sOsGyFnw7UEH29Jyip0Q.data
-rw-------. 1 apache apache   557 Jan 19 09:53 sOsGyFnw7UEH29Jyip0Q.header

4.
# cd /var/cache/httpd/proxy/9E/

Actual result:
# htcacheclean -p . -A
http://192.168.122.75:80/small_image_files/a_020.jpg? 556 27331 200 0
1611046420286395 1611054168715034 1611046420286096 1611046420286395 1 0

Expected result:
# htcacheclean -p . -A
http://192.168.122.75:80/small_image_files/a_020.jpg? 556 27331 200 0
1611046420286395 1611054168715034 1611046420286096 1611046420286395 1 0
http://192.168.122.75:80/small_image_files/a_052.jpg? 557 77684 200 0
1611046420291158 1611054168720273 1611046420290791 1611046420291158 1 0

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 65091] htcacheclean displays only one cache files when few exists in one subdirectory

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65091

Artem Egorenkov <ae...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aegorenkov.91@gmail.com

--- Comment #1 from Artem Egorenkov <ae...@gmail.com> ---
Created attachment 37705
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=37705&action=edit
Patch fixing the described problem

TEST:

# htcacheclean -p . -A
http://192.168.122.75:80/small_image_files/a_020.jpg? 556 27331 200 0
1611046420286395 1611054168715034 1611046420286096 1611046420286395 1 0
http://192.168.122.75:80/small_image_files/a_052.jpg? 557 77684 200 0
1611046420291158 1611054168720273 1611046420290791 1611046420291158 1 0

# echo $?
0

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 65091] htcacheclean displays only one cache files when few exists in one subdirectory

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65091

Joe Orton <jo...@redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Joe Orton <jo...@redhat.com> ---
Merged in r1915508 - belatedly, thank you Artem!

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 65091] htcacheclean displays only one cache files when few exists in one subdirectory

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65091

Artem Egorenkov <ae...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |PatchAvailable

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org