Magnus Hagander [Fri, 9 Mar 2018 20:58:49 +0000 (15:58 -0500)]
Update template configuration for newer django
Also fully backwards compatible
Magnus Hagander [Fri, 9 Mar 2018 20:36:02 +0000 (15:36 -0500)]
Update URL formats to be compatible with newer django
This format is supported both on the current 1.8 deployment and on newer
versions, so no incompatibilities to worry about.
Magnus Hagander [Fri, 9 Mar 2018 20:14:32 +0000 (15:14 -0500)]
Validate ssh keys as they are entered in the profile
In particular, reject ssh-dss keys here. They don't work anymore since
an upgrade, for security reasons, but there was not really a way for the
user to know why. With this they will at least know if when they try to
save or change the keys.
Jonathan S. Katz [Mon, 5 Mar 2018 14:34:38 +0000 (09:34 -0500)]
Update Recognized Conference guidelines
Update the recognized conference guidelines in the "Financial"
section to be clearer as to how to create a statement of how
financial proceeds are applied.
Magnus Hagander [Mon, 5 Mar 2018 12:10:50 +0000 (13:10 +0100)]
Support contacting archives search server over http
This makes it a lot easier to do local testing. Of course, in production
we use https and by default.
Jonathan S. Katz [Thu, 1 Mar 2018 12:42:42 +0000 (07:42 -0500)]
Shoutboux for
20180301 release
Jonathan S. Katz [Wed, 28 Feb 2018 13:43:54 +0000 (08:43 -0500)]
Fix URL reference to the "commands" module and improve language.
Reported by Raymond O'Donnell <rod@iol.ie>
Magnus Hagander [Sun, 25 Feb 2018 17:28:01 +0000 (18:28 +0100)]
Allow unlinked CVEs and poll for valid links
This way new CVEs that are added will start off being listed, but not
with a link. When upstream (currently redhat) publishes the CVE, a
cronjob will pick this up and update it with a link.
Of course, we still only show CVEs that are listed as public, but this
should hopefully get rid of some of the questions of why we link to a
404.
Magnus Hagander [Tue, 20 Feb 2018 17:50:38 +0000 (18:50 +0100)]
Make it more clear tha bug reports are public
Make it super clear that bug reports and docs corrections are both
posted to a public mailinglist and archived in the public archives.
Dave Page [Tue, 20 Feb 2018 12:39:34 +0000 (12:39 +0000)]
Purge /applications-v2.xml when SB apps are changed.
Daniel Gustafsson [Fri, 16 Feb 2018 13:59:57 +0000 (14:59 +0100)]
Fix spelling on docsbug form
Stefan Kaltenbrunner [Thu, 15 Feb 2018 17:52:02 +0000 (18:52 +0100)]
Fix "RedHat" type and add instructions for the SUSE rpm repository.
Patches by Devrim Gündüz on pgsql-www.
Magnus Hagander [Thu, 15 Feb 2018 15:34:50 +0000 (16:34 +0100)]
Fix yum spider for versions with >1 repo rpm
The code was supposed to pick the latest version of the repo rpm in this
scenario, but at some point the data structure was updated and the code
was not, so it ended up actually picking the *oldest* version of the
repo rpm.
Magnus Hagander [Thu, 8 Feb 2018 21:23:39 +0000 (22:23 +0100)]
Mark security archives redirect as permanent
This silences a deprecation warning.
Daniel Gustafsson [Thu, 8 Feb 2018 21:08:38 +0000 (22:08 +0100)]
Fix mailinglist link in README
Use https rather than http and the new URL for the list page.
Daniel Gustafsson [Thu, 8 Feb 2018 20:57:42 +0000 (21:57 +0100)]
Add a top margin on the newstag
The newstag label was sitting close on the textblock, add a bit of
top-margin to create separation.
Reviewed by: Magnus Hagander <magnus@hagander.net>
Magnus Hagander [Thu, 8 Feb 2018 14:27:17 +0000 (15:27 +0100)]
Fix ordering of CVE entries
Jonathan S. Katz [Thu, 8 Feb 2018 13:22:56 +0000 (08:22 -0500)]
Content for 2018-02-08 cumulative release.
Daniel Gustafsson [Mon, 5 Feb 2018 11:58:25 +0000 (12:58 +0100)]
Fix markup on about/advantages
Close paragraph which was left open, causing the next heading to
be in the wrong context.
Dave Page [Mon, 5 Feb 2018 11:43:37 +0000 (11:43 +0000)]
Update SPI address.
Daniel Gustafsson [Thu, 1 Feb 2018 20:19:32 +0000 (21:19 +0100)]
Remove undefined class declaration
There is no navFooter class defined in the CSS, a fact made quite
clear due to one of its uses being misspelled without any problems.
Remove class declaration.
Daniel Gustafsson [Thu, 1 Feb 2018 20:15:36 +0000 (21:15 +0100)]
Close input tags
XHTML requires all tags to be closed.
Daniel Gustafsson [Thu, 1 Feb 2018 20:14:12 +0000 (21:14 +0100)]
Fix paragraphs on donate page
There was a stray opening paragraph, and a missing closing one.
Remove and add.
Daniel Gustafsson [Thu, 1 Feb 2018 19:52:33 +0000 (20:52 +0100)]
Avoid redirect on opensource.org links
http://www.opensource.org/licenses/postgresql redirects with a
301 to its https counterpart, update the link to save a redirect
for our users.
This link is present in all the presskits as well, but the amount
of clicks there should be low enough to not bother.
Daniel Gustafsson [Thu, 1 Feb 2018 19:50:50 +0000 (20:50 +0100)]
Fix incorrect anchors on event archive
The name attribute of an anchor link cannot contain spaces,
pass the header name via the slugify filter to ensure it's
compliant.
Daniel Gustafsson [Tue, 30 Jan 2018 18:56:57 +0000 (19:56 +0100)]
Use https for all postgresql.org links
Daniel Gustafsson [Tue, 30 Jan 2018 18:42:19 +0000 (19:42 +0100)]
Presskit 10: rename OSX to macOS
There is no such thing as OSX anymore, it is now macOS. This
updates the version 10 presskit, but leaves the backbranch
presskits even though Apple has retroactively renamed the old
versions macOS as well.
Daniel Gustafsson [Tue, 30 Jan 2018 15:25:08 +0000 (16:25 +0100)]
Ensure all <img> tags are closed
The <img .. /> tag is required to be to closed in XHTML, as opposed
to HTML where <img ..> is valid. Properly close all currently open
img tags and also add alt="" attributes where missing.
Dave Page [Wed, 31 Jan 2018 10:01:29 +0000 (10:01 +0000)]
Update URLs for EDB installers. The old ones were 2 website generations ago, and incurred at least 2 redirects.
Magnus Hagander [Sat, 27 Jan 2018 11:21:06 +0000 (12:21 +0100)]
Clarify some wording
Magnus Hagander [Sat, 27 Jan 2018 11:21:02 +0000 (12:21 +0100)]
Fix typo
Magnus Hagander [Fri, 26 Jan 2018 10:28:53 +0000 (11:28 +0100)]
Don't list unsupported versions that have no patches at all
That just generates a completely empty page in the output, so remove the
link completely instead.
For supported versions we list all of them, including if they have no
patches.
Magnus Hagander [Fri, 26 Jan 2018 10:20:19 +0000 (11:20 +0100)]
Activate new security pages
This also removes the two previous static pages for this information.
Access to the old "security archives" URL is now redirected back to the
main security page, since the archive is replaced with a dynamically
built of per-version security patches.
Magnus Hagander [Fri, 26 Jan 2018 10:18:39 +0000 (11:18 +0100)]
Remove dead code
Magnus Hagander [Fri, 26 Jan 2018 10:18:02 +0000 (11:18 +0100)]
Fix query for version-specific security support list
When asking for version x, we should still list all versions the patch
in question applies to, not limit it to the current one.
Magnus Hagander [Fri, 26 Jan 2018 10:12:04 +0000 (11:12 +0100)]
Small refectoring
Makes the code easier to use in future feed support
Magnus Hagander [Fri, 26 Jan 2018 10:03:10 +0000 (11:03 +0100)]
Add explicit group permissions check for varnish purge and pending mod
Previously we just used "is member of staff", but for better granuality
explicitly also check membership of groups. This introduces the new
group "varnish purgers" for that permission.
Magnus Hagander [Thu, 25 Jan 2018 21:30:22 +0000 (22:30 +0100)]
Remove references to vector_other
The actual field was already removed, but references in admin.py were
accidentally left around. Oops.
Magnus Hagander [Thu, 25 Jan 2018 20:59:13 +0000 (21:59 +0100)]
Database:ify the list of security patches
This finally moves the patches into the db, which makes it a lot easier
to filter patches in the views.
It also adds the new way of categorising patches, which is assigning
them a CVSSv3 score.
For now, there are no public views to this, and the old static pages
remain. This is so we can backfill all existing security patches before
we make it public.
Magnus Hagander [Tue, 23 Jan 2018 20:20:19 +0000 (21:20 +0100)]
Remove majordomo2 subscription form
Replace it with a redirect to lists.postgresql.org, where pglister lives.
Magnus Hagander [Tue, 23 Jan 2018 20:12:15 +0000 (21:12 +0100)]
Change mailpref redirect to go to pglister
Magnus Hagander [Mon, 22 Jan 2018 11:28:46 +0000 (12:28 +0100)]
Add view that lists all available tags as json
For external consumption. Only tag and description is viewed, but URLs
to the feeds and pages can easily be constructed using it.
Magnus Hagander [Mon, 22 Jan 2018 11:28:14 +0000 (12:28 +0100)]
Fix admin base for non-notification models
Magnus Hagander [Sat, 13 Jan 2018 17:14:13 +0000 (18:14 +0100)]
Add a createuser callback for cauth django plugin
This callback can prevent new users from being created based on specific
criteria. The plugin is defined in settings.py, so it can be any python
code. For example, it can look up in a specific table if this user is
supposed to be allowed to log in at all.
Magnus Hagander [Sat, 13 Jan 2018 17:11:21 +0000 (18:11 +0100)]
Add ability to import user to django cauth example
This has been in used around a number of community sites already,
backpatch it into the upstream master.
Magnus Hagander [Sat, 13 Jan 2018 17:09:27 +0000 (18:09 +0100)]
Add possibility to turn off django cauth using settings in sample
This sample is used across most of our other sites, so add functionality
to install without having a local master repo.
Back-patch of pgeu commit
3e4d8c9101c2d309b134c2f5638aa40db8ef2cf5
Magnus Hagander [Sat, 6 Jan 2018 16:49:30 +0000 (17:49 +0100)]
Fix doc comments for devel version
Don't say version 0.0 in the emails that are sent out. That's what we
call it internally, but the URL should have /devel/ in it. Fix this both
in the template, and then if it comes through in the form again in case
the user picked up a link elsewhere that is incorrect.
Jonathan S. Katz [Fri, 5 Jan 2018 18:59:00 +0000 (13:59 -0500)]
Modify sentence on production PostgreSQL instances on about page.
Jonathan S. Katz [Thu, 4 Jan 2018 17:19:46 +0000 (12:19 -0500)]
Add URL to @postgresql on global footer and Contact page
Magnus Hagander [Thu, 28 Dec 2017 15:09:31 +0000 (16:09 +0100)]
Don't crash when adding models with optional m2m fields
If the m2m field is optional, there will be no "pre" data available, not
even an empty one. Don't crash in this case, just assume it's empty
(which it is).
This could happen when adding a new Organisation, which currently is the
only model we have with optional m2m fields
Magnus Hagander [Wed, 27 Dec 2017 11:14:41 +0000 (12:14 +0100)]
Mark text as safe in bug report email
Since we're sending the email as text/plain, we shouldn't be doing HTML
escaping on it.
Magnus Hagander [Thu, 21 Dec 2017 10:47:43 +0000 (11:47 +0100)]
Update migration with previous changes
This was missed in
ab36183fdac33c699ae7ed076a7ee85a9cbd895e. It's not a
change that actually changes the database in any way, so no need to
create an actual migration.
Magnus Hagander [Thu, 21 Dec 2017 10:43:58 +0000 (11:43 +0100)]
Consistently refer to Community events in submission form
Original patch had "badged", and it was renamed to Community event to
make it more clear, but all texts clearly didn't get the memo.
Magnus Hagander [Wed, 20 Dec 2017 12:58:17 +0000 (13:58 +0100)]
Remove support for "remove after notify" on moderation
This broke when we had ManyToMany relations on a record. We didn't use
to have that, but with tags for news we now do. With this change, the
"reject with a notice" becomes a two step operation, the first one
adding the notification and the second one doing the removal. That'll
have to do for now, and at some point in the future we may create a
completely separate (non /admin/) workflow for moderation and fix it
that way.
Magnus Hagander [Mon, 18 Dec 2017 15:24:23 +0000 (16:24 +0100)]
Fix reply-to address for docs comments emails
Magnus Hagander [Mon, 18 Dec 2017 15:22:11 +0000 (16:22 +0100)]
Set sender name on bug report and docs comments email
Magnus Hagander [Mon, 18 Dec 2017 15:21:01 +0000 (16:21 +0100)]
Add support for setting recipient name and sender name
Stephen Frost [Mon, 18 Dec 2017 14:59:18 +0000 (15:59 +0100)]
Send -bugs and -docs emails from noreply address
Sending from the submitters address runs afoul to DMARC and other
restrictions. Instead, send the email from a defined noreply address.
Instead, add the original submitter to both the Cc and the Reply-To
header, to make sure they receive followups.
Patch by Stephen, minor changes by Magnus
Magnus Hagander [Mon, 18 Dec 2017 14:56:30 +0000 (15:56 +0100)]
Remove dead file
Guillaume Lelarge [Fri, 15 Dec 2017 18:05:14 +0000 (19:05 +0100)]
Update for new edition of book
Magnus Hagander [Wed, 13 Dec 2017 20:30:25 +0000 (21:30 +0100)]
Avoid spans overlapping each other when there are many tags
Magnus Hagander [Wed, 13 Dec 2017 20:21:05 +0000 (21:21 +0100)]
Predictable ordering for newstags
Magnus Hagander [Wed, 13 Dec 2017 20:18:51 +0000 (21:18 +0100)]
Include more fields in newstag admin listing
Daniel Gustafsson [Wed, 13 Dec 2017 11:12:49 +0000 (12:12 +0100)]
Use proper attribute for script language
The 'language' attribute is deprecated and replaced with 'type' in
xhtml.
Daniel Gustafsson [Wed, 13 Dec 2017 10:34:46 +0000 (11:34 +0100)]
Use & entity instead of bare ampersand in text
Using a bare '&' in text elements is sometimes Ok, but always
generate warnings in validation checks. Move to using the amp
entity which is the recommended way to render '&' in xhtml.
Magnus Hagander [Wed, 13 Dec 2017 19:55:07 +0000 (20:55 +0100)]
Add tag support for news items
This lets us separate things like project news from other OSS and from
commercial postings, for example, allowing for people to subscribe to
different feeds with just the parts they are interested in.
Magnus Hagander [Wed, 13 Dec 2017 19:49:52 +0000 (20:49 +0100)]
Add support for notification emails on m2m changes
Unfortunately, we'll send one email for each m2m field, instead of
collecting them to a single one. That's because there is no signal
delivered at the end of them all, there will be one sent for each field.
Luckily we don't have a lot of m2m fields at this point, and no model
has more than one, so at this point that part is not a problem.
It also means that if a regular field *and* an m2m field is changed,
then we will get two notifications.
Finally, enable these notifications for the Organisation fields, meaning
we will get a notification when an Organisation changes managers, which
was not working before.
Magnus Hagander [Mon, 11 Dec 2017 14:30:50 +0000 (15:30 +0100)]
Add support for descriptive texts over m2m checkboxes
This allows the assignment of "hover mouse to show"-descriptions for m2m
fields with multiple checkboxes.
Magnus Hagander [Mon, 11 Dec 2017 14:29:45 +0000 (15:29 +0100)]
Fix submission forms for many2many fields with checkboxes
This includes proper styling (no more centering of the checkbox itself)
and actually saving the m2m fields on submit.
Magnus Hagander [Sun, 10 Dec 2017 16:23:03 +0000 (17:23 +0100)]
Add ability for cauth sites to download ssh public keys
This removes the last need to directly access the upstream database
(from the git server), so remove that view as well.
Magnus Hagander [Sun, 10 Dec 2017 15:46:43 +0000 (16:46 +0100)]
Remove community authentication 1.0
Community authentication 1.0 relied on PostgreSQL connections between
all servers, and hasn't been used for years.
This includes removing the code that migrates users from the old
community authentication system to the new one. This means that any user
who has not logged in since 2011 will no longer be able to user their
oan account, and have to create a new one.
Magnus Hagander [Sun, 10 Dec 2017 15:40:02 +0000 (16:40 +0100)]
Remove legacy workaround to support old community auth
This workaround enabled a weaker password hasher to work with old
versions of the community authentication plugin. This was already
overridden in prod, but remove the old workaround completely from the
code so we don't accidentally re-enable it.
Daniel Gustafsson [Sun, 10 Dec 2017 11:14:36 +0000 (12:14 +0100)]
Remove IRIX and Tru64 from /about
Support for SGI IRIX was removed from the postgresql.git repo
in commit
ea91a6be8957 with release 9.3 as the last supported
version, and Tru64 in
a6d488cb53 with 9.4 as the last version.
Remove from /about to manage expectations.
Magnus Hagander [Sat, 9 Dec 2017 15:49:53 +0000 (16:49 +0100)]
Remove extra space in tweets
Magnus Hagander [Sat, 9 Dec 2017 15:44:54 +0000 (16:44 +0100)]
Implement automatic tweeting of news
Once a twitter account has been registered (using the twitter_register
management command), the twitter_post command wills start posting all
new news to twitter, once they are approved. It will only post news from
the past 7 days to avoid accidentally flooding with old news.
Magnus Hagander [Sat, 9 Dec 2017 14:54:41 +0000 (15:54 +0100)]
Change personal email to group email for donations
Not only is Josh no longer -core, it's better to consistently refer
people to contact the group addresses to make sure they get timely
responses.
Jonathan S. Katz [Thu, 7 Dec 2017 01:11:08 +0000 (20:11 -0500)]
Add "Associazione ITPUG" to International sites.
Magnus Hagander [Wed, 6 Dec 2017 03:14:37 +0000 (12:14 +0900)]
Prevent changes of column width on events form
Do this by setting the max width of the lefthand column in the table, so
it doesn't change when the checkbox for community events is clicked.
A better solution would of course be to make the forms properly
responsive, but that's part of a "next generation website", rather than
a quick fix...
Jonathan S. Katz [Wed, 6 Dec 2017 03:06:37 +0000 (12:06 +0900)]
Enable events to be badged.
Adds the "badged" flag to the Event model in order to distinguish
community badged events from other PostgreSQL oriented events.
Seven total events will be displayed on the homepage, with up to
four community events displayed. If there are no upcoming
community events then, then the header "Events" is shown.
The event submission interface allows a user to opt-in to
listing an event as a "community" event and provide an
explanation for moderators as to why the event should be
considered a community event.
Expands the list of News and Planet PostgreSQL blog entries to 10.
Jonathan S. Katz [Wed, 6 Dec 2017 02:59:30 +0000 (11:59 +0900)]
Replace frontpage header images with text
It's too much of a pain to regenerate the images when a header needs to
change in some way, and having text is better for searching too. This
slightly changes the strength of the headers, but mostly things look the
same as before.
Jonathan S. Katz [Mon, 4 Dec 2017 14:06:34 +0000 (08:06 -0600)]
Updated "International Sites" page to update URLs for active sites.
Jonathan S. Katz [Sat, 25 Nov 2017 14:43:20 +0000 (09:43 -0500)]
Clean up whitespace in primary Python / HTML files
Clean up the whitespace in the primary Python / HTML files in
order to make it easier to apply changes going forward.
Magnus Hagander [Mon, 27 Nov 2017 20:11:05 +0000 (21:11 +0100)]
Replace personal addresses with group aliases
We were inconsistent between pages, and some of this was many years
old...
Jonathan S. Katz [Tue, 14 Nov 2017 22:31:30 +0000 (17:31 -0500)]
Added another publication format to previous commit.
Jonathan S. Katz [Tue, 14 Nov 2017 22:27:58 +0000 (17:27 -0500)]
Added "PostgreSQL: Up and Running, 3rd Edition" to "Books"
Magnus Hagander [Tue, 14 Nov 2017 17:39:39 +0000 (18:39 +0100)]
Add Mastering Postgresql for App devs book
Jonathan S. Katz [Sat, 11 Nov 2017 22:14:58 +0000 (17:14 -0500)]
Updated "Chinese (Traditional)" international URL.
Jonathan S. Katz [Thu, 9 Nov 2017 13:52:31 +0000 (08:52 -0500)]
Update web pages for the 2017-11-09 release
Updated the /support/security/ page to contain information about
reported and resolved security issues in the 2017-11-09 release.
Moved security issues that only affect version 9.2 and earlier
to the security archive page (/support/security_archive/)
Updated developer roadmap and call out box for the cumulative
release.
Magnus Hagander [Wed, 8 Nov 2017 17:02:58 +0000 (12:02 -0500)]
Explicitly exclude urls with .. in search crawling
There were per-site configured rules defined but the regexp was slightly
incorrectly defined. However, we should just simply never crawl urls
like this unless they are normalized, so for now just add them to the
hardcoded exclusion rules.
Stephen Frost [Tue, 31 Oct 2017 17:33:07 +0000 (13:33 -0400)]
Update roadmap reflect releases, et al
The next upcoming major release would now be 11, not 10, and it's coming
in the third quarter of 2018.
Also, add in the August planned releases to fill out a complete year.
Hopefully by having the minor release dates cover a year it'll be
clear that whenever we do a release set we remove one and add one at the
bottom, instead of randomly adding/removing them at various times.
Magnus Hagander [Mon, 30 Oct 2017 14:25:37 +0000 (15:25 +0100)]
Don't try to log data that's not always available
Magnus Hagander [Mon, 30 Oct 2017 14:22:37 +0000 (15:22 +0100)]
More logging on password resets
Jonathan S. Katz [Sat, 28 Oct 2017 21:19:02 +0000 (17:19 -0400)]
Add clarifying language about how the EOL versioning policy works.
Language proposed by Noah Misch.
Magnus Hagander [Fri, 13 Oct 2017 13:56:25 +0000 (15:56 +0200)]
Attempt to fix version sorting in ftp browser
There was already an ugly hack to handle this, so make it a bit uglier
with even more hardcoded assumptions. Seems to be working for the site
as it is now, but may definitely need further ugly hacks in the future.
Magnus Hagander [Fri, 13 Oct 2017 12:08:21 +0000 (14:08 +0200)]
Enforce lowercase email addresses in more places
We don't want two different accounts to exist with the same email
address only differing in case. This had already happened for a few
which have been manually fixed, since it turns out we only enforced the
rule on new account creation, not when accounts changed email address or
when they were created using oauth. Also add database level constraints to
make sure this cannot happen again if some codepath is missed.
Magnus Hagander [Fri, 13 Oct 2017 11:10:23 +0000 (13:10 +0200)]
Spider fedora versions up to 30
No need for us to update this script on every new Fedora release. If we
don't have packages for them, they just won't be found.
Magnus Hagander [Fri, 13 Oct 2017 10:45:38 +0000 (12:45 +0200)]
Fix suggested initialization command on RPMs
As of 10, the name of the script has changed from postgresql<nn>-setup
to postgresql-<nn>-setup.
Magnus Hagander [Fri, 13 Oct 2017 09:15:51 +0000 (11:15 +0200)]
Don't crash when .git/refs/heads/master doesn't exist
This happens after a git gc which moves this into packed-refs. So when
this happens, look in packed-refs. If packed-refs also cannot be found,
just return a made up value instead of crashing.
Magnus Hagander [Fri, 13 Oct 2017 09:15:14 +0000 (11:15 +0200)]
Import jquery-ui theme images
We already had the basic theme imported, just forgot the images.
Magnus Hagander [Fri, 13 Oct 2017 08:07:20 +0000 (10:07 +0200)]
Consistently load jquery from our own copy
Also consistently load the same version of jquery, so browsers only have
to cache one.