Zoneminder Exports but HTML is faulty

Bug #1176128 reported by Raven Maddox
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
zoneminder (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I am running Ubuntu 12.04.2 LTS (GNU/Linux 3.5.0-27-generic x86_64) server

Zoneminder wil export and create a downloadable zip file, but the folder structure created is not the same that the created HTML is looking for.

Example: When I click on an event the HTML link is looking for

No webpage was found for the web address: file:///C:/events/1/1907/zmEventImages.html

but the actual location is

file:///C:/events/1/13/05/03/11/45/31/zmEventImages.html

I am unable to find the cause or this problem listed elsewhere so I am reporting it as a bug.

Tags: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in zoneminder (Ubuntu):
status: New → Confirmed
Revision history for this message
Alex10336 (ap10336) wrote :

Fix tested on raraing and zoneminder 1.25:
/usr/share/zoneminder/zm/skins/classic/includes/export_functions.php: line ~778

 foreach ($eids as $eid) {
  //get monitor id and event id
  $sql = "select E.MonitorId, E.StartTime, E.Id from Monitors as M inner join Events as E on (M.Id = E.MonitorId) where E.Id = '".dbEscape($eid)."'";
  $event = dbFetchOne( $sql );
  $eventMonitorId[$eid] = $event['MonitorId'];
  $eventPath[$eid] = strftime( "%y/%m/%d/%H/%M/%S", strtotime($event['StartTime']) );

 }

/usr/share/zoneminder/skins/classic/includes/export_functions.php: line ~826 & ~842

  <div><a href="javascript:switchevent('<?php echo $eventMonitorId[$eid].'/' . $eventPath[$eid]; ?>/zmEventImages.html');"><?=$eid?></a></div>

Revision history for this message
Alex10336 (ap10336) wrote :

Add patch file.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Fix-html-export.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.