Closed Bug 313739 Opened 19 years ago Closed 14 years ago

"graphs" directory location is presumed to be in its standard location

Categories

(Bugzilla :: Reporting/Charting, enhancement)

2.20
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 3.2

People

(Reporter: bugreport, Assigned: LpSolit)

References

Details

(Whiteboard: [fixed by blocker])

Attachments

(1 file, 1 obsolete file)

The "graphs" directory is presumed to be in its standard location.  This causes th debian packagers to miss it.  It should be specified in Bugzilla/Config.pm much as $datadir and $webdotdir are.
Flags: blocking2.20.1?
a dupe of bug 280180?
No; this is a different issue.

Gerv
joel, I don't see how this could be a blocker for 2.20. It's not a bug, but an enhancement, in the same way as bug 280180 is.
agreed.  This has been an ongoing target and something we're striving to make easier for the packagers, but it's not something that's critical to Bugzilla functioning (it just means the packagers have bigger patches to write until we fix it).
Severity: normal → enhancement
Flags: blocking2.22-
Flags: blocking2.20.1?
Flags: blocking2.20.1-
Target Milestone: Bugzilla 2.20 → Bugzilla 2.24
This bug is retargetted to Bugzilla 3.2 for one of the following reasons:

- it has no assignee (except the default one)
- we don't expect someone to fix it in the next two weeks (i.e. before we freeze the trunk to prepare Bugzilla 3.0 RC1)
- it's not a blocker

If you are working on this bug and you think you will be able to submit a patch in the next two weeks, retarget this bug to 3.0.

If this bug is something you would like to see implemented in 3.0 but you are not a developer or you don't think you will be able to fix this bug yourself in the next two weeks, please *do not* retarget this bug.

If you think this bug should absolutely be fixed before we release 3.0, either ask on IRC or use the "blocking3.0 flag".
Target Milestone: Bugzilla 3.0 → Bugzilla 3.2
Bugzilla 3.2 is now frozen. Only enhancements blocking 3.2 or specifically approved for 3.2 may be checked in to the 3.2 branch. If you would like to nominate your enhancement for Bugzilla 3.2, set the "blocking3.2" flag to "?". Then, either the target milestone will be changed back, or the blocking3.2 flag will be granted, if we will accept this enhancement for Bugzilla 3.2.

This particular bug has not been touched in over eight months, and thus is being retargeted to "---" instead of "Bugzilla 4.0". If you believe this is a mistake, feel free to retarget it to Bugzilla 4.0.
Target Milestone: Bugzilla 3.2 → ---
Assignee: gerv → charting
Also, the graph dir is not PROJECT aware, from bug#419014
It appears this is also needed by the Fedora package. Taking.
Assignee: charting → emmanuel.seyman
Status: NEW → ASSIGNED
Fairly straightforward.
Attachment #436438 - Flags: review?(LpSolit)
Comment on attachment 436438 [details] [diff] [review]
make all references to the graph directory use $graphdir

>Index: reports.cgi

>-my $graph_url = 'graphs';
>-my $graph_dir = bz_locations()->{'libpath'} . '/' .$graph_url;
>+my $graph_dir = bz_locations()->{'graphdir'};
>+my ($graph_url) = ($graph_dir  =~ s/.*\///);

Not sure what you are trying to do here. .*\/ seems dangerous to me.
Do you mean [^\/]*\/ ? If 'graphs' is not in the same directory as CGI scripts, this path won't work, right? Same if libpath contains an absolute path.



>Index: Bugzilla/Constants.pm

>+        'graphdir' => "$libpath/graphs2",

Why 'graphs2'?


Otherwise looks good.
Attachment #436438 - Flags: review?(LpSolit) → review-
(In reply to comment #10)
>
> Not sure what you are trying to do here. .*\/ seems dangerous to me.
> Do you mean [^\/]*\/ ?

I'm actually looking for the last directory (the basename function without having to drag in File::Basename as a requirement).

Then again, I suspect that "$datadir/graphs" would be a better choice for this since it would make reports.cgi $PROJECTS-compliant.

> >+        'graphdir' => "$libpath/graphs2",
> 
> Why 'graphs2'?

So that I can tell if my changes work. :-|
Looking back on this, it turns out that .*\/ is actually what I wanted. I also realized that Bugzilla::Constants loads File::Basename so there's no problem with adding it as a requirement to reports.cgi.
Attachment #436438 - Attachment is obsolete: true
Attachment #437969 - Flags: review?(LpSolit)
The patch will be bitrotten by bug 561797 (which should land first as it's a security patch, and it's always a pain to backport/maintain them).
Comment on attachment 437969 [details] [diff] [review]
same thing with basename()

Withdrawing my review request. I'll resubmit a patch later.
Attachment #437969 - Flags: review?(LpSolit)
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Depends on: CVE-2010-3764
Resolution: --- → FIXED
Whiteboard: [fixed by blocker]
Assignee: emmanuel.seyman → LpSolit
Target Milestone: --- → Bugzilla 3.2
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: