Bug #2830

faxweb: non-admin users unable to see their faxes

Added by Filippo Carletti about 7 years ago. Updated about 7 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-faxweb2
Target version:v6.5
Security class: Resolution:
Affected version: NEEDINFO:No

Description

When logged in as a non-admin user, faxweb shows no fax at all, because the owner of a fax is not stored in the database.
To insert the owner into the db, modify /var/spool/hylafax/etc/accounting/faxweb as:
owner=${18}
...
execquery="Insert delayed into faxweb_fax set number='$number', filename='$File_dest', doc_id=$jobid, date='$date', job_id='$jobid', attempts='0', tipo='H', fax_type='$fax_type', path='$FAX_SPATH', rpath='/$rpath', type='$file_type', id_m='$id_m', state='', status='found', user='$owner' ;"


Related issues

Related to NethServer 6 - Bug #2746: hylafax: notify fails if tsi has spaces CLOSED

Associated revisions

Revision bfb3abcf
Added by Filippo Carletti about 7 years ago

accounting: add owner to mysql db; refs #2830

History

#1 Updated by Filippo Carletti about 7 years ago

Already sent faxes do not have the owner attribute, so they will never be visible.
Manual modifications to mysql db needed.

#3 Updated by Davide Principi about 7 years ago

  • Status changed from NEW to TRIAGED
  • % Done changed from 0 to 20

#4 Updated by Davide Principi about 7 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Filippo Carletti
  • % Done changed from 20 to 30

#5 Updated by Filippo Carletti about 7 years ago

  • Status changed from ON_DEV to MODIFIED
  • % Done changed from 30 to 60

Test case

After update, send a fax (even to an invalid number), log to faxweb as a non-admin user and see the fax in queue. Then remove it.

#6 Updated by Davide Principi about 7 years ago

  • Status changed from MODIFIED to ON_QA
  • Assignee deleted (Filippo Carletti)
  • % Done changed from 60 to 70

In nethserver-testing:
nethserver-faxweb2-1.0.4-1.0gitbfb3abcf.ns6.noarch.rpm

#7 Updated by Filippo Carletti about 7 years ago

  • Status changed from ON_QA to VERIFIED
  • % Done changed from 70 to 90

Verified.
Logged in as non-admin user, sent a fax, it appeared in faxweb, removed, all successfully.
Also:
mysql> select date from faxweb_fax where user='xxx';
2014-08-04 16:08:00

#8 Updated by Davide Principi about 7 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100

In nethserver-updates:
nethserver-faxweb2-1.0.5-1.ns6.noarch.rpm

#9 Updated by Davide Principi about 7 years ago

  • Related to Bug #2746: hylafax: notify fails if tsi has spaces added

Also available in: Atom PDF