Bug 9

Summary: Several kinds of permissions are not enforced by the database
Product: openmeteo Reporter: Antonios Christofides <anthony@itia.ntua.gr>
Component: DatabaseAssignee: Virtual user for showing unassigned bugs <nobody@itia.ntua.gr>
Status: NEW QA Contact: Antonios Christofides <anthony@itia.ntua.gr>
Severity: normal    
Priority: P2    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:

Description:   Opened: 2003-11-21 19:16 EET (UTC+02:00)
Any user is allowed to insert, update, and delete the string_contents table.
This means that a user can alter another user's strings. This may be impossible
in practice, because the web application will not allow it, but it would be
better if the database, not the application code, enforced this restriction.
------- Comment #1 From Antonios Christofides 2003-11-23 18:18:50 EET (UTC+02:00) -------
Tables that have this problem are:
  * string_contents (already mentioned above)
  * all history tables (should be modifiable by triggers only, not directly by
    users)
  * imodels (has no permission checking, maybe needs something like
    imodels_users)
  * lentities_users and gentities_users don't check insert operations (this
    mustn't be very hard; could allow inserts only when [lg]entity id does
    not already exist in [lg]entities [with deferred constraint])
------- Comment #2 From Antonios Christofides 2003-11-23 18:27:03 EET (UTC+02:00) -------
In addition:
  * Anyone can update sequences.
------- Comment #3 From Antonios Christofides 2004-02-19 00:04:27 EET (UTC+02:00) -------
Reassigning to nobody.

Bug 10

Summary: Inserting into views evaluates sequences multiple times
Product: openmeteo Reporter: Antonios Christofides <anthony@itia.ntua.gr>
Component: DatabaseAssignee: Virtual user for showing unassigned bugs <nobody@itia.ntua.gr>
Status: NEW QA Contact: Antonios Christofides <anthony@itia.ntua.gr>
Severity: normal    
Priority: P2    
Version: unspecified   
Hardware: PC   
OS: All   
Whiteboard:

Description:   Opened: 2003-11-23 14:56 EET (UTC+02:00)
INSERT INTO vpeople(id, first_names_en, last_name_en) VALUES
(nextval('lentities_id'), 'Antonios', 'Christofides');

This query results in rule ri_vpeople being executed, which first inserts to
people, then to lentities. However, before inserting to lentities, it
re-evaluates nextval('lentities_id') (and the insertion is denied by trigger
ti_lentities because of integrity violation). Could this be a PostgreSQL bug?
The same happens if the query is formed as

INSERT INTO vpeople(id, first_names_en, last_name_en)
    SELECT nextval('lentities_id'), 'Antonios', 'Christofides';

The workaround is, of course, to first get the id, then do the insert. Beware of
a race condition if you do it like this:

SELECT nextval('lentities_id');
INSERT INTO vpeople(id, first_names_en, last_name_en)
    SELECT last_value, 'Antonios', 'Christofides' FROM lentities_id;

You don't know that someone else hasn't updated lentities_id again between the
two queries. Better get the result of the first query into a variable.
------- Comment #1 From Antonios Christofides 2004-02-19 00:04:27 EET (UTC+02:00) -------
Reassigning to nobody.

Bug 12

Summary: Need constraint to check syntax of email address
Product: openmeteo Reporter: Antonios Christofides <anthony@itia.ntua.gr>
Component: DatabaseAssignee: Virtual user for showing unassigned bugs <nobody@itia.ntua.gr>
Status: NEW QA Contact: Antonios Christofides <anthony@itia.ntua.gr>
Severity: normal    
Priority: P2    
Version: unspecified   
Hardware: PC   
OS: Linux   
Whiteboard:

Description:   Opened: 2003-12-08 01:42 EET (UTC+02:00)
Field users.emailaddr, which was added by bug 11, is not checked for correct
email syntax.
------- Comment #1 From Antonios Christofides 2004-02-19 00:04:27 EET (UTC+02:00) -------
Reassigning to nobody.

Bug 19

Summary: Station co-ordinates should be entered as deg, min, secs N/S or E/W
Product: openmeteo Reporter: Stefanos Kozanis <S.Kozanis@mail.ntua.gr>
Component: StationAssignee: Virtual user for showing unassigned bugs <nobody@itia.ntua.gr>
Status: NEW QA Contact: Antonios Christofides <anthony@itia.ntua.gr>
Severity: enhancement    
Priority: P2    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:

Description:   Opened: 2004-02-18 20:48 EET (UTC+02:00)
Station data web form:

For user convenience it is better for coordinates to be entered in a form like
deg - min - secs instead of deg with decimal digits form. In addition, some 
radio boxes are desirable so as to enter hemisphers (North/South or 
East/West). Proposed default values of North/East.
------- Comment #1 From Stefanos Kozanis 2004-02-18 20:52:42 EET (UTC+02:00) -------
In addition, when station data are showed (e.g. 
http://openmeteo.itia.ntua.gr/wk/dbmn/station?id=2 ) the coordinates must 
appear with the "ddd mm ss" form
------- Comment #2 From Antonios Christofides 2004-02-18 23:51:44 EET (UTC+02:00) -------
Reassigning to nobody, improving title, moving to correct component.

Bug 24

Summary: There is no installation checklist
Product: openmeteo Reporter: Antonios Christofides <anthony@itia.ntua.gr>
Component: InstallationAssignee: Virtual user for showing unassigned bugs <nobody@itia.ntua.gr>
Status: NEW QA Contact: Antonios Christofides <anthony@itia.ntua.gr>
Severity: normal    
Priority: P2 CC: S.Kozanis@mail.ntua.gr
Version: unspecified   
Hardware: Other   
OS: other   
Whiteboard:

Description:   Opened: 2004-02-19 16:51 EET (UTC+02:00)
Except for the fact that there are no installation instructions, there isn't an
installation checklist either. For example, it is easy for the person installing
to forget to create directory /var/www/downloads (which caused bug 22).
------- Comment #1 From Antonios Christofides 2004-02-20 21:42:46 EET (UTC+02:00) -------
Another thing to note is that either PostgreSQL 7.3 or later must be used, or
7.2 must be patched so that the definition of REWRITE_INVOKE_MAX in
src/backend/rewrite/rewriteHandler.c is 100 rather than 10.
------- Comment #2 From Antonios Christofides 2005-03-16 18:29:43 EET (UTC+02:00) -------
The procedure for installing the database is roughly:   a) Install PostgreSQL
8.0      At some point it must be made to work with Unicode. At this time     
I don't know when exactly and how we ensure that (mine worked in      Unicode
by default and I haven't researched it further).   b) Make sure PL/PgSQL is
installed:      createlang plpgsql template1   c) Run the omdb.sql script:     
psql template1      \i omdb.sql      If it fails claiming that template1 is in
use, attempting to run      it a second or third time sometimes works. 
------- Comment #3 From Antonios Christofides 2005-04-11 10:12:52 EET (UTC+02:00) -------
I'm writing down several random notes (ignore previous comment, which is
unreadable and anyway I have no recollection of writing it).

The procedure is roughly the following:

1. Extract from CVS:
   cd /usr/local
   export CVSROOT=:pserver:anonymous@openmeteo.itia.ntua.gr:/var/lib/cvs
   cvs login (use empty password)
   cvs checkout openmeteo
2. Install PostgreSQL 8.0.
3. Run the database creation script.
   cd /usr/local/openmeteo/database
   psql template1
   \i omdb.sql
   quit
4. Compile and install "timeseries":
   cd /usr/local/openmeteo/timeseries
   make
   make test
   make install
5. Correct /usr/local/openmeteo/dbmn/config.py and create directory
   /var/www/downloads (need to explain in more detail what these are).
6. Install apache and webkit and configure them so that the software in
   /usr/local/openmeteo/dbmn works properly.
...
18. Configure your automatic temporary directory cleanup program (such as
    tmpreaper) to clean /var/www/downloads as well.
------- Comment #4 From Antonios Christofides 2005-04-11 10:24:18 EET (UTC+02:00) -------
Additional notes:
  * Also need to install Cheetah templates, pyPgSQL, Python eginix mx base.
  * The user who connects to the database must be a database super user
    such as postgres.
  * User guest must exist in the database.
  * Pl/PgSQL may need to be installed. Chapter 34 of PgSQL manual, but usually a
       createlang plpgsql template1
    is enough.
------- Comment #5 From Antonios Christofides 2005-04-11 10:31:45 EET (UTC+02:00) -------
Also check that various programs are installed (head, tail, unix2dos, and
others, need to check source code to find them all).
------- Comment #6 From Antonios Christofides 2005-04-11 10:32:41 EET (UTC+02:00) -------
Also create a symlink, /usr/local/bin/python, to the python actually being used
(which, I believe, must be at least 2.3).

Bug 30

Summary: Must ask for login if permission denied occurs
Product: openmeteo Reporter: Antonios Christofides <anthony@itia.ntua.gr>
Component: User managementAssignee: Virtual user for showing unassigned bugs <nobody@itia.ntua.gr>
Status: NEW QA Contact: Antonios Christofides <anthony@itia.ntua.gr>
Severity: enhancement    
Priority: P2    
Version: unspecified   
Hardware: Other   
OS: other   
Whiteboard:

Description:   Opened: 2004-03-29 11:41 EET (UTC+02:00)
If I forget to log in and try to do an operation such as "upload data", nothing
reminds me that I have not logged in, until the denial at the very end of the
data insert/update/upload procedure. The best way to do it would be to request a
login whenever a permissions problem is encountered, and then continue the
operation (more or less as bugzilla does it).

Bug 32

Summary: It would be nice to produce charts
Product: openmeteo Reporter: Antonios Christofides <anthony@itia.ntua.gr>
Component: DataAssignee: Virtual user for showing unassigned bugs <nobody@itia.ntua.gr>
Status: ASSIGNED QA Contact: Antonios Christofides <anthony@itia.ntua.gr>
Severity: enhancement    
Priority: P2    
Version: unspecified   
Hardware: Other   
OS: other   
Whiteboard:

Description:   Opened: 2004-03-30 21:08 EET (UTC+02:00)
Charts of time series would be very nice.
------- Comment #1 From Antonios Christofides 2004-04-30 21:53:51 EET (UTC+02:00) -------
The "timeseries" program can now produce charts, but the web interface does not
yet make any use of the new feature.
------- Comment #2 From Antonios Christofides 2004-05-01 19:12:10 EET (UTC+02:00) -------
Charts were temporarily deactivated (but you can tweak the Makefile to get them
back) because the openmeteo server has trouble compiling them; libgdcharts
library is not included in that version of the operating system. Will compile
with Debian Sarge.

Bug 36

Summary: Improve wiki template
Product: openmeteo.org Reporter: Antonios Christofides <anthony@itia.ntua.gr>
Component: WikiAssignee: Stefanos Kozanis <S.Kozanis@mail.ntua.gr>
Status: NEW QA Contact: Stefanos Kozanis <S.Kozanis@mail.ntua.gr>
Severity: normal    
Priority: P2 CC: kargas@itia.ntua.gr
Version: unspecified   
Hardware: Other   
OS: other   
Whiteboard:

Description:   Opened: 2004-10-08 21:47 EET (UTC+02:00)
Our wiki pages are really ugly. We need a new template. Some research on
existing twiki templates and skins must be done before
choosing/customizing/creating the one we want.

Bug 37

Summary: We need a logo for openmeteo.org
Product: openmeteo.org Reporter: Antonios Christofides <anthony@itia.ntua.gr>
Component: MiscAssignee: Theodore Kargas <kargas@itia.ntua.gr>
Status: NEW QA Contact: Stefanos Kozanis <S.Kozanis@mail.ntua.gr>
Severity: normal    
Priority: P2 CC: S.Kozanis@mail.ntua.gr
Version: unspecified   
Hardware: Other   
OS: other   
Whiteboard:

Description:   Opened: 2004-10-08 21:49 EET (UTC+02:00)
We need a logo. I believe I have some ideas by Alkisti somewhere; when I find
them  I'll post them. In the meantime, other ideas are welcome.

Bug 38

Summary: Determine data license
Product: openmeteo.org Reporter: Antonios Christofides <anthony@itia.ntua.gr>
Component: MiscAssignee: Antonios Christofides <anthony@itia.ntua.gr>
Status: ASSIGNED QA Contact: Stefanos Kozanis <S.Kozanis@mail.ntua.gr>
Severity: normal    
Priority: P2 CC: S.Kozanis@mail.ntua.gr, kargas@itia.ntua.gr
Version: unspecified   
Hardware: Other   
OS: other   
Whiteboard:

Description:   Opened: 2004-10-09 01:28 EET (UTC+02:00)
Right now, the data downloaded from openmeteo.org are licensed for personal
use.
We need to find or create a suitable license. After determining the license, we
must

(a) find out how to maintain it. For example, when licensing software under the
GPL, we normally license with version 2 or any later GPL version published by
the FSF. This is very convenient, provided we trust the FSF for GPL's
maintenance, otherwise, if we needed to change the license, we'd have to find
_all_ copyright holders and get them to agree (there may be tens of copyright
holders in a piece of free software).

(b) Get NTUA to agree to license its data under the license.

Licenses that must be considered are the GPL, the FDL, the Design Science
License (http://www.gnu.org/licenses/dsl.html) and the Creative Common licenses
(http://creativecommons.org/licenses/).
------- Comment #1 From Antonios Christofides 2005-01-23 11:43:10 EET (UTC+02:00) -------
After some research, I have the following results:

1) The FDL is out. It is too text-oriented, complex, and does not contain
disclaimer of warranty and limitation of liability.

2) I'd rather not use the Design Science License, because it is copyrighted by
an individual rather than an organisation, and it is not supported, maintained,
or popular. It is better to stick with either the FSF or the Creative Commons.

3) The GPL is not absolutely unsuitable, but it is very
computer-program-oriented and it is not clear whether data measurements (or a
derivative work, such as a weather movie) have a source form and an object form.
They most probably don't, which results in many reduntant clauses.

4) The Creative Commons licenses seem to be the best candidate. They are clear,
complete, easy to read (considering they are legal documents) and cover our
needs. There are two CC candidates: the simple, "Attribution" CC license, and
the Attribution-ShareAlike license. The latter contains the additional
restriction that derivative works must be distributed with the same license. It
is not yet clear to me whether we want this or not.

An additional problem is that copyright laws have not been written with such
data in mind. It is not even clear that data measurements can be copyrighted,
let alone what constitutes a derivate work. However, even if data measurements
(or, more exactly, collections of data measurements) cannot be copyrighted at
present, copyright laws are likely to change in order to also make provision for
that (because this might give the incentive for private companies to build
meteorological stations in order to sell the data). We will thus pretend that
the data are copyrighted and license them under a CC license; if then some
lawyer decides they are not copyrighted, that's fine, the license doesn't apply,
but the data are free anyway, which is what we care about.

So: Let's choose a Creative Commons license. I'll think a bit more about what
might be a derivative work, and the consequences of requiring or not requiring
that it also be free, and we choose between Attribution and Attribution-Sharealike.
------- Comment #2 From Antonios Christofides 2005-01-26 23:38:49 EET (UTC+02:00) -------
I thought a little bit more and I've reached what I consider a final
decision, and this is the Creative Commons Attribution-ShareAlike
license. Here's the rationale:

I give my data for free. Some other guy has a measuring station but
does not give his data for free; he's selling them. And let's also
suppose that he mixes his data with my data, thus creating a
"derivative work" (say, for a simplistic example, surface rainfall).
He then sells his derivative work, reserving all rights. I think this
is undesirable, for the same reason many people prefer the GPL to the
BSD. I thus prefer the "ShareAlike" licenses, which would force him to
either make his derivative work free, or to ask me, the copyright
holder, to license the data to him under a different license.

(In any case, I repeat that all this is high speculative, because of
uncertainty of how to interpret copyright laws).

In addition, things are not so complex as for software, where there
can be tens or hundreds of people and organisations collectively
owning the copyright for a piece of software. In meteorological data,
normally only a few entities (usually one) will one the copyright, so
it is easy to ask the owner for another license. Finally, if anyone is
disatisfied with the chosen CC attribution-sharealike license, we
might enhance the database/software so that the copyright holder of
each timeseries can choose from a number of licenses.

Bug 39

Summary: Choosing whether to include chart functionality should be easier
Product: openmeteo Reporter: Antonios Christofides <anthony@itia.ntua.gr>
Component: timeseriesAssignee: Virtual user for showing unassigned bugs <nobody@itia.ntua.gr>
Status: NEW QA Contact: Theodore Kargas <kargas@itia.ntua.gr>
Severity: normal    
Priority: P2 CC: S.Kozanis@mail.ntua.gr, kargas@itia.ntua.gr
Version: unspecified   
Hardware: Other   
OS: other   
Whiteboard:

Description:   Opened: 2004-10-10 11:20 EET (UTC+02:00)
The timeseries program can compile with or without chart functionality; this is
useful because chart functionality can be difficult to compile. In order to
leave charts out, the following must be changed in the Makefile:

  * -D NO_CHARTS   must be added to CXXFLAGS
  * LIBS = -lgdc   must be removed or commented out
  * gdcpp.o        must e removed from "objects"

and I may be forgetting something. Obviously this is inconvenient. We need to
use autoconf/automake, or, until we get there, to have a simple true/false
variable in the Makefile that will take care of the rest.

Bug 40

Summary: Find a place to host openmeteo.org
Product: openmeteo.org Reporter: Antonios Christofides <anthony@itia.ntua.gr>
Component: MiscAssignee: Antonios Christofides <anthony@itia.ntua.gr>
Status: NEW QA Contact: Stefanos Kozanis <S.Kozanis@mail.ntua.gr>
Severity: normal    
Priority: P2 CC: S.Kozanis@mail.ntua.gr, kargas@itia.ntua.gr
Version: unspecified   
Hardware: Other   
OS: other   
Whiteboard:

Description:   Opened: 2004-10-10 11:27 EET (UTC+02:00)
If the idea of being hosted by NTUA doesn't go very well, we need to find
something else. We need to know the costs and features of commercial server
hosting, as well as any idea for an organisation that could offer to host our
server.

Bug 42

Summary: Check that database backup is ok
Product: openmeteo.org Reporter: Antonios Christofides <anthony@itia.ntua.gr>
Component: MiscAssignee: Stefanos Kozanis <S.Kozanis@mail.ntua.gr>
Status: NEW QA Contact: Stefanos Kozanis <S.Kozanis@mail.ntua.gr>
Severity: normal    
Priority: P2    
Version: unspecified   
Hardware: Other   
OS: other   
Whiteboard:

Description:   Opened: 2005-02-17 15:00 EET (UTC+02:00)
man pg_dumpall warns that it does not dump large objects. I think it
means the old large objects of PostgreSQL and not the TEXT and BYTEA
fields. But this must be checked.

In any case, a test restore from the tape has to be done.

Bug 46

Summary: Failing to insert a new timeseries results in many fields being cleared
Product: openmeteo Reporter: Antonios Christofides <anthony@itia.ntua.gr>
Component: timeseriesAssignee: Antonios Christofides <anthony@itia.ntua.gr>
Status: NEW QA Contact: Theodore Kargas <kargas@itia.ntua.gr>
Severity: minor    
Priority: P2 CC: nikos@itia.ntua.gr
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:

Description:   Opened: 2005-02-18 12:35 EET (UTC+02:00)
1. I try to add a new timeseries, but make an error, such as insert a
non-numeric value for the time step.
2. I click 'submit query'.

Result: The system complains about the error, but what I had inserted in
variable, unit of measurement, instrument, time step unit, strict, and timestamp
interpretation has been lost.

Expected result: All these fields should be remembered.

Bug 47

Summary: New solar radiation unit: W/m2
Product: openmeteo Reporter: Andreas Grammatikoyiannis <agram@chi.civil.ntua.gr>
Component: DatabaseAssignee: Antonios Christofides <anthony@itia.ntua.gr>
Status: ASSIGNED QA Contact: Antonios Christofides <anthony@itia.ntua.gr>
Severity: normal    
Priority: P2    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:

Description:   Opened: 2005-02-21 16:29 EET (UTC+02:00)
User-Agent:       Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET
CLR 1.1.4322)
Build Identifier: 

thelw W/m2

Reproducible: Always
Steps to Reproduce:
1.
2.
3.

Bug 48

Summary: Make timeseries functionality a shared library
Product: openmeteo Reporter: Antonios Christofides <anthony@itia.ntua.gr>
Component: timeseriesAssignee: Antonios Christofides <anthony@itia.ntua.gr>
Status: NEW QA Contact: Antonios Christofides <anthony@itia.ntua.gr>
Severity: normal    
Priority: P2    
Version: unspecified   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on:    
Bug Blocks: 49    

Description:   Opened: 2005-02-22 13:19 EET (UTC+02:00)
The timeseries functions should be a shared library rather than a
self-contained
program.

Bug 49

Summary: Create a Python interface to the C timeseries functions
Product: openmeteo Reporter: Antonios Christofides <anthony@itia.ntua.gr>
Component: timeseriesAssignee: Antonios Christofides <anthony@itia.ntua.gr>
Status: NEW QA Contact: Antonios Christofides <anthony@itia.ntua.gr>
Severity: normal    
Priority: P2    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 48    
Bug Blocks:    

Description:   Opened: 2005-02-22 13:22 EET (UTC+02:00)
A Python library interface should be created rather than using popen2 to run
the
timeseries program.

Bug 51

Summary: dbmnutils.py should be reusable
Product: openmeteo Reporter: Antonios Christofides <anthony@itia.ntua.gr>
Component: GeneralAssignee: Virtual user for showing unassigned bugs <nobody@itia.ntua.gr>
Status: NEW QA Contact: Antonios Christofides <anthony@itia.ntua.gr>
Severity: normal    
Priority: P2    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:

Description:   Opened: 2005-02-28 15:29 EET (UTC+02:00)
dbmnutils.py contains reusable code and is used by both dbmn and autoupdate
(using a symlink). It must become a module with documentation, and probably with
exhaustive unit testing (it contains two critical functions: timeseries_file2db
and timeseries_dbupdate).

Bug 52

Summary: Database creation script sometimes fails when dropping/creating databases
Product: openmeteo Reporter: Antonios Christofides <anthony@itia.ntua.gr>
Component: DatabaseAssignee: Virtual user for showing unassigned bugs <nobody@itia.ntua.gr>
Status: NEW QA Contact: Antonios Christofides <anthony@itia.ntua.gr>
Severity: normal    
Priority: P2    
Version: unspecified   
Hardware: Other   
OS: Linux   
Whiteboard:

Description:   Opened: 2005-03-16 18:39 EET (UTC+02:00)
When running the database creation script on my system, I frequently
have what appear to be timing issues when, at the beginning, the
script drops and creates the openmeteo database.

If the database does not already exist, usually I get the following:
psql:omdb.sql:19: ERROR:  database "openmeteo" does not exist
psql:omdb.sql:21: ERROR:  source database "template1" is being accessed by other users

If it exists, sometimes when the script attempts to drop it I get the
message that "openmeteo" is in use.

In both cases, trying to run the script a second or third time may
work.

Bug 53

Summary: Make sure database creation script is proper Unicode
Product: openmeteo Reporter: Antonios Christofides <anthony@itia.ntua.gr>
Component: DatabaseAssignee: Virtual user for showing unassigned bugs <nobody@itia.ntua.gr>
Status: NEW QA Contact: Antonios Christofides <anthony@itia.ntua.gr>
Severity: normal    
Priority: P2    
Version: unspecified   
Hardware: Other   
OS: other   
Whiteboard:

Description:   Opened: 2005-03-16 18:43 EET (UTC+02:00)
Line 2214 of the current version of the database creation script
contains the string 'micromol/m2'. I wanted to write this with a Greek
mu instead of the word 'micro', but vim said this caused a conversion
error on save. I don't know why, I've been using vim in UTF-8 for
ages. There is also the degree symbol above said line, which is also
non-ascii and must be checked.

Bug 54

Summary: Deleting from vstation does not delete from all related tables
Product: openmeteo Reporter: Antonios Christofides <anthony@itia.ntua.gr>
Component: DatabaseAssignee: Virtual user for showing unassigned bugs <nobody@itia.ntua.gr>
Status: NEW QA Contact: Antonios Christofides <anthony@itia.ntua.gr>
Severity: critical    
Priority: P2 CC: vzorbas@dblab.ntua.gr
Version: unspecified   
Hardware: PC   
OS: All   
Whiteboard:

Description:   Opened: 2005-03-20 17:38 EET (UTC+02:00)
vzorbas@dblab.ntua.gr reports:

-  Created a db user "vzorbas" from the web page
http://meteonet.chi.civil.ntua.gr/wk/dbmn/edituser
-  Created a test station "Test" from the web page
- Tried to delete the test station "Test":
  1. Connected to db as superuser "postgres"
  2. Run  " delete from vstations; "
      UNSUCCESSFULL: "ERROR:  User <NULL> is not permitted to DELETE on
stations for id=3"
  3. Changed the session user:   SET SESSION AUTHORIZATION "vzorbas"
  4. Rerun " delete from vstations; "  SUCCESSFULL
  5. I supposed that all the tables: stations, gpoints, gentities sould
now be empty BUT NO (# IS THIS A BUG? #)
     Checked:  stations table=Empty, gpoints table: 1row - deleted it,
                     gentities table: 1 row.

Bug 55

Summary: Typo: lentities instead of gentities in fd_gentities
Product: openmeteo Reporter: Antonios Christofides <anthony@itia.ntua.gr>
Component: DatabaseAssignee: Antonios Christofides <anthony@itia.ntua.gr>
Status: NEW QA Contact: Antonios Christofides <anthony@itia.ntua.gr>
Severity: major    
Priority: P2 CC: vzorbas@dblab.ntua.gr
Version: unspecified   
Hardware: PC   
OS: Linux   
Whiteboard:

Description:   Opened: 2005-03-20 17:40 EET (UTC+02:00)
vzorbas@dblab.ntua.gr reports:

When I tried to run "delete from gentities" got the following error:
     " ERROR:  column "name" of relation "lentities_history" does not exist
CONTEXT:  SQL statement "INSERT INTO lentities_history(_operation, id,
name, remarks, country, state, address) VALUES ('D',  $1 , NULL, NULL,
NULL, NULL, NULL)"
PL/pgSQL function "fd_gentities" line 2 at SQL statement"

Run the following statement

 Create or replace FUNCTION fd_gentities() RETURNS trigger AS '
 BEGIN
  INSERT INTO lentities_history(_operation, id, remarks)
      VALUES (''D'', OLD.id, NULL);
  DELETE FROM strings WHERE id=OLD.remarks OR id=OLD.name OR
id=OLD.address;
  RETURN OLD;
  END;
 ' LANGUAGE 'plpgsql';

Checked table  lentities_history seems OK.
------- Comment #1 From Antonios Christofides 2005-03-28 10:15:15 EET (UTC+02:00) -------
This bug appears to be because of a typo in function fd_gentities: it should
say
"INSERT INTO gentities_history" instead of "INSERT INTO lentities_history". The
above fix is incorrect, it would create a big mess in the history tables.

Bug 56

Summary: Attempting to delete a station fails due to constraint fk_timeseries_instruments_instr
Product: openmeteo Reporter: Antonios Christofides <anthony@itia.ntua.gr>
Component: StationAssignee: Virtual user for showing unassigned bugs <nobody@itia.ntua.gr>
Status: NEW QA Contact: Antonios Christofides <anthony@itia.ntua.gr>
Severity: major    
Priority: P2    
Version: unspecified   
Hardware: PC   
OS: Linux   
Whiteboard:

Description:   Opened: 2005-03-28 10:18 EET (UTC+02:00)
I attempt to delete a station and get the following message:

ERROR: update or delete on "instruments" violates foreign key constraint
"fk_timeseries_instruments_instr" on "timeseries_instruments"
DETAIL: Key (id)=(2) is still referenced from table "timeseries_instruments".
CONTEXT: SQL statement "DELETE FROM ONLY "public"."instruments" WHERE "station"
= $1"

Bug 57

Summary: Syntax error in data.tmpl
Product: openmeteo Reporter: Antonios Christofides <anthony@itia.ntua.gr>
Component: DataAssignee: Virtual user for showing unassigned bugs <nobody@itia.ntua.gr>
Status: NEW QA Contact: Antonios Christofides <anthony@itia.ntua.gr>
Severity: normal    
Priority: P2 CC: vzorbas@dblab.ntua.gr
Version: unspecified   
Hardware: PC   
OS: Linux   
Whiteboard:

Description:   Opened: 2005-04-11 10:26 EET (UTC+02:00)
Reportedly a "#end def" is missing from the last line of data.tmpl, which
prevents it from compiling.

Bug 58

Summary: Create installation system for autoupdate
Product: openmeteo Reporter: Antonios Christofides <anthony@itia.ntua.gr>
Component: autoupdateAssignee: Antonios Christofides <anthony@itia.ntua.gr>
Status: NEW QA Contact: Nikos Mamassis <nikos@itia.ntua.gr>
Severity: normal    
Priority: P2    
Version: unspecified   
Hardware: PC   
OS: Linux   
Whiteboard:

Description:   Opened: 2005-04-11 10:30 EET (UTC+02:00)
Autoupdate needs a Makefile to:
  * Compile the manual.
  * Install manual and program in needed directories.
  * Possibly also check for dependencies, such as needed python modules
    and needed programs.

Bug 59

Summary: Change todos to unix2dos
Product: openmeteo Reporter: Antonios Christofides <anthony@itia.ntua.gr>
Component: DataAssignee: Virtual user for showing unassigned bugs <nobody@itia.ntua.gr>
Status: NEW QA Contact: Antonios Christofides <anthony@itia.ntua.gr>
Severity: normal    
Priority: P2 CC: vzorbas@dblab.ntua.gr
Version: unspecified   
Hardware: PC   
OS: Linux   
Whiteboard:

Description:   Opened: 2005-04-11 10:40 EET (UTC+02:00)
"todos" is used, but some distributions, such as SuSE 9.2, don't have it, they
have unix2dos instead. Debian sarge has both, unix2dos being a symlink to todos.

Bug 60

Summary: Check timeseries before inserting it to database
Product: openmeteo Reporter: Antonios Christofides <anthony@itia.ntua.gr>
Component: autoupdateAssignee: Antonios Christofides <anthony@itia.ntua.gr>
Status: NEW QA Contact: Nikos Mamassis <nikos@itia.ntua.gr>
Severity: enhancement    
Priority: P2 CC: vzorbas@dblab.ntua.gr
Version: unspecified   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on: 61    
Bug Blocks:    

Description:   Opened: 2005-04-11 10:53 EET (UTC+02:00)
Sometimes it so happens that the raw file is not in chronological order, for
example due to a logger clock error. Autoupdate does not understand that, and it
may insert the data to the database, which will cause problems later.

Bug 61

Summary: Add option to check file
Product: openmeteo Reporter: Antonios Christofides <anthony@itia.ntua.gr>
Component: timeseriesAssignee: Antonios Christofides <anthony@itia.ntua.gr>
Status: NEW QA Contact: Antonios Christofides <anthony@itia.ntua.gr>
Severity: enhancement    
Priority: P2 CC: vzorbas@dblab.ntua.gr
Version: unspecified   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on:    
Bug Blocks: 60    

Description:   Opened: 2005-04-11 10:55 EET (UTC+02:00)
Sometimes it is needed to just check that a file is OK (in chronological
order).
"timeseries" already does that, but it lacks an option to do only that.