pgweb.git
12 years agoMake the mailinglist subscription form csrf exempt, so it works again
Magnus Hagander [Sun, 11 Nov 2012 15:12:09 +0000 (16:12 +0100)]
Make the mailinglist subscription form csrf exempt, so it works again

12 years agoCSRF verification failure now returns HTTP 403 Forbidden, not 200 OK
Marti Raudsepp [Wed, 7 Nov 2012 21:20:09 +0000 (23:20 +0200)]
CSRF verification failure now returns HTTP 403 Forbidden, not 200 OK

12 years agoFix small bug in api_varnish_purge error path
Marti Raudsepp [Wed, 7 Nov 2012 21:14:21 +0000 (23:14 +0200)]
Fix small bug in api_varnish_purge error path

HttpServerError is a function that returns HttpResponse, not an
exception.

12 years agoUpdate @ssl_required decorator to play nice with other decorators
Marti Raudsepp [Wed, 7 Nov 2012 21:11:21 +0000 (23:11 +0200)]
Update @ssl_required decorator to play nice with other decorators

The decorator now retains all attributes of the original view and adds a
new 'view.ssl_required = True' attribute.

12 years agoFix CSRF verification in /admin/mergeorg/ and /admin/purge/
Marti Raudsepp [Wed, 7 Nov 2012 20:01:33 +0000 (22:01 +0200)]
Fix CSRF verification in /admin/mergeorg/ and /admin/purge/

All templates using {% csrf_token %} need to be rendered with a
RequestContext.

This reverts most of commit 58a08f25901079c309d0713223e12c223b413d2c

Also permit POST requests to /search/ -- these aren't relevant to the
site itself, but this used to be allowed before.

12 years agoAdd specific view for handling CSRF failures
Magnus Hagander [Wed, 7 Nov 2012 19:57:22 +0000 (20:57 +0100)]
Add specific view for handling CSRF failures

This generates the error in a bit nicer way inside our framework,
instead of throwing the default django error.

12 years agoRemove extra closing tag
Magnus Hagander [Wed, 7 Nov 2012 19:57:06 +0000 (20:57 +0100)]
Remove extra closing tag

12 years agoMake links to unsupported versions be rel=nofollow
Magnus Hagander [Wed, 7 Nov 2012 19:29:42 +0000 (20:29 +0100)]
Make links to unsupported versions be rel=nofollow

This should hopefully decrease their scoring a bit in external
search engines.

12 years agoRemove csrf from more views that were broken
Magnus Hagander [Wed, 7 Nov 2012 17:43:45 +0000 (18:43 +0100)]
Remove csrf from more views that were broken

12 years agoExclude CSRF token and check for the bug submission form
Magnus Hagander [Wed, 7 Nov 2012 17:34:47 +0000 (18:34 +0100)]
Exclude CSRF token and check for the bug submission form

12 years agoMore complete version of the move of the password views
Magnus Hagander [Mon, 5 Nov 2012 18:39:01 +0000 (19:39 +0100)]
More complete version of the move of the password views

The previous one missed a number of parameters which caused it to throw
exceptions when used.

12 years agoMake all steps of password reset run over SSL
Magnus Hagander [Mon, 5 Nov 2012 18:19:13 +0000 (19:19 +0100)]
Make all steps of password reset run over SSL

This requires the creation of views with @require_ssl set that calls
into the core django views. Otherwise, when deployed in production,
the middleware will catch these requests and direct them out of SSL.

This has always been a problem, but it broke probably when we turned on
CSRF protection, since the cookie required is no longer passed through.

12 years agoEnable CSRF protection by default
Magnus Hagander [Mon, 5 Nov 2012 13:10:39 +0000 (14:10 +0100)]
Enable CSRF protection by default

Most of these forms look pretty benign, but the user profile form, which
includes an SSH key field, certainly needs to be protected.

The survey form is unprotected because it's served over insecure HTTP
and the Varnish proxy strips cookies, which is required by the builtin
CSRF protection.

Marti Raudsepp

12 years agoTry not to crash the ftp browser when there is a directory named README
Magnus Hagander [Mon, 29 Oct 2012 20:53:05 +0000 (21:53 +0100)]
Try not to crash the ftp browser when there is a directory named README

13 years agoAdd (protected) API to queue varnish purge requests
Magnus Hagander [Wed, 3 Oct 2012 12:19:28 +0000 (14:19 +0200)]
Add (protected) API to queue varnish purge requests

We want an API for this so they end up in the queue with all the other
requests, and get delivered to all our frontends without needing each node
to know about which frontends exist.

13 years agoAdd support for varnish purging based on expressions
Magnus Hagander [Wed, 3 Oct 2012 10:45:06 +0000 (12:45 +0200)]
Add support for varnish purging based on expressions

Previously we would only purge based on URLs, but some of the upcoming
new work requires arbitrary expression purging.

NOTE! Require the creation of the new SQL procecure in the database,
either from varnish.sql or varnish_local.sql depending on if it's prod
or dev.

13 years agoFix the What's New link.
Jonathan Katz [Tue, 25 Sep 2012 12:25:50 +0000 (13:25 +0100)]
Fix the What's New link.

13 years agoRemove HTML from news archive clips
Magnus Hagander [Mon, 24 Sep 2012 10:55:29 +0000 (12:55 +0200)]
Remove HTML from news archive clips

Would render really badly when we happened to get a header or numbered
list tag or somthing like that. Keep the clips to simple text instead,
while of course keeping the HTML in the main page.

13 years agoWhen loading the current version of docs, also purge /current/
Magnus Hagander [Mon, 24 Sep 2012 10:38:49 +0000 (12:38 +0200)]
When loading the current version of docs, also purge /current/

13 years agoUpdate shoutbox for new releases
Magnus Hagander [Mon, 24 Sep 2012 10:35:44 +0000 (12:35 +0200)]
Update shoutbox for new releases

13 years agoSet shorter cache on the sponsor page, so they rotate faster
Magnus Hagander [Wed, 19 Sep 2012 16:11:02 +0000 (11:11 -0500)]
Set shorter cache on the sponsor page, so they rotate faster

13 years agoRandomize order of sponsors, instead of using alphabetical order
Magnus Hagander [Wed, 19 Sep 2012 16:06:12 +0000 (11:06 -0500)]
Randomize order of sponsors, instead of using alphabetical order

Obviously just random within each group, with the groups still being
sorted the same way as before.

13 years agourgs - if you commit something ending in ".jpg" better make sure it is actually one...
Stefan Kaltenbrunner [Mon, 17 Sep 2012 18:07:03 +0000 (20:07 +0200)]
urgs - if you commit something ending in ".jpg" better make sure it is actually one...

13 years agoconova changed its CI more than 3 years ago - update the logo to reflect that
Stefan Kaltenbrunner [Mon, 17 Sep 2012 18:02:11 +0000 (20:02 +0200)]
conova changed its CI more than 3 years ago - update the logo to reflect that

13 years agoUpdate the hub.org logo, and add Rackspace.
Dave Page [Mon, 17 Sep 2012 13:07:48 +0000 (08:07 -0500)]
Update the hub.org logo, and add Rackspace.

13 years agoRemove sponsorship level descriptions.
Dave Page [Mon, 17 Sep 2012 12:59:42 +0000 (07:59 -0500)]
Remove sponsorship level descriptions.

13 years agoMore sponsor logo updates.
Dave Page [Sat, 15 Sep 2012 16:16:48 +0000 (12:16 -0400)]
More sponsor logo updates.

13 years agoFix logo width.
Dave Page [Sat, 15 Sep 2012 16:06:46 +0000 (12:06 -0400)]
Fix logo width.

13 years agoShrink the PGX logo to a slightly more usable size.
Dave Page [Sat, 15 Sep 2012 15:57:40 +0000 (11:57 -0400)]
Shrink the PGX logo to a slightly more usable size.

13 years agoMore sponsor logos.
Dave Page [Sat, 15 Sep 2012 15:56:24 +0000 (11:56 -0400)]
More sponsor logos.

13 years agoAdd PGX logo
Dave Page [Sat, 15 Sep 2012 15:47:08 +0000 (11:47 -0400)]
Add PGX logo

13 years agoUpdate SRA logo
Dave Page [Sat, 15 Sep 2012 15:44:55 +0000 (11:44 -0400)]
Update SRA logo

