Bug 201212 - net-mgmt/cacti: missing include files
Summary: net-mgmt/cacti: missing include files
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-30 09:15 UTC by Marko Cupać
Modified: 2015-07-24 07:05 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (freebsd-ports)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marko Cupać 2015-06-30 09:15:16 UTC
Since upgrading to cacti-0.8.8d I am getting errors in apache error log:

File does not exist: /usr/local/share/cacti/include/js/jquery-ui.js, referer: https://example.com/cacti/graph_view.php
File does not exist: /usr/local/share/cacti/include/js/jquery-ui.css, referer: https://example.com/cacti/graph_view.php

Files are actually referenced by include file /usr/local/share/cacti/include/top_graph_header.php:

pacija@example:~ % cat /usr/local/share/cacti/include/top_graph_header.php | grep jquery-ui
	<link href="<?php echo $config['url_path']; ?>include/js/jquery-ui.css" type="text/css" rel="stylesheet">
	<script type="text/javascript" src="<?php echo $config['url_path']; ?>include/js/jquery-ui.js" language="javascript"></script>

Contents of include/js folder is as follows:
pacija@rsbgyucnix01:~ % ls -lh /usr/local/share/cacti/include/js
total 592
drwxr-xr-x  2 root  wheel   1.0k Jun 29 15:45 images
-rw-r--r--  1 root  wheel   3.6k Jun 29 15:45 jquery.cookie.js
-rw-r--r--  1 root  wheel   8.3k Jun 29 15:45 jquery.dropdown.js
-rw-r--r--  1 root  wheel   266k Jun 29 15:45 jquery.js
-rw-r--r--  1 root  wheel   4.9k Jun 29 15:45 jquery.zoom.css
-rw-r--r--  1 root  wheel    42k Jun 29 15:45 jquery.zoom.js
-rw-r--r--  1 root  wheel   245k Jun 29 15:45 jstree.js
drwxr-xr-x  4 root  wheel   512B Jun 29 15:45 themes

I don't know yet which functionality implications will this have. For now, I noticed I can't zoom into graphs. I don't know if it is related.
Comment 1 Daniel Austin 2015-06-30 10:34:40 UTC
(In reply to Marko Cupać from comment #0)
As you can see in the URL below, the files were removed by the cacti authors during the release stage:

http://fossies.org/diffs/cacti/0.8.8c_vs_0.8.8d/

They seem to claim they are unneeded, this is from the ChangeLog entry:

"-feature: Remove un-needed fonts and javascript files"
Comment 2 Marko Cupać 2015-06-30 11:21:05 UTC
(In reply to Daniel Austin from comment #1)

Hi Daniel,

thank you for looking into it. If those files are unneeded, I guess they should have removed reference to them as well.

What about the inability to zoom into graphs?
Comment 3 Daniel Austin 2015-07-22 08:30:58 UTC
Hi,

Hopefully this is resolved (upstream) in cacti 0.8.8f_1 (committed yesterday)


Thanks,

Daniel.
Comment 4 Marko Cupać 2015-07-22 11:27:10 UTC
Hi,

it appears that upgrade solved the problem of inability to zoom into graphs. Even better, it added the ability to zoom directly from 'tree mode' without the need to click looking glass icon.

As far as I am concerned, reported problems are solved. Thanks for help!
Comment 5 Jason Unovitch freebsd_committer freebsd_triage 2015-07-24 01:58:55 UTC
(In reply to Marko Cupać from comment #4)
Marco,
As the reporter you can set the status to closed / overcome by events since it was addressed in a separate PR to update to 0.8.8f.
Comment 6 Marko Cupać 2015-07-24 07:05:36 UTC
Problem disappeared after upgrade to cacti-0.8.8f_1