opensuse:apport-opensuse-crashdb.git
8 years agoremove report_versions
Stephan Kulow [Tue, 8 Jun 2010 09:26:31 +0000 (11:26 +0200)]
remove report_versions

8 years agoremove acts_as_versioned
Stephan Kulow [Tue, 8 Jun 2010 09:24:45 +0000 (11:24 +0200)]
remove acts_as_versioned

8 years agoput the keys into an extra table
Stephan Kulow [Tue, 8 Jun 2010 09:05:17 +0000 (11:05 +0200)]
put the keys into an extra table

8 years agosplit the report into lines
Stephan Kulow [Tue, 8 Jun 2010 08:21:53 +0000 (10:21 +0200)]
split the report into lines

8 years agowe may need to recheck if we should transfer coredump or not,
Stephan Kulow [Mon, 7 Jun 2010 19:12:09 +0000 (21:12 +0200)]
we may need to recheck if we should transfer coredump or not,
but for now the reporters do

8 years agolook for uuid first, then id
Stephan Kulow [Mon, 7 Jun 2010 15:59:30 +0000 (17:59 +0200)]
look for uuid first, then id

8 years agofix deployment
Stephan Kulow [Mon, 7 Jun 2010 11:50:09 +0000 (13:50 +0200)]
fix deployment

8 years agomake it use new bento theme
Stephan Kulow [Mon, 7 Jun 2010 11:34:59 +0000 (13:34 +0200)]
make it use new bento theme

8 years agoadd deployment script
Stephan Kulow [Mon, 7 Jun 2010 08:29:33 +0000 (10:29 +0200)]
add deployment script

8 years agofirst look if it's an uuid, then check for id
Stephan Kulow [Thu, 4 Mar 2010 15:11:01 +0000 (16:11 +0100)]
first look if it's an uuid, then check for id

8 years ago- use exception_notification as gem
Stephan Kulow [Wed, 3 Mar 2010 09:48:35 +0000 (10:48 +0100)]
- use exception_notification as gem

8 years ago- "port" to rails 2.3.5
Stephan Kulow [Wed, 3 Mar 2010 09:43:48 +0000 (10:43 +0100)]
- "port" to rails 2.3.5
- add some ignores

8 years agoAdd acts_as_versioned as a submodule
Jan Blunck [Mon, 21 Sep 2009 09:25:20 +0000 (11:25 +0200)]
Add acts_as_versioned as a submodule

Signed-off-by: Jan Blunck <jblunck@suse.de>
8 years agoAdd exception_notification as a submodule
Jan Blunck [Mon, 21 Sep 2009 09:14:47 +0000 (11:14 +0200)]
Add exception_notification as a submodule

Signed-off-by: Jan Blunck <jblunck@suse.de>
8 years agoDevelopment: don't run ExceptionNotifier in development environment
Jan Blunck [Mon, 21 Sep 2009 08:58:59 +0000 (10:58 +0200)]
Development: don't run ExceptionNotifier in development environment

Signed-off-by: Jan Blunck <jblunck@suse.de>
9 years agoReportController: Remove dead code
Jan Blunck [Thu, 26 Feb 2009 09:23:47 +0000 (09:23 +0000)]
ReportController: Remove dead code

There are no users of is_log? and log_split.

Signed-off-by: Jan Blunck <jblunck@suse.de>
git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@47 e17c61c6-bb11-11dd-b423-6fa431a5bf9f

9 years agoDRY up report templates
Jan Blunck [Thu, 26 Feb 2009 09:23:45 +0000 (09:23 +0000)]
DRY up report templates

The index and the search action can use the same template.

Signed-off-by: Jan Blunck <jblunck@suse.de>
git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@46 e17c61c6-bb11-11dd-b423-6fa431a5bf9f

9 years agoReport#show: display different version
Jan Blunck [Thu, 26 Feb 2009 09:23:44 +0000 (09:23 +0000)]
Report#show: display different version

The show method displays the different versions. Authenticated users are
able to revert and destroy versions as well.

