You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@httpd.apache.org by bu...@apache.org on 2015/03/30 03:14:35 UTC
[Bug 57778] New: Effect of AddType should be documented in more
detail
https://bz.apache.org/bugzilla/show_bug.cgi?id=57778
Bug ID: 57778
Summary: Effect of AddType should be documented in more detail
Product: Apache httpd-2
Version: 2.5-HEAD
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Documentation
Assignee: docs@httpd.apache.org
Reporter: sebastian@pipping.org
Hi!
The latest documentation of the AddType directive [1] says that it "maps the
given filename extensions onto the specified content type". What it is not
saying is what that mapping is responsible for.
I read the docs like adding a mapping results in a server response header
Content-type: xxxx
rathern than sending the type set by DefaultType, and nothing more.
A fellow developer explained that a call to AddType can affect the handler
used, too. Is that correct? Right now my impression is that AddType is more
like AddHandler /plus/ producing a Content-Type header rather than just
controlling server response header content. The docs should have an answer or
a quality pointer to more details, at least.
So please add details about the actual effects of using the Addtype directive.
Many thanks!
[1] https://httpd.apache.org/docs/current/mod/mod_mime.html#addtype
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org
[Bug 57778] Effect of AddType should be documented in more detail
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57778
--- Comment #5 from sebastian@pipping.org ---
(In reply to Eric Covener from comment #4)
> updated in r1675471, trunk only for now. I've tried to lead with the short
> form and warn at the end.
A lot better now.
For the
Configurations that rely on such "synthetic" types should be avoided
a rationale would be cool.
On
Additionally, configurations that restrict access to SetHandler
or AddHandler should restrict access to this directive as well
I'm unsure what that really is about. If it means to say "AddType has the same
security implications as AddHandler (getting you into remote code execution);
you may want to use ForceType wrapped by FilesMatch, instead", that's the kind
of warning I hoped for.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org
[Bug 57778] Effect of AddType should be documented in more detail
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57778
--- Comment #1 from sebastian@pipping.org ---
Update: With Apache 2.4 the line
AddType application/x-httpd-php .php .php5 .phtml
does get my PHP files executed, I verified.
That's not documented at [1]. Please document it. Thank you!
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org
[Bug 57778] Effect of AddType should be documented in more detail
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57778
Eric Covener <co...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Eric Covener <co...@gmail.com> ---
thanks for the report. I've added a note in trunk and 2.4 about the legacy
type-as-handler stuff.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org
[Bug 57778] Effect of AddType should be documented in more detail
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57778
--- Comment #4 from Eric Covener <co...@gmail.com> ---
updated in r1675471, trunk only for now. I've tried to lead with the short form
and warn at the end.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org
[Bug 57778] Effect of AddType should be documented in more detail
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57778
--- Comment #3 from sebastian@pipping.org ---
(In reply to Eric Covener from comment #2)
> thanks for the report. I've added a note in trunk and 2.4 about the legacy
> type-as-handler stuff.
Thanks for your work on this matter.
I found the related commit at r1675426:
https://svn.apache.org/viewvc?view=revision&revision=1675426
To be honest, I find the note rather hard to understand, even _with_ a
background of having understood what's going on to some extent prior to
reading.
And there is no mention of potential danger / security.
I'd provide a patch if I knew how to put it well.
Quoting a public mail of yours,
"If no handler is explicitly set, the content-type is copied over
as the handler."
put it much more clearly.
Besides:
* there is a typo "diretives",
* some double quotes may need conversion to """ (not sure) and
* for "magic" I would use "artificial", instead.
My vote for re-opening, please.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org