13 years agoUpdate EDB logo
Dave Page [Sat, 15 Sep 2012 15:43:10 +0000 (11:43 -0400)]
Update EDB logo

13 years agoFirst sponsor updates
Dave Page [Sat, 15 Sep 2012 15:38:19 +0000 (11:38 -0400)]
First sponsor updates

13 years agoRemove pgfoundry reference from frontpage
Magnus Hagander [Thu, 13 Sep 2012 14:09:42 +0000 (16:09 +0200)]
Remove pgfoundry reference from frontpage

We still have references elsehwere, but we don't want to push
"prime location" links there when it's in it's current state.
Per discussion.

13 years agoFix link for ukranian
Magnus Hagander [Mon, 10 Sep 2012 12:26:21 +0000 (14:26 +0200)]
Fix link for ukranian

13 years agoAdd small tool to run w3c validator on local pages before deployment
Magnus Hagander [Mon, 10 Sep 2012 12:02:19 +0000 (14:02 +0200)]
Add small tool to run w3c validator on local pages before deployment

13 years agoRedirect /downloads/ to /download/
Magnus Hagander [Mon, 10 Sep 2012 11:16:18 +0000 (13:16 +0200)]
Redirect /downloads/ to /download/

Seems Berkus managed to push a broken link in the press release...

13 years agoUpdate beta and roadmap pages for 9.3
Magnus Hagander [Mon, 10 Sep 2012 11:05:57 +0000 (13:05 +0200)]
Update beta and roadmap pages for 9.3

13 years agoToo much copy/paste makes for wrong links to PDFs. Oops.
Magnus Hagander [Mon, 10 Sep 2012 10:58:27 +0000 (12:58 +0200)]
Too much copy/paste makes for wrong links to PDFs. Oops.

13 years agoFix broken HTML
Magnus Hagander [Mon, 10 Sep 2012 10:55:27 +0000 (12:55 +0200)]
Fix broken HTML

13 years agoDoc links updates for 9.2
Magnus Hagander [Mon, 10 Sep 2012 10:55:20 +0000 (12:55 +0200)]
Doc links updates for 9.2

13 years agoOops. Title should go in title field...
Magnus Hagander [Mon, 10 Sep 2012 10:26:53 +0000 (12:26 +0200)]
Oops. Title should go in title field...

13 years agoNew shoutbox for 9.2 from Josh Berkus, and updated link to news item
Magnus Hagander [Mon, 10 Sep 2012 10:24:35 +0000 (12:24 +0200)]
New shoutbox for 9.2 from Josh Berkus, and updated link to news item

13 years agoFix broken HTML in misc press files
Magnus Hagander [Mon, 10 Sep 2012 10:10:09 +0000 (12:10 +0200)]
Fix broken HTML in misc press files

13 years agoFix broken links in presskit
Magnus Hagander [Mon, 10 Sep 2012 10:09:58 +0000 (12:09 +0200)]
Fix broken links in presskit

13 years agoRegional contact list update
Magnus Hagander [Mon, 10 Sep 2012 08:49:31 +0000 (10:49 +0200)]
Regional contact list update

13 years agoPresskit and FAQ updates for 9.2
Magnus Hagander [Mon, 10 Sep 2012 08:46:40 +0000 (10:46 +0200)]
Presskit and FAQ updates for 9.2

Josh Berkus and a number of translators/regional contacts

13 years agoOops, documentation should not refer to RPMs that are not for production use
Magnus Hagander [Fri, 7 Sep 2012 07:51:24 +0000 (09:51 +0200)]
Oops, documentation should not refer to RPMs that are not for production use

My bad :(

13 years agoFix link
Magnus Hagander [Thu, 6 Sep 2012 16:41:04 +0000 (18:41 +0200)]
Fix link

Bruce Momjian

13 years agoReplace broken link to "Share your story"
Magnus Hagander [Wed, 5 Sep 2012 20:34:28 +0000 (22:34 +0200)]
Replace broken link to "Share your story"

13 years agoAdd back the backend flowchart to the website
Magnus Hagander [Tue, 4 Sep 2012 16:32:04 +0000 (18:32 +0200)]
Add back the backend flowchart to the website

Bruce Momjian, with surprisingly few modifications by me

13 years agoAdd form to search for git commit hashes
Magnus Hagander [Tue, 4 Sep 2012 13:05:57 +0000 (15:05 +0200)]
Add form to search for git commit hashes

13 years agoSmall changes, beta -> rc
Magnus Hagander [Mon, 27 Aug 2012 12:21:13 +0000 (14:21 +0200)]
Small changes, beta -> rc

13 years agoDon't include old ssh keys when new ones exist
Magnus Hagander [Tue, 21 Aug 2012 10:17:21 +0000 (12:17 +0200)]
Don't include old ssh keys when new ones exist

This would cause a UNIQUE violation on the git server...

13 years agoUpdates for new releases out today
Magnus Hagander [Fri, 17 Aug 2012 10:05:36 +0000 (12:05 +0200)]
Updates for new releases out today

Including security updates

13 years agoAdd description for postgres.app to the download page
Magnus Hagander [Wed, 15 Aug 2012 12:11:53 +0000 (14:11 +0200)]
Add description for postgres.app to the download page

Mattt Thompson

13 years agoAd dback links to OpenSCG cross-disto package downloads
Magnus Hagander [Fri, 10 Aug 2012 11:05:00 +0000 (13:05 +0200)]
Ad dback links to OpenSCG cross-disto package downloads

13 years agoMove headers into include files - no need for duplication
Magnus Hagander [Fri, 10 Aug 2012 10:43:18 +0000 (12:43 +0200)]
Move headers into include files - no need for duplication

13 years agoUpdate for 9.2b3
Dave Page [Mon, 6 Aug 2012 12:27:53 +0000 (13:27 +0100)]
Update for 9.2b3

13 years agoAdd the RPM signing key to the pgweb repository
Magnus Hagander [Thu, 12 Jul 2012 10:58:14 +0000 (12:58 +0200)]
Add the RPM signing key to the pgweb repository

This is done so people can get it using https, and verify the extra
trust.

13 years agoInclude listgroup sortkey in the JSON API
Magnus Hagander [Wed, 11 Jul 2012 16:05:28 +0000 (18:05 +0200)]
Include listgroup sortkey in the JSON API

13 years agoMake stackbuilder dependencies into a comma separated textfield
Magnus Hagander [Wed, 11 Jul 2012 09:42:18 +0000 (11:42 +0200)]
Make stackbuilder dependencies into a comma separated textfield

The "true dependencies" usign db relationships were too strict for
reality - multiple entries can have the same textid, and that's what
we need to depend on. Resolving it for platform is handled in the
StackBuilder client.

This update requires the following SQL to be run in the database:
DROP TABLE downloads_stackbuilderapp_dependencies;
ALTER TABLE downloads_stackbuilderapp ADD COLUMN txtdependencies varchar(1000) NOT NULL DEFAULT '';
ALTER TABLE downloads_stackbuilderapp ALTER COLUMN txtdependencies DROP DEFAULT;

Closes #167

13 years agoMake sure new_notification is actually in POST before we try to use it
Magnus Hagander [Fri, 6 Jul 2012 08:06:30 +0000 (10:06 +0200)]
Make sure new_notification is actually in POST before we try to use it

13 years agoPut sourcecode first in the snapshots page
Magnus Hagander [Sun, 1 Jul 2012 12:28:18 +0000 (14:28 +0200)]
Put sourcecode first in the snapshots page

Per comments from Josh Berkus

13 years agoRestructure download sections to be clearer
Magnus Hagander [Sun, 1 Jul 2012 12:25:32 +0000 (14:25 +0200)]
Restructure download sections to be clearer

In particular, split up the linux instructions into different pages
for different distributions, since they are very differnt, and in
general try to include more detail.

There are still some OSes that definitely need more info, but this
is more than we had before...

13 years agoSet verbose name on more organisation fields
Magnus Hagander [Fri, 29 Jun 2012 12:14:43 +0000 (14:14 +0200)]
Set verbose name on more organisation fields

13 years agoOne more spot missed when renaming organisation field
Magnus Hagander [Fri, 29 Jun 2012 12:13:03 +0000 (14:13 +0200)]
One more spot missed when renaming organisation field

13 years agoOverride builting delete_selected action with one that does notifies
Magnus Hagander [Tue, 26 Jun 2012 13:14:52 +0000 (15:14 +0200)]
Override builting delete_selected action with one that does notifies

This should fix the problem where notifications weren't sent for objects
being deleted through the "mass deletion" function in the list of objects.

Closes #121

13 years agoOops, missed a number of references to publisher :O
Magnus Hagander [Tue, 26 Jun 2012 12:59:35 +0000 (14:59 +0200)]
Oops, missed a number of references to publisher :O

13 years agoAdd missing comment
Magnus Hagander [Tue, 26 Jun 2012 12:50:30 +0000 (14:50 +0200)]
Add missing comment

13 years agoRename publisher->org in Product model
Magnus Hagander [Tue, 26 Jun 2012 12:32:13 +0000 (14:32 +0200)]
Rename publisher->org in Product model

This is requied to support notifications, and good for consistency
in general.

13 years agoRename organisation->org in ProfessionalService model
Magnus Hagander [Tue, 26 Jun 2012 12:25:38 +0000 (14:25 +0200)]
Rename organisation->org in ProfessionalService model

This is requied to support notifications, and good for consistency
in general.

13 years agoSupport PgAdmin classes that don't have markdown fields
Magnus Hagander [Tue, 26 Jun 2012 12:25:03 +0000 (14:25 +0200)]
Support PgAdmin classes that don't have markdown fields

13 years agoImplement ability for moderators to send notices to organisations
Magnus Hagander [Tue, 26 Jun 2012 12:11:22 +0000 (14:11 +0200)]
Implement ability for moderators to send notices to organisations

Notices entered will be sent to the organisations email address - so there
needs to be one (if not, the notification field doesn't show up).

Notifications also go in the database, and show up on each object so you
can see the previous history of it, and get emailed to the slaves list.

Finally, it's possible to reject-with-notification, in which case the
notification is sent off to the user and after that the object is deleted.
The notification history stays in the database, but is not linked anywhere
(but can be viewed from the admin interface on that model directly).
Unfortunately, this seems to cause double notifications to the slaves list,
but we'll have to live with that for now.

Closes #137

13 years agoProperly include superblock in news articles
Magnus Hagander [Tue, 26 Jun 2012 11:51:35 +0000 (13:51 +0200)]
Properly include superblock in news articles

In passing, use <h4> for the header to make it a bit more clear what's
going on.

13 years agoRename MarkdownPreviewAdmin to PgwebAdmin
Magnus Hagander [Tue, 26 Jun 2012 10:43:31 +0000 (12:43 +0200)]
Rename MarkdownPreviewAdmin to PgwebAdmin

This is in preparation for adding more functionality to it...

13 years agoRedirect interactive devel docs to static instead of giving error
Magnus Hagander [Wed, 13 Jun 2012 07:00:36 +0000 (09:00 +0200)]
Redirect interactive devel docs to static instead of giving error

Per suggestion from Josh Kupershmidt

13 years agoClarify Linux platform support for the installers.
Dave Page [Mon, 11 Jun 2012 19:06:26 +0000 (20:06 +0100)]
Clarify Linux platform support for the installers.

13 years agoClarify Mac platform support.
Dave Page [Mon, 11 Jun 2012 19:03:00 +0000 (20:03 +0100)]
Clarify Mac platform support.

13 years agoFix incorrect URL to software catalogue submission
Magnus Hagander [Sun, 10 Jun 2012 14:08:20 +0000 (16:08 +0200)]
Fix incorrect URL to software catalogue submission

13 years agoAdd information about OpenBSD packages/ports
Magnus Hagander [Sun, 10 Jun 2012 11:25:42 +0000 (13:25 +0200)]
Add information about OpenBSD packages/ports

13 years agoSet proper classes on tables of contributors
Magnus Hagander [Sun, 10 Jun 2012 11:20:01 +0000 (13:20 +0200)]
Set proper classes on tables of contributors

Should fix the missing rounded corners...

13 years agoAdd separator between supported and unsupported version links in docs.
Thom Brown [Wed, 6 Jun 2012 12:46:41 +0000 (13:46 +0100)]
Add separator between supported and unsupported version links in docs.

13 years agoFix XHTML syntax
Magnus Hagander [Tue, 5 Jun 2012 10:28:38 +0000 (12:28 +0200)]
Fix XHTML syntax

13 years agoMove </div> outside {%if%}, since it's opened outside the if...
Magnus Hagander [Tue, 5 Jun 2012 10:28:20 +0000 (12:28 +0200)]
Move </div> outside {%if%}, since it's opened outside the if...

13 years agoShow links to other versions of docs
Magnus Hagander [Tue, 5 Jun 2012 10:24:06 +0000 (12:24 +0200)]
Show links to other versions of docs

Main patch from Marti Raudsepp, but with some fairly extensive changes

13 years agoDetect HTML in markdown submission forms
Magnus Hagander [Tue, 5 Jun 2012 09:36:43 +0000 (11:36 +0200)]
Detect HTML in markdown submission forms

This will do simple html detection based on trivial regexps. If HTML is found,
it will replace it with HTML_REMOVED and also show a warning (in red color,
no less) that this is not permitted.

The actual filtering is still done server-side later, so the fact that these
regexps are trickable if you really want to doesn't matter...

Fixes #164

13 years agoFix name of pgcrypto module
Magnus Hagander [Mon, 4 Jun 2012 15:15:43 +0000 (17:15 +0200)]
Fix name of pgcrypto module

Reported by Peter E

13 years agoFix cut/paste error in URL
Magnus Hagander [Mon, 4 Jun 2012 10:20:29 +0000 (12:20 +0200)]
Fix cut/paste error in URL

13 years agoNew releases out, 9.1.4 and friends
Magnus Hagander [Mon, 4 Jun 2012 10:00:38 +0000 (12:00 +0200)]
New releases out, 9.1.4 and friends

13 years agoNew sizes for PDF files
Magnus Hagander [Mon, 4 Jun 2012 07:44:04 +0000 (09:44 +0200)]
New sizes for PDF files

13 years agoDescription of security vulns in new release
Magnus Hagander [Mon, 4 Jun 2012 07:43:37 +0000 (09:43 +0200)]
Description of security vulns in new release

13 years agoAdd generic PHP code for decryption/parsing
Magnus Hagander [Sun, 3 Jun 2012 10:29:02 +0000 (12:29 +0200)]
Add generic PHP code for decryption/parsing

In general, you're better off looking at the mediawiki plugin which
is a bit more complete..

13 years agoAdd a help text to communtity auth title
Magnus Hagander [Sun, 3 Jun 2012 10:26:33 +0000 (12:26 +0200)]
Add a help text to communtity auth title

I keep forgetting that it's end-user-visible myself, so I'm sure others
using it in the future could be equally confused :-)

13 years agoAdd community auth v2 provider for mediawiki
Magnus Hagander [Sun, 3 Jun 2012 10:20:40 +0000 (12:20 +0200)]
Add community auth v2 provider for mediawiki

13 years agoAdd feature matrix entry for 9.2, hide 7.4 for layout reasons
Magnus Hagander [Sun, 27 May 2012 19:07:06 +0000 (21:07 +0200)]
Add feature matrix entry for 9.2, hide 7.4 for layout reasons

Requires manual sql to be run on all installations:

BEGIN;
ALTER TABLE featurematrix_feature ADD COLUMN v92 int;
UPDATE featurematrix_feature SET v92=v91;
ALTER TABLE featurematrix_feature ALTER COLUMN v92 SET NOT NULL;
COMMIT;

13 years agoMake it possible to turn off visibilty of versions in the feature matrix
Magnus Hagander [Sun, 27 May 2012 19:05:36 +0000 (21:05 +0200)]
Make it possible to turn off visibilty of versions in the feature matrix

Turn the feature matrix fields into their own class and add a paramter
for visible_default to it. Turning this off will hide them from view.
In the future this could be expanded to make it dynamic, but for now let's
just stick to being able to statically hide them.

13 years agoReplace out of date list of technical features with link to the feature matrix
Magnus Hagander [Sun, 27 May 2012 09:09:34 +0000 (11:09 +0200)]
Replace out of date list of technical features with link to the feature matrix

Josh Kupershmidt

13 years agoAdd redmine community auth plugin
Magnus Hagander [Fri, 25 May 2012 11:10:58 +0000 (13:10 +0200)]
Add redmine community auth plugin

Written by Alex Shulgin (ash at commandprompt.com)