Closed Bug 599539 Opened 14 years ago Closed 14 years ago

Update the mod_perl.pl code for Apache2::SizeLimit 0.92

Categories

(Bugzilla :: Bugzilla-General, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 4.0

People

(Reporter: mkanat, Assigned: mkanat)

Details

Attachments

(1 file, 2 obsolete files)

In SizeLimit 0.92, the syntax for Apache2::SizeLimit changed. The old syntax remains for backwards-compatibility, so we don't have to update old branches, but we should update our latest code and require 0.92.

Also, the docs seem to indicate that Apache2::SizeLimit now works on Windows.
I ran into this bug while I was working on this:

  https://rt.cpan.org/Ticket/Display.html?id=61622
Attached patch v1 (obsolete) — Splinter Review
This should be all that's required. Not asking for review yet, because I'm waiting for the bug report to be addressed.
Assignee: general → mkanat
Status: NEW → ASSIGNED
Blocks: 600708
No longer blocks: 600708
The SizeLimit maintainers have fixed the bug and it will be released as part of 0.93.
(In reply to comment #3)
> The SizeLimit maintainers have fixed the bug and it will be released as part of
> 0.93.

0.93 has been released 2 months ago.
Comment on attachment 478472 [details] [diff] [review]
v1

All right, then this patch is ready.
Attachment #478472 - Flags: review?(LpSolit)
Target Milestone: --- → Bugzilla 4.0
(In reply to comment #0)
> but we should update our latest code and require 0.92.

Shouldn't your patch also require 0.92?
Ah, probably yes it should. :-)
Attached patch v2 (obsolete) — Splinter Review
Attachment #478472 - Attachment is obsolete: true
Attachment #495510 - Flags: review?(LpSolit)
Attachment #478472 - Flags: review?(LpSolit)
Attachment #495510 - Flags: review?(LpSolit) → review?(glob)
Comment on attachment 495510 [details] [diff] [review]
v2

The docs state that in order for this to work on windows, Win32::API needs to be installed.  If we're to include support for Windows with this patch, we also need to ensure that module is installed.
Attachment #495510 - Flags: review?(glob) → review-
Comment on attachment 495510 [details] [diff] [review]
v2

Actually, Bugzilla already requires Win32::API in order for checksetup to even run. (See Bugzilla::Install::Util.) We can't even check requirements safely on Windows without having Win32::API already installed.
Attachment #495510 - Flags: review- → review?(glob)
> Actually, Bugzilla already requires Win32::API in order for checksetup to even
> run. (See Bugzilla::Install::Util.)

the code in Bugzilla::Install::Util treats Win32::API as optional:

  # Win32::API ships with ActiveState by default, though there could 
  # theoretically be a Windows installation without it, I suppose.
  if (ON_WINDOWS and eval { require Win32::API }) {

Win32::API isn't referenced anywhere else.

i'd be happy to just make Win32::API mandatory :)
Attached patch v3Splinter Review
Ah, you're totally right. Okay, here's a patch that adds Win32::API to the optional requirements if we're on Windows. I figure we don't need to make it mandatory unless it really does become mandatory for us.
Attachment #495510 - Attachment is obsolete: true
Attachment #497293 - Flags: review?(glob)
Attachment #495510 - Flags: review?(glob)
Comment on attachment 497293 [details] [diff] [review]
v3

r=glob
Attachment #497293 - Flags: review?(glob) → review+
Flags: approval?
Awesome, thanks!
Flags: approval? → approval+
Flags: approval4.0+
Committing to: bzr+ssh://bzr.mozilla.org/bugzilla/trunk/
modified mod_perl.pl
modified Bugzilla/Install/Requirements.pm
modified template/en/default/pages/release-notes.html.tmpl
Committed revision 7636.

Committing to: bzr+ssh://bzr.mozilla.org/bugzilla/4.0/
modified mod_perl.pl
modified Bugzilla/Install/Requirements.pm
modified template/en/default/pages/release-notes.html.tmpl
Committed revision 7503.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: