Opened 14 years ago

Closed 14 years ago

#284 closed enhancement (duplicate)

Near-useless error

Reported by: osjonathan Owned by: geonetwork-devel@…
Priority: major Milestone: v2.7.0
Component: General Version: v2.6.0RC1
Keywords: Cc:

Description

Today I loud up my dev geonetwork to confirm some stuff for one of my other bug reports for you. The first thing I do is click "search" with a blank field, this should return public templates of course. What I get instead is two javascript alert messages. The first says (sans quotes): "undefined" The second says (with trailing brace): "ERROR)"

I look at the console and see the usual error gibberish stuff and start panicing because I'm 100% sure I haven't changed in several days. Long story short I eventually notice an INFO level that's saying it failed to open a db connection. Turns out that my database (Oracle) is offline, so nothing to do with GeoNetwork.

But this brings up two issues:

a) The user-level error was 100% useless. Two javascript alerts mean nothing. May I suggest a message like: "Database connection could not be established. <br \> Please contact your administrator. We apologise for the inconvenience."

b) The administrator-level error isn't much more useful. Everything that is an "ERROR" level event in the console is gibberish - I just got lucky noticing the "INFO" level event which actually appears before the "Started... localhost:8080". Administrator-level errors would be nice to allow fixing of any issues such as lack of database connection etc. (I realise the errors at present are developer-level). I suppose this could be considered an "enhancement" instead of a bug.

Semi-relatedly - Unfortunately until I get my Oracle fixed I can't check some of the issues relating to bugs I've reported that you folks are studiously working through (good work btw :-) ).

Change History (4)

comment:1 by Fxp, 14 years ago

Type: defectenhancement

comment:2 by ticheler, 14 years ago

Milestone: v2.6.0v2.6.1

comment:3 by heikki, 14 years ago

Milestone: v2.6.1v2.6.2

comment:4 by fxp, 14 years ago

Milestone: v2.6.3v2.7.0
Resolution: duplicate
Status: newclosed

See #452

Note: See TracTickets for help on using tickets.