mir.git
11 years agoscripts/mir-setup/README: update with link to new doc on wiki MIR_1_1
Ian Beckwith [Wed, 29 Dec 2010 23:54:14 +0000 (23:54 +0000)]
scripts/mir-setup/README: update with link to new doc on wiki

This was previously committed to CVS but git-cvsimport
wouldn't pick up that commit for some reason, so I've
manually committed it to git.

11 years agoRename mir-prepare, mir-setup, mir-choose-java to mir-*.lenny.
ianb [Thu, 16 Dec 2010 18:31:08 +0000 (18:31 +0000)]
Rename mir-prepare, mir-setup, mir-choose-java to mir-*.lenny.
Copied them to mir-*.squeeze, and updated them to
work with Debian Squeeze.

11 years agoExplicitly mark perms.sh-dist as a bash script.
ianb [Thu, 16 Dec 2010 18:22:16 +0000 (18:22 +0000)]
Explicitly mark perms.sh-dist as a bash script.

perms.sh-dist has bashisms, so would fail on a system (eg some recent
Debian systems) with dash as /bin/sh.

13 years agomir-prepare: explicitly list conf files to copy, skipping CVS and tomcat4/
ianb [Sun, 18 Jan 2009 04:43:02 +0000 (04:43 +0000)]
mir-prepare: explicitly list conf files to copy, skipping CVS and tomcat4/

13 years ago * scripts/mir-setup/mir-setup:
ianb [Sun, 18 Jan 2009 04:28:49 +0000 (04:28 +0000)]
 * scripts/mir-setup/mir-setup:
   + When getting DB name/user/pass, use shell variables rather than
     hardcoded uk.
   + Create $USER and $TOMCATGROUP, add $USER and $TOMCATUSER to
     $TOMCATGROUP.
   + if $MIRGITROOT or $SITEGITROOT are defined, checkout mir or
     site from git instead of CVS.
   + Download cities.inc.
   + Configure temporary SSL snake-oil cert.
   + Create links in $INSTALLDIR/mir/lib to needed jar files:
     * servlet-2.3: link to /usr/share/java
     * rt: link to /etc/mir-setup/lib. This is so mir-choose-java
       can change that link rather than making changes in several places.
   + Pass TOMCAT_HOME to ant.
   + Fixup jar links in mir deployment to match config above.
   + Create empty abuse.properties.
   + Restart tomcat.
 * README: updated to mention mir-prepare and conf/tomcat4.

13 years ago * scripts/mir-setup/conf: updated to use tomcat5.5
ianb [Sun, 18 Jan 2009 03:41:13 +0000 (03:41 +0000)]
 * scripts/mir-setup/conf: updated to use tomcat5.5
 * tomcat4 versions of config files are in scripts/mir-setup/conf/tomcat4
 * other changes to site-httpd.conf:
   + use log format 'anon' (defined in /etc/apache2/conf.d/mir-anon-access-log,
     which is created by mir-prepare)
   + Include /etc/apache2/mir-sites/ssl-dedicated/$SITE.conf
   + add $MIRRORFQDN as a ServerAlias
 * site-ssl-dedicated-httpd.conf: add $MIRRORFQDN and $ALIAS as ServerAliases

13 years agoscripts/mir-setup: new scripts:
ianb [Sun, 18 Jan 2009 03:00:22 +0000 (03:00 +0000)]
scripts/mir-setup: new scripts:
   mir-prepare: prepare a fresh (debian) machine to run mir
   mir-choose-java: configure java implementation for mir to use
   mir-empty-db: empty a mir db to prepare for a database restore
   strip-ips-from-apache-error-log: anonymise apache error logs, installed
                                    by mir-prepare

13 years agoMirBasicChildArticlePostingHandler: fixed build failure
ianb [Sun, 18 Jan 2009 02:47:10 +0000 (02:47 +0000)]
MirBasicChildArticlePostingHandler: fixed build failure

14 years agowe check now if the parent article is allowed for publication while adding a child...
ngu [Sun, 26 Oct 2008 13:37:28 +0000 (13:37 +0000)]
we check now if the parent article is allowed for publication while adding a child to it

14 years agofixed a glitch
zapata [Sat, 1 Mar 2008 20:10:53 +0000 (20:10 +0000)]
fixed a glitch

14 years ago*** empty log message ***
zapata [Mon, 17 Dec 2007 13:03:28 +0000 (13:03 +0000)]
*** empty log message ***

14 years agosupport for CAPTCHAs
zapata [Sat, 15 Dec 2007 00:24:41 +0000 (00:24 +0000)]
support for CAPTCHAs
replaced gnu regexp with oro which is much faster

15 years agouser agent filters now use sub strings instead of regular expressions
zapata [Wed, 15 Aug 2007 23:10:40 +0000 (23:10 +0000)]
user agent filters now use sub strings instead of regular expressions

15 years agofixed a filter updating bug
zapata [Wed, 15 Aug 2007 23:09:31 +0000 (23:09 +0000)]
fixed a filter updating bug

15 years agouser agent filter now works with substrings
zapata [Wed, 15 Aug 2007 22:25:17 +0000 (22:25 +0000)]
user agent filter now works with substrings

15 years agospurious > removed
zapata [Mon, 4 Jun 2007 17:57:09 +0000 (17:57 +0000)]
spurious > removed

15 years agocosmetic changes to the article list page
zapata [Mon, 4 Jun 2007 17:56:00 +0000 (17:56 +0000)]
cosmetic changes to the article list page

15 years agodescription is now shown in the article list if the title isn't available
zapata [Mon, 4 Jun 2007 17:53:37 +0000 (17:53 +0000)]
description is now shown in the article list if the title isn't available

15 years agolanguage now also visible on the content list page
zapata [Mon, 4 Jun 2007 17:16:29 +0000 (17:16 +0000)]
language now also visible on the content list page

15 years agoadminster operation configuration now supports escape characters
zapata [Wed, 30 May 2007 20:26:01 +0000 (20:26 +0000)]
adminster operation configuration now supports escape characters

15 years agovery basic support for localized add/edit article pages
zapata [Mon, 28 May 2007 00:49:58 +0000 (00:49 +0000)]
very basic support for localized add/edit article pages

15 years agofixing scaling images -> nullpointer, patch by yossarian
ngu [Sun, 27 May 2007 12:17:10 +0000 (12:17 +0000)]
fixing scaling images -> nullpointer, patch by yossarian

15 years agofixed a bug causing nullpointer exceptions in some image files (i.e. the ones
zapata [Sun, 22 Apr 2007 01:51:42 +0000 (01:51 +0000)]
fixed a bug causing nullpointer exceptions in some image files (i.e. the ones
that do not need to be scaled)

15 years agojava 1.4 compatible
john [Thu, 19 Apr 2007 18:30:12 +0000 (18:30 +0000)]
java 1.4 compatible

15 years agoUse jakarta feedparser to parse RSS2 files.
john [Thu, 19 Apr 2007 18:08:11 +0000 (18:08 +0000)]
Use jakarta feedparser to parse RSS2 files.

Theoretically this could be use to parse everything, including Atom.

15 years agofile RSS2Reader.java was added on branch MIR_1_1 on 2007-04-19 18:08:11 +0000
john [Thu, 19 Apr 2007 18:04:17 +0000 (18:04 +0000)]
file RSS2Reader.java was added on branch MIR_1_1 on 2007-04-19 18:08:11 +0000

15 years agofile saxpath-1.0-FCS.jar was added on branch MIR_1_1 on 2007-04-19 18:08:11 +0000
john [Thu, 19 Apr 2007 18:03:13 +0000 (18:03 +0000)]
file saxpath-1.0-FCS.jar was added on branch MIR_1_1 on 2007-04-19 18:08:11 +0000

15 years agofile jdom-b9.jar was added on branch MIR_1_1 on 2007-04-19 18:08:11 +0000
john [Thu, 19 Apr 2007 18:03:13 +0000 (18:03 +0000)]
file jdom-b9.jar was added on branch MIR_1_1 on 2007-04-19 18:08:11 +0000

15 years agofile jaxen-1.0-FCS-full.jar was added on branch MIR_1_1 on 2007-04-19 18:08:11 +0000
john [Thu, 19 Apr 2007 18:03:13 +0000 (18:03 +0000)]
file jaxen-1.0-FCS-full.jar was added on branch MIR_1_1 on 2007-04-19 18:08:11 +0000

15 years agofile commons-feedparser-0.5-SNAPSHOT.jar was added on branch MIR_1_1 on 2007-04-19...
john [Thu, 19 Apr 2007 18:03:13 +0000 (18:03 +0000)]
file commons-feedparser-0.5-SNAPSHOT.jar was added on branch MIR_1_1 on 2007-04-19 18:08:11 +0000

15 years agovalues for web bugs squasher
john [Mon, 16 Apr 2007 20:15:41 +0000 (20:15 +0000)]
values for web bugs squasher

15 years agokill web bugs!
john [Mon, 16 Apr 2007 20:08:24 +0000 (20:08 +0000)]
kill web bugs!

15 years agoconfig attribute filters via config.propertieis./ LATEST_MERGED_1_1
john [Thu, 8 Feb 2007 21:42:37 +0000 (21:42 +0000)]
config attribute filters via config.propertieis./

15 years agoforgot one </if>
ngu [Thu, 25 Jan 2007 19:59:57 +0000 (19:59 +0000)]
forgot one </if>

15 years agofix for: if more than one mediatype attached to a comment, the medias are shown multi...
ngu [Thu, 25 Jan 2007 19:52:42 +0000 (19:52 +0000)]
fix for: if more than one mediatype attached to a comment, the medias are shown multiple times

15 years agoRemoving the config value for whether images get scaled, as this is no longer necessa...
yossarian [Mon, 15 Jan 2007 23:42:44 +0000 (23:42 +0000)]
Removing the config value for whether images get scaled, as this is no longer necessary - the class mircoders.media.MediaHandlerImagesExternScaling does scaling if it is selected as the image media handler class in the site admin;  no image scaling occurs if mircoders.media.MediaHandlerImagesExtern is selected instead.

15 years agoAdding class MediaHandlerImagesExternScaling to take care of scaling images (this...
yossarian [Mon, 15 Jan 2007 23:35:32 +0000 (23:35 +0000)]
Adding class MediaHandlerImagesExternScaling to take care of scaling images (this class can replace MediaHandlerImagesExtern, which doesn't scale images, if the site admins want image scaling).

15 years agobetter logging for the filter engine
zapata [Sun, 14 Jan 2007 02:17:33 +0000 (02:17 +0000)]
better logging for the filter engine

15 years agowhoops
zapata [Mon, 25 Dec 2006 21:47:37 +0000 (21:47 +0000)]
whoops

15 years agoadded:
zapata [Mon, 25 Dec 2006 20:10:22 +0000 (20:10 +0000)]
added:
* url blacklist filter
* delete operation for comments / articles

15 years agoI've split out the image scaling code into a separate class and returned this class...
yossarian [Sat, 16 Dec 2006 15:38:35 +0000 (15:38 +0000)]
I've split out the image scaling code into a separate class and returned this class to its original state - i.e. Zapata's code from revision 1.12.2.11

The only thing that should be different is that I've also added the

reportChange() lines to the bottom of the produce() method so that the ChangeTracker gets change reports.

16 years agoMore time-handling tweaks in update.pl
zak [Sat, 18 Nov 2006 18:41:52 +0000 (18:41 +0000)]
More time-handling tweaks in update.pl

16 years agoRefactored the class with a whole lot of extract method to make it easier to understand.
yossarian [Mon, 13 Nov 2006 22:44:35 +0000 (22:44 +0000)]
Refactored the class with a whole lot of extract method to make it easier to understand.

16 years agoStream fetched files to disk rather than reading them
zak [Sun, 12 Nov 2006 23:35:23 +0000 (23:35 +0000)]
Stream fetched files to disk rather than reading them
into memory.

16 years agoUse Date::Calc for date math
zak [Sun, 12 Nov 2006 23:17:06 +0000 (23:17 +0000)]
Use Date::Calc for date math
Remove Date::Parse and Date::Format which conflict with HTTP::Date
Don't fail if some changes files don't exist

16 years agoupdate.pl:
zak [Sun, 12 Nov 2006 21:57:42 +0000 (21:57 +0000)]
update.pl:
  Reject paths containing ".." for security
  Remember where we'd got to within a day's changes
  Last-Modified and If-Modified-Since handling

16 years agoVideos don't actually do a "produce()" method.
yossarian [Sun, 12 Nov 2006 21:32:13 +0000 (21:32 +0000)]
Videos don't actually do a "produce()" method.

So in order to catch them we're putting in a ChangeTracker notification when file uploads are stored.  This means that all media types descending from MediaHandlerGeneric are going to notify twice.  This should be looked at. I'm doing this on the advice of Zapata though so it must be ok.

16 years agoFixes to update.pl and tidying up
zak [Sun, 12 Nov 2006 20:59:20 +0000 (20:59 +0000)]
Fixes to update.pl and tidying up

16 years agoRemoved unused imports
yossarian [Sun, 12 Nov 2006 20:58:37 +0000 (20:58 +0000)]
Removed unused imports

16 years agoRemoving ChangeTracker notification from MediaGeneratingProducerNode as these notific...
yossarian [Sun, 12 Nov 2006 20:57:24 +0000 (20:57 +0000)]
Removing ChangeTracker notification from MediaGeneratingProducerNode as these notifications are now happening in each Media class.

16 years agoPUtting the ChangeTracker stuff back into GeneratingProducerNode, it does in fact...
yossarian [Sun, 12 Nov 2006 20:30:19 +0000 (20:30 +0000)]
PUtting the ChangeTracker stuff back into GeneratingProducerNode, it does in fact need to be there.

16 years agoTook the ChangeTracker reporting out of GeneratingProducerNode and put it into the...
yossarian [Sun, 12 Nov 2006 18:44:46 +0000 (18:44 +0000)]
Took the ChangeTracker reporting out of GeneratingProducerNode and put it into the Media subclasses.

The following classes now report changes to themselves (and icons if there are icons generated for that media type):

MediaHandlerImages
MediaHandlerImagesExtern
MediaHandlerMp3
MediaHandlerOgg
MediaHandlerRealAudio
MediaHandlerRealVideo

The reportChange protected method is in AbstractMediaHandler so that this method is available to all Media subclasses.

16 years agoRemove temp files that got committed along with mirror-scripts
zak [Sun, 12 Nov 2006 10:38:37 +0000 (10:38 +0000)]
Remove temp files that got committed along with mirror-scripts

16 years agoAdded icon changes code to MediaGeneratingProducerNode
dmgarland [Sat, 11 Nov 2006 19:54:57 +0000 (19:54 +0000)]
Added icon changes code to MediaGeneratingProducerNode

16 years agoUpdated MediaGeneratingProducerNode to use the baseStoragePath and publish_path
dmgarland [Sat, 11 Nov 2006 19:43:44 +0000 (19:43 +0000)]
Updated MediaGeneratingProducerNode to use the baseStoragePath and publish_path

16 years agofurther fixes to the change reporting framework
zapata [Sat, 11 Nov 2006 19:21:28 +0000 (19:21 +0000)]
further fixes to the change reporting framework

16 years agoRsync replacement scripts, uses Perl to pull changed files to mirrors. The changes...
yossarian [Sat, 11 Nov 2006 18:17:33 +0000 (18:17 +0000)]
Rsync replacement scripts, uses Perl to pull changed files to mirrors.  The changes files are written out be Mir's ChangeTracker which is currently being worked on.

Some of this will need to be trimmed out.

16 years agochange report is now appended instead of overwritten and new lines are added after...
zapata [Sat, 11 Nov 2006 16:45:46 +0000 (16:45 +0000)]
change report is now appended instead of overwritten and new lines are added after each line

16 years agoSwitched to just using "destinationIdentifier" for the output path for the ChangeTrac...
yossarian [Sat, 11 Nov 2006 16:38:17 +0000 (16:38 +0000)]
Switched to just using "destinationIdentifier" for the output path for the ChangeTracker.  This should work because it's super-simple, but it'll have to be changed later probably to a different path.  We're just trying to get something working at this point though.

16 years agowhoops
zapata [Sat, 11 Nov 2006 16:36:01 +0000 (16:36 +0000)]
whoops

16 years agowhoops
zapata [Sat, 11 Nov 2006 16:21:45 +0000 (16:21 +0000)]
whoops

16 years agoChanged FileDateSettingProducerNode to call changeTracker with a modification type...
dmgarland [Sat, 11 Nov 2006 16:20:38 +0000 (16:20 +0000)]
Changed FileDateSettingProducerNode to call changeTracker with a modification type on the file's absolute path

16 years agoClarified a commented TODO a bit.
yossarian [Sat, 11 Nov 2006 16:18:57 +0000 (16:18 +0000)]
Clarified a commented TODO a bit.

16 years agoDirCopyingProducerNode is now alerting the ChangeTracker when a directory gets copied.
yossarian [Sat, 11 Nov 2006 16:16:36 +0000 (16:16 +0000)]
DirCopyingProducerNode is now alerting the ChangeTracker when a directory gets copied.

16 years agoaddition of the Change Reporting producer node
zapata [Sat, 11 Nov 2006 16:16:14 +0000 (16:16 +0000)]
addition of the Change Reporting producer node

16 years agoAdded a call to ChangeTracker to FileDeletingProducerNode notifying it of the absolut...
dmgarland [Sat, 11 Nov 2006 16:12:46 +0000 (16:12 +0000)]
Added a call to ChangeTracker to FileDeletingProducerNode notifying it of the absolute path to the deleted file and a change type of delete

16 years agoChanged MediaGeneratorProducerNode to call the ChangeTracker to notify it of a modifi...
dmgarland [Sat, 11 Nov 2006 15:54:07 +0000 (15:54 +0000)]
Changed MediaGeneratorProducerNode to call the ChangeTracker to notify it of a modification to the file.

The path used is the database field publish_path

16 years agoGeneratingProducerNode now alerts the ChangeTracker whenever a file change is made...
yossarian [Sat, 11 Nov 2006 15:53:38 +0000 (15:53 +0000)]
GeneratingProducerNode now alerts the ChangeTracker whenever a file change is made during a producer run.

16 years agosome javadoc additions some early work on the new producer node to report changes...
zapata [Sat, 11 Nov 2006 15:48:50 +0000 (15:48 +0000)]
some javadoc additions some early work on the new producer node to report changes and a compilation problem in ServletModuleFileEdit related to the change reporter has been fixed

16 years agoupdates on the change tracker
zapata [Sat, 11 Nov 2006 15:42:22 +0000 (15:42 +0000)]
updates on the change tracker

16 years agoCopy mir-setup to 1.1 branch
zak [Sat, 11 Nov 2006 12:52:05 +0000 (12:52 +0000)]
Copy mir-setup to 1.1 branch

16 years agoanother tiny fix
zapata [Sat, 21 Oct 2006 23:46:08 +0000 (23:46 +0000)]
another tiny fix

16 years agosmall fixes
zapata [Sat, 21 Oct 2006 23:42:03 +0000 (23:42 +0000)]
small fixes

16 years agoreverting unnedeed change i classpath
pietrus [Fri, 20 Oct 2006 23:59:47 +0000 (23:59 +0000)]
reverting unnedeed change i classpath

16 years agoremoving wrong entry bout source dir.
pietrus [Fri, 20 Oct 2006 23:50:59 +0000 (23:50 +0000)]
removing wrong entry bout source dir.

16 years agosmall fix
zapata [Sat, 14 Oct 2006 20:21:24 +0000 (20:21 +0000)]
small fix

16 years agoUse '/usr/share/java' to construct the classpath because some OS vendors place java...
pietrus [Wed, 27 Sep 2006 21:28:11 +0000 (21:28 +0000)]
Use '/usr/share/java' to construct the classpath because some OS vendors place java libs inthat dir instead of forcing everyone use te CLASSPATH environment variable

16 years agohonour user CLASSPATH environment variable
pietrus [Tue, 26 Sep 2006 17:58:38 +0000 (17:58 +0000)]
honour user CLASSPATH environment variable

16 years agofixing typos
pietrus [Fri, 1 Sep 2006 04:37:36 +0000 (04:37 +0000)]
fixing typos

16 years agosmall fix to the binary distribution ant task
zapata [Wed, 23 Aug 2006 19:34:41 +0000 (19:34 +0000)]
small fix to the binary distribution ant task

16 years agoscript to fix permissions of files and dirs in the binary distribuition
pietrus [Wed, 23 Aug 2006 00:22:22 +0000 (00:22 +0000)]
script to fix permissions of files and dirs in the binary distribuition

16 years agoant build file for the binary distribuition
pietrus [Wed, 23 Aug 2006 00:21:45 +0000 (00:21 +0000)]
ant build file for the binary distribuition

16 years agochanged the "source-distribution" target to produce a tar.gz instead of a zip file.
pietrus [Tue, 22 Aug 2006 21:31:47 +0000 (21:31 +0000)]
changed the "source-distribution" target to produce a tar.gz instead of a zip file.
created a new target called "full-distribution" that will build mir, build the source distribution tarball, copy the source distribution to "bin/mir/WEB-INF" and create a tarball of "bin/mir" called "mir-${version}.tar.gz" in "dist"

16 years agoMade the following variables (which deal with the new image resizing code) local...
yossarian [Sun, 13 Aug 2006 19:46:46 +0000 (19:46 +0000)]
Made the following variables (which deal with the new image resizing code) local rather than instance:

private String imagesOriginalDir;
private String imagesOriginalDirRelPath;
private String imageOriginalFilePath;
private String imageOriginalRelPath;

Also took out the reference to StreamCopier.copyFile as there was already something in Mir that was designed for this purpose: FileRoutines.copyFile

Cleaned up source formatting somewhat to use 2 spaces instead of tabs.

Using Integer.toString(foo) rather than new Integer(foo).toString() on Zapata's advice.

16 years agoChanges which allow images to be resized by Mir and saved in the filesystem if an...
yossarian [Sun, 13 Aug 2006 18:25:32 +0000 (18:25 +0000)]
Changes which allow images to be resized by Mir and saved in the filesystem if an image upload exceeds a certain size (defined in config.properties).

In order to save the location of the original (unresized) image to the database, a field needs to be added to the "images" table:

original_file_path - varchar(255)

Image resizing should be considered highly experimental.  It is turned off by default.

16 years agowhoops 3
zapata [Thu, 10 Aug 2006 20:03:51 +0000 (20:03 +0000)]
whoops 3

16 years agowhoops 2
zapata [Thu, 10 Aug 2006 20:00:28 +0000 (20:00 +0000)]
whoops 2

16 years agowhoops
zapata [Thu, 10 Aug 2006 19:55:20 +0000 (19:55 +0000)]
whoops

16 years agoreintroduced StringUtil.regexpReplace
zapata [Thu, 10 Aug 2006 19:29:33 +0000 (19:29 +0000)]
reintroduced StringUtil.regexpReplace
updated license javadoc

16 years agoadded better support for article urls in PDF files
zapata [Sun, 16 Jul 2006 03:14:10 +0000 (03:14 +0000)]
added better support for article urls in PDF files

16 years agolockfile added
zapata [Thu, 1 Jun 2006 18:28:21 +0000 (18:28 +0000)]
lockfile added

16 years agointroduction of the change engine
zapata [Thu, 1 Jun 2006 18:26:51 +0000 (18:26 +0000)]
introduction of the change engine

16 years agoreplaced some gnu RE's with the much faster jakarta ORO
zapata [Thu, 1 Jun 2006 17:57:20 +0000 (17:57 +0000)]
replaced some gnu RE's with the much faster jakarta ORO

16 years agotiny fixes here and there
zapata [Thu, 1 Jun 2006 11:50:41 +0000 (11:50 +0000)]
tiny fixes here and there

16 years agoremoved some system.out logging
zapata [Sat, 13 May 2006 17:01:14 +0000 (17:01 +0000)]
removed some system.out logging

16 years agoadded a posting size anti-abuse filter
zapata [Sun, 19 Mar 2006 20:53:11 +0000 (20:53 +0000)]
added a posting size anti-abuse filter

16 years agobug fix take 2
john [Tue, 28 Feb 2006 17:01:35 +0000 (17:01 +0000)]
bug fix take 2

16 years agobug fix for the bug fix.
john [Tue, 28 Feb 2006 16:50:36 +0000 (16:50 +0000)]
bug fix for the bug fix.

16 years agobug fix for dates
john [Tue, 28 Feb 2006 16:44:21 +0000 (16:44 +0000)]
bug fix for dates

16 years agochanged the behaviour of entity uploaded media so that articles/comments linking...
zapata [Tue, 21 Feb 2006 20:24:43 +0000 (20:24 +0000)]
changed the behaviour of entity uploaded media so that articles/comments linking to the media will no longer be marked unproduced