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 2008/12/19 20:36:30 UTC

DO NOT REPLY [Bug 46420] New: mod_ssl SSLSessionCache: Parentheses in path name not possible for shm

https://issues.apache.org/bugzilla/show_bug.cgi?id=46420

           Summary: mod_ssl SSLSessionCache: Parentheses in path name not
                    possible for shm
           Product: Apache httpd-2
           Version: 2.2.11
          Platform: PC
               URL: http://www.nabble.com/Error-when-trying-shmcb-
                    SSLSessionCache-on-64-bit-Windows-td19251739.html
        OS/Version: Windows Server 2003
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_ssl
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: df@forlix.org


On Windows 2003 64bit, Apache is mostly installed in the "Program Files (x86)"
folder, and the parentheses cause the trouble here, as mod_ssl tries to read
the cache size out of them. I suggest either changing the ( ) to < >, as those
are not allowed in folder names in Windows, or search the string right to left,
getting the correct pair of parentheses containing the size.

SSLSessionCache "shmcb:C:/Program Files
(x86)/Apache2.2/logs/ssl_scache(512000)"

^ fails.

Thanks


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


DO NOT REPLY [Bug 46420] mod_ssl SSLSessionCache: Parentheses in path name not possible for shm

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

--- Comment #4 from Christian Höltje <do...@gerf.org> 2010-07-30 10:22:55 EDT ---
**Workaround**

The shmcb method doesn't actually create a file on the filesystem, so you can
use an arbitrary pathname. Just make sure it's unique on the system.

Examples:
SSLSessionCache "shmcb:C:\apache\port80\instance1(512000)"
and
SSLSessionCache "shmcb:C:\apache\port443\instance2(512000)"

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


DO NOT REPLY [Bug 46420] mod_ssl SSLSessionCache: Parentheses in path name not possible for shm

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





--- Comment #2 from William Bailey <wi...@hornbill.com>  2009-07-30 04:34:54 PST ---
Created an attachment (id=24064)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=24064)
Path to resolve (x86) path issue.

Potential patch to resolve the issue with 64bit windows and folders that
contain the '(' character. The patch check to see if the last character is a
')' and will then search for a '(' starting at the right of the string.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


DO NOT REPLY [Bug 46420] mod_ssl SSLSessionCache: Parentheses in path name not possible for shm

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

Christian Höltje <do...@gerf.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |docwhat@gerf.org

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


DO NOT REPLY [Bug 46420] mod_ssl SSLSessionCache: Parentheses in path name not possible for shm

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

Stefan Fritsch <sf...@sfritsch.de> changed:

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

--- Comment #6 from Stefan Fritsch <sf...@sfritsch.de> 2011-06-15 22:45:30 UTC ---


*** This bug has been marked as a duplicate of bug 47945 ***

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


DO NOT REPLY [Bug 46420] mod_ssl SSLSessionCache: Parentheses in path name not possible for shm

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





--- Comment #1 from Joe Orton <jo...@redhat.com>  2009-01-02 08:56:35 PST ---
In trunk/2.4 you can simply omit the part after the "shmcb:" and the code will
DTRT.  Not sure what else we could do here.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


DO NOT REPLY [Bug 46420] mod_ssl SSLSessionCache: Parentheses in path name not possible for shm

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

--- Comment #5 from Christian Höltje <do...@gerf.org> 2010-07-30 10:24:32 EDT ---
(In reply to comment #4)
> **Workaround**
> 
> The shmcb method doesn't actually create a file on the filesystem, so you can
> use an arbitrary pathname. Just make sure it's unique on the system.

FYI: That's only on windows.  I don't think you can work around a path name
with () in them on unix. :-(

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


DO NOT REPLY [Bug 46420] mod_ssl SSLSessionCache: Parentheses in path name not possible for shm

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



--- Comment #3 from Charles Gutjahr <ch...@optusnet.com.au> 2009-09-04 20:56:42 PDT ---
The same error has occured for me on 64-bit Windows 7 (RTM), using
Apache/2.2.13. Presumably this occurs on all 64-bit versions of Windows.

A good solution for this would be to comply with Windows conventions and
install data in "\ProgramData" instead of "\Program Files" or "\Program Files
(x86)". Things like logs, configuration files, etc really should be installed
there. Doing so would also avoid the problem of (x86) creeping into the folder
name and triggering this bug.

Generally, you would want to setup data and logs in the Windows Known Folder
'%ALLUSERSPROFILE%' or '%ProgramData%'. More information available at
http://msdn.microsoft.com/en-us/library/bb756896.aspx and
http://msdn.microsoft.com/en-us/library/bb762584%28VS.85%29.aspx

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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