Signed-off-by: Jan Blunck <jblunck@suse.de>
git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@45 e17c61c6-bb11-11dd-b423-6fa431a5bf9f

9 years agoReport: acts_as_versioned
Jan Blunck [Thu, 26 Feb 2009 09:23:42 +0000 (09:23 +0000)]
Report: acts_as_versioned

Let the report model act as versioned.

Signed-off-by: Jan Blunck <jblunck@suse.de>
git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@44 e17c61c6-bb11-11dd-b423-6fa431a5bf9f

9 years agoDestroy reports by id or uuid attribute
Jan Blunck [Thu, 26 Feb 2009 09:23:41 +0000 (09:23 +0000)]
Destroy reports by id or uuid attribute

Signed-off-by: Jan Blunck <jblunck@suse.de>
git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@43 e17c61c6-bb11-11dd-b423-6fa431a5bf9f

9 years agoReport: Add update method
Jan Blunck [Thu, 26 Feb 2009 09:23:39 +0000 (09:23 +0000)]
Report: Add update method

Added an update method to the report controller to update uploaded reports.
Rename curl-test.sh to curl-new.sh and add curl-update.sh to test the
updating of a report.

Signed-off-by: Jan Blunck <jblunck@suse.de>
git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@42 e17c61c6-bb11-11dd-b423-6fa431a5bf9f

9 years agoAdd acts_as_versioned and exception_notification plugins
Jan Blunck [Thu, 26 Feb 2009 09:23:37 +0000 (09:23 +0000)]
Add acts_as_versioned and exception_notification plugins

Signed-off-by: Jan Blunck <jblunck@suse.de>
git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@41 e17c61c6-bb11-11dd-b423-6fa431a5bf9f

9 years agoBe stricter on received report fields and UUID
Jan Blunck [Tue, 24 Feb 2009 21:20:08 +0000 (21:20 +0000)]
Be stricter on received report fields and UUID

Don't accept reports with CoreDump or UnreportableReason fields. Enforce
that the reports have Title, ExecutableBuildId and Stacktrace fields. Don't
accept the same report twice (same UUID).

Signed-off-by: Jan Blunck <jblunck@suse.de>
git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@40 e17c61c6-bb11-11dd-b423-6fa431a5bf9f

9 years agoFix CrashLog class filename
Jan Blunck [Tue, 24 Feb 2009 21:20:07 +0000 (21:20 +0000)]
Fix CrashLog class filename

The correct filename is crash_log.rb instead of crash_log_parser.rb.

Signed-off-by: Jan Blunck <jblunck@suse.de>
git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@39 e17c61c6-bb11-11dd-b423-6fa431a5bf9f

9 years agoCrashLog: Check for pending last multiline key
Jan Blunck [Tue, 24 Feb 2009 21:20:05 +0000 (21:20 +0000)]
CrashLog: Check for pending last multiline key

If the last key in a report is a multiline key we forgot to add it to the
report.

Signed-off-by: Jan Blunck <jblunck@suse.de>
git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@38 e17c61c6-bb11-11dd-b423-6fa431a5bf9f

9 years agoCrashLog: Don't strip newlines
Jan Blunck [Tue, 24 Feb 2009 21:20:03 +0000 (21:20 +0000)]
CrashLog: Don't strip newlines

Don't strip newlines when parsing reports.

Signed-off-by: Jan Blunck <jblunck@suse.de>
git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@37 e17c61c6-bb11-11dd-b423-6fa431a5bf9f

9 years agoRefactor Report model: use composed_of :content
Jan Blunck [Tue, 24 Feb 2009 21:20:01 +0000 (21:20 +0000)]
Refactor Report model: use composed_of :content

Use composed_of :content instead of the parsed hash. This makes it more
convenient to work with the report for the rest of the application.

Signed-off-by: Jan Blunck <jblunck@suse.de>
git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@36 e17c61c6-bb11-11dd-b423-6fa431a5bf9f

9 years agoAdd rake task to clear sessions from DB
Jan Blunck [Mon, 23 Feb 2009 14:05:55 +0000 (14:05 +0000)]
Add rake task to clear sessions from DB

Actually stolen from the openFATE project.

Signed-off-by: Jan Blunck <jblunck@suse.de>
git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@35 e17c61c6-bb11-11dd-b423-6fa431a5bf9f

9 years agoAdd crashdb title image
Jan Blunck [Fri, 20 Feb 2009 15:15:40 +0000 (15:15 +0000)]
Add crashdb title image

Artwork by Robert Lihm <rlihm@suse.de>

Signed-off-by: Jan Blunck <jblunck@suse.de>
git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@34 e17c61c6-bb11-11dd-b423-6fa431a5bf9f

9 years agoRefactor Report.search()
Jan Blunck [Fri, 20 Feb 2009 15:12:12 +0000 (15:12 +0000)]
Refactor Report.search()

The refactored search() method is much cleaner. DRY.

Signed-off-by: Jan Blunck <jblunck@suse.de>
git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@33 e17c61c6-bb11-11dd-b423-6fa431a5bf9f

9 years agoRedirect to index if nothing is found
Jan Blunck [Fri, 20 Feb 2009 15:12:10 +0000 (15:12 +0000)]
Redirect to index if nothing is found

If we don't find an entry for the given id or uuid return to index page and
set an appropriate flash notice.

Signed-off-by: Jan Blunck <jblunck@suse.de>
git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@32 e17c61c6-bb11-11dd-b423-6fa431a5bf9f

9 years agoAdd exception_notification plugin
Jan Blunck [Fri, 20 Feb 2009 15:12:08 +0000 (15:12 +0000)]
Add exception_notification plugin

For UnknownAction and RoutingError problems still display the 404 page but for
exceptions a notification mail is sent.

Signed-off-by: Jan Blunck <jblunck@suse.de>
git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@31 e17c61c6-bb11-11dd-b423-6fa431a5bf9f

9 years ago- no longer supported
Marcus Rueckert [Mon, 26 Jan 2009 12:39:59 +0000 (12:39 +0000)]
- no longer supported

git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@30 e17c61c6-bb11-11dd-b423-6fa431a5bf9f

9 years agoFix broken image links
Jan Blunck [Fri, 23 Jan 2009 16:33:12 +0000 (16:33 +0000)]
Fix broken image links

The links for the images in the openSUSE navigation list where pointing to
the local host.

Signed-off-by: Jan Blunck <jblunck@suse.de>
git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@29 e17c61c6-bb11-11dd-b423-6fa431a5bf9f

9 years agoDon't return test report in ReportController::search
Jan Blunck [Fri, 23 Jan 2009 15:05:31 +0000 (15:05 +0000)]
Don't return test report in ReportController::search

We skip the report with the uuid of 32*"0".

Signed-off-by: Jan Blunck <jblunck@suse.de>
git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@28 e17c61c6-bb11-11dd-b423-6fa431a5bf9f

9 years agoModify crashdb layout to look similar to build.o.o
Jan Blunck [Fri, 23 Jan 2009 15:05:29 +0000 (15:05 +0000)]
Modify crashdb layout to look similar to build.o.o

Here are the modifications to the blank template. This looks very similar to
the build.o.o layout because it is related to development and other technical
tasks.

Signed-off-by: Jan Blunck <jblunck@suse.de>
git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@27 e17c61c6-bb11-11dd-b423-6fa431a5bf9f

9 years agoUse blank_template/index_2cols.html as crashdb layout
Jan Blunck [Fri, 23 Jan 2009 15:05:28 +0000 (15:05 +0000)]
Use blank_template/index_2cols.html as crashdb layout

Use the openSUSE blank_template/index_2cols.html as the basic layout for the
crashdb layout (taken from  https://forgesvn1.novell.com/svn/opensuse/).

Signed-off-by: Jan Blunck <jblunck@suse.de>
git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@26 e17c61c6-bb11-11dd-b423-6fa431a5bf9f

9 years agoAdd curl testcase
Jan Blunck [Fri, 23 Jan 2009 15:05:26 +0000 (15:05 +0000)]
Add curl testcase

Add curl testcase script to upload reports to the local running crashdb.

Signed-off-by: Jan Blunck <jblunck@suse.de>
git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@25 e17c61c6-bb11-11dd-b423-6fa431a5bf9f

9 years agoShow reports by Date
Jan Blunck [Wed, 21 Jan 2009 10:06:23 +0000 (10:06 +0000)]
Show reports by Date

Display the reports on the front page by reverse sorting them by date.

Signed-off-by: Jan Blunck <jblunck@suse.de>
git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@24 e17c61c6-bb11-11dd-b423-6fa431a5bf9f

9 years ago- make sure we will not check in database.yml again
Marcus Rueckert [Tue, 20 Jan 2009 16:24:47 +0000 (16:24 +0000)]
- make sure we will not check in database.yml again

git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@23 e17c61c6-bb11-11dd-b423-6fa431a5bf9f

9 years agoSet RAILS_GEM_VERSION = '2.2.2'
Jan Blunck [Tue, 20 Jan 2009 16:08:45 +0000 (16:08 +0000)]
Set RAILS_GEM_VERSION = '2.2.2'

Signed-off-by: Jan Blunck <jblunck@suse.de>
git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@22 e17c61c6-bb11-11dd-b423-6fa431a5bf9f

9 years ago?\008Let content column be of type longtext instead of mediumtext
Jan Blunck [Tue, 20 Jan 2009 16:08:44 +0000 (16:08 +0000)]
?\008Let content column be of type longtext instead of mediumtext

This gives us enough space to hold even very big crash reports.

Signed-off-by: Jan Blunck <jblunck@suse.de>
git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@21 e17c61c6-bb11-11dd-b423-6fa431a5bf9f

9 years agoChange content to be of type mediumtext (2^24 bytes)
Jan Blunck [Tue, 20 Jan 2009 15:39:17 +0000 (15:39 +0000)]
Change content to be of type mediumtext (2^24 bytes)

This should work around the problem that some reports are bigger than 64k.

Signed-off-by: Jan Blunck <jblunck@suse.de>
git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@20 e17c61c6-bb11-11dd-b423-6fa431a5bf9f

9 years agoForbid the removal of the last user
Jan Blunck [Tue, 20 Jan 2009 15:39:16 +0000 (15:39 +0000)]
Forbid the removal of the last user

If the last user is removed raise an exception.

Signed-off-by: Jan Blunck <jblunck@suse.de>
git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@19 e17c61c6-bb11-11dd-b423-6fa431a5bf9f

9 years agoHTML template cleanup
Jan Blunck [Tue, 20 Jan 2009 15:39:15 +0000 (15:39 +0000)]
HTML template cleanup

Remove the users template and add the notice flash to the default template.

Signed-off-by: Jan Blunck <jblunck@suse.de>
git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@18 e17c61c6-bb11-11dd-b423-6fa431a5bf9f

9 years agoAdd Maintainer Mode
Jan Blunck [Tue, 20 Jan 2009 15:39:13 +0000 (15:39 +0000)]
Add Maintainer Mode

This adds access control to all controllers. For certain tasks the user
has to login, e.g. to destroy a report. This should be extended later.
There is one known bug: an authenticated user can delete the last user and
therefore is able to lock himself out.

Signed-off-by: Jan Blunck <jblunck@suse.de>
git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@17 e17c61c6-bb11-11dd-b423-6fa431a5bf9f

9 years agoAdd User model
Jan Blunck [Tue, 20 Jan 2009 15:39:11 +0000 (15:39 +0000)]
Add User model

This is the first part of the maintainer interface for the crashdb.

Signed-off-by: Jan Blunck <jblunck@suse.de>
git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@16 e17c61c6-bb11-11dd-b423-6fa431a5bf9f

9 years agoCleanup of html templates
Jan Blunck [Tue, 20 Jan 2009 15:39:09 +0000 (15:39 +0000)]
Cleanup of html templates

Translate everything into English. Remove unnecessary request template.

Signed-off-by: Jan Blunck <jblunck@suse.de>
git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@15 e17c61c6-bb11-11dd-b423-6fa431a5bf9f

9 years agoFix free text search
Jan Blunck [Tue, 20 Jan 2009 15:39:08 +0000 (15:39 +0000)]
Fix free text search

Due to the last commit the free text search was broken.

Signed-off-by: Jan Blunck <jblunck@suse.de>
git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@14 e17c61c6-bb11-11dd-b423-6fa431a5bf9f

9 years agoAdd package search
Jan Blunck [Tue, 20 Jan 2009 15:39:07 +0000 (15:39 +0000)]
Add package search

Add package search to product and text search.

Signed-off-by: Jan Blunck <jblunck@suse.de>
git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@13 e17c61c6-bb11-11dd-b423-6fa431a5bf9f

9 years agoAdd product and/or text search. E.g.:
Jan Blunck [Tue, 20 Jan 2009 15:39:05 +0000 (15:39 +0000)]
Add product and/or text search. E.g.:
 /report/search/pidgin - search for pidgin
 /report/product/SUSE%20LINUX%2011.1 - search for reports from SUSE LINUX 11.1
 /report/product/SUSE%20LINUX%2011.1/pidgin - search for pidgin only on product

Signed-off-by: Jan Blunck <jblunck@suse.de>
git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@12 e17c61c6-bb11-11dd-b423-6fa431a5bf9f

9 years agoRenamed the Log model to Report. This matches the naming in the client side
Jan Blunck [Tue, 20 Jan 2009 15:39:03 +0000 (15:39 +0000)]
Renamed the Log model to Report. This matches the naming in the client side
code. Besides that the old name conflicts with the WEBrick Log class.

Signed-off-by: Jan Blunck <jblunck@suse.de>
git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@11 e17c61c6-bb11-11dd-b423-6fa431a5bf9f

9 years ago- reconfigured production database settings
Andreas Bauer [Fri, 28 Nov 2008 12:53:03 +0000 (12:53 +0000)]
- reconfigured production database settings

git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@10 e17c61c6-bb11-11dd-b423-6fa431a5bf9f

9 years ago- fixed validation
Andreas Bauer [Fri, 28 Nov 2008 12:14:09 +0000 (12:14 +0000)]
- fixed validation

git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@9 e17c61c6-bb11-11dd-b423-6fa431a5bf9f

9 years ago- basic log validation (check for ProblemType, Date and Uname keys)
Andreas Bauer [Thu, 27 Nov 2008 18:35:10 +0000 (18:35 +0000)]
- basic log validation (check for ProblemType, Date and Uname keys)
- moved ignore check to model

git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@8 e17c61c6-bb11-11dd-b423-6fa431a5bf9f

9 years ago- reinitialize multiline_value after storing it
Andreas Bauer [Thu, 27 Nov 2008 16:52:53 +0000 (16:52 +0000)]
- reinitialize multiline_value after storing it
- support base64 values

git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@7 e17c61c6-bb11-11dd-b423-6fa431a5bf9f

9 years ago- uuid is generated when trying to access it instead of
Andreas Bauer [Thu, 27 Nov 2008 16:27:20 +0000 (16:27 +0000)]
- uuid is generated when trying to access it instead of
  before creating the record
- added report with uuid "0"*32 for testing purposes
- test report isn't displayed in report list
- removed report deletion from report list

git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@6 e17c61c6-bb11-11dd-b423-6fa431a5bf9f

9 years ago- disabled stacktrace of 404 exceptions
Andreas Bauer [Thu, 27 Nov 2008 14:24:55 +0000 (14:24 +0000)]
- disabled stacktrace of 404 exceptions
- added exception catch-all method

git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@5 e17c61c6-bb11-11dd-b423-6fa431a5bf9f

9 years ago- initial checkin
Andreas Bauer [Wed, 26 Nov 2008 17:43:09 +0000 (17:43 +0000)]
- initial checkin

git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@4 e17c61c6-bb11-11dd-b423-6fa431a5bf9f

9 years agocreated
Peter Pöml [Tue, 25 Nov 2008 16:55:36 +0000 (16:55 +0000)]
created

git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@1 e17c61c6-bb11-11dd-b423-6fa431a5bf9f