Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
b1eab975
Commit
b1eab975
authored
Jul 14, 2010
by
Jens Vagelpohl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- refining the fix for LP #143533
parent
bc7b6a13
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
doc/CHANGES.rst
doc/CHANGES.rst
+4
-3
src/ZServer/HTTPServer.py
src/ZServer/HTTPServer.py
+6
-4
No files found.
doc/CHANGES.rst
View file @
b1eab975
...
...
@@ -14,9 +14,10 @@ Bugs Fixed
- LP #143755: Also catch TypeError when trying to determine an
indexable value for an object in PluginIndexes.common.UnIndex
- LP #143533: Instead of showing "0.0.0.0" as server name when no
specific listening IP is configured for the HTTP server, do a
socket lookup to show the current server's fully qualified name.
- LP #143533: Instead of showing "0.0.0.0" as the SERVER_NAME
request variable when no specific listening IP is configured for
the HTTP server, do a socket lookup to show the current server's
fully qualified name.
- LP #143722: Added missing permission to ObjectManager.manage_hasId,
which prevented renaming files and folders via FTP.
...
...
src/ZServer/HTTPServer.py
View file @
b1eab975
...
...
@@ -185,7 +185,7 @@ class zhttp_handler:
env
=
{}
env
[
'REQUEST_METHOD'
]
=
request
.
command
.
upper
()
env
[
'SERVER_PORT'
]
=
str
(
server
.
port
)
env
[
'SERVER_NAME'
]
=
server
.
server_name
env
[
'SERVER_NAME'
]
=
server
.
request_
server_name
env
[
'SERVER_SOFTWARE'
]
=
server
.
SERVER_IDENT
env
[
'SERVER_PROTOCOL'
]
=
"HTTP/"
+
request
.
version
env
[
'channel.creation_time'
]
=
request
.
channel
.
creation_time
...
...
@@ -447,10 +447,12 @@ class zhttp_server(http_server):
self
.
shutup
=
1
self
.
fast_listen
=
fast_listen
http_server
.
__init__
(
self
,
ip
,
port
,
resolver
,
logger_object
)
if
self
.
server_name
==
'0.0.0.0'
:
# Workaround to set a more descriptive server_name
self
.
request_server_name
=
self
.
server_name
if
self
.
request_server_name
==
'0.0.0.0'
:
# Workaround to set a more descriptive server name
# for use in the Request SERVER_NAME variable
try
:
self
.
server_name
=
socket
.
getfqdn
()
self
.
request_
server_name
=
socket
.
getfqdn
()
except
socket
.
error
:
pass
self
.
shutup
=
0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment