Apache Roller 6.1.7 (approved RC5)
Send weblog update pings without an XML-RPC client (#236)

* Send weblog update pings without an XML-RPC client

Roller now builds the weblogUpdates.ping request and reads the response
itself, parsing it with the project's hardened XML parser (SecureXmlParsers)
and reading only the flerror and message fields the protocol defines. Adds
connection and read timeouts and a 1 MiB cap on the response. Removes the
now-unused xmlrpc-client dependency; xmlrpc-common/server remain for the
inbound XML-RPC servlet. Adds WeblogUpdatePingerTest.

* Treat non-2xx ping responses and non-HTTP targets as failures

A non-2xx HTTP status from a ping target is now surfaced as an IOException
instead of being read and parsed as a (successful, empty) ping result, so a
failing target is treated as failed and retried, as the previous client did.
A ping target URL that is not HTTP(S) now yields an IOException instead of an
uncaught ClassCastException. Adds tests for both via a loopback HTTP server;
makes exchange() package-private for the tests.

* Load the Pings action's ping target only by id

The ping target that Ping Now, enable and disable work on now always
comes from the stored ping targets. Add a test that binds request
parameters through Struts.

* Load editor action targets only by id, never from request parameters

The editor and ping-target actions load the domain object they work on
(ping target, category, entry, media directory, template, folder) from
the weblog, by id, in myPrepare. Make those setters non-public and clear
the field before the lookup, so a request parameter cannot supply a
different object.

Also set the authenticated user and the action weblog in
UIActionInterceptor unconditionally, so a value bound from a request
parameter is always overwritten from the session and the weblog handle.

Add binding tests for the action targets and for the interceptor.

* Let same-package tests set the entry on EntryRemove
20 files changed
tree: 1218c516e8dac6c70bc50e225acba31338a2f91e
  1. .github/
  2. app/
  3. assembly-release/
  4. binary-includes/
  5. db-utils/
  6. docker/
  7. docs/
  8. it-selenium/
  9. skills/
  10. testing/
  11. .asf.yaml
  12. .gitignore
  13. CHANGES.md
  14. CONTRIBUTING.md
  15. doap_roller.rdf
  16. docker-compose.yml
  17. Dockerfile
  18. LICENSE.txt
  19. nbactions.xml
  20. NOTICE.txt
  21. pom.xml
  22. README.md
  23. version-rules.xml
README.md

Apache Roller

Apache Roller is a Java-based, full-featured, multi-user and group-blog server suitable for blog sites large and small. Roller is typically run with Apache Tomcat and MySQL. Roller is made up of the following Maven projects:

  • roller-project: Top level project
  • app: Roller Weblogger webapp, JSP pages, Velocity templates
  • assembly-release: Used to create official distributions of Roller
  • docs: Roller documentation in ASCII Doc format
  • it-selenium: Integrated browser tests for Roller using Selenium

Documentation

The Roller Install, User and Template Guides are available in ODT format (for OpenOffice or LibraOffice):

For more information

Hit the Roller Confluence wiki:

Installing Roller

If you want to run Roller in production, then you should down load the latest official release and install it by following the Installation Guide, which you can find at the documentation link: https://github.com/apache/roller/tree/master/docs.

Quick start: Running via Maven

You probably should not run Roller in production using this technique, but it‘s a relatively easy way to try Roller for yourself. Assuming you’ve got a UNIX shell, Java, Maven and Git:

Get the code:

$ git clone https://github.com/apache/roller.git

Compile and build Roller:

$ cd roller
$ mvn -DskipTests=true install

Run Roller in Jetty with an embedded Derby database (for testing only):

$ mvn jetty:run

Once Jetty is up and running browse to http://localhost:8080/roller to try to Roller.

Quick start: running via Docker

Another way to try Roller is to use Docker. This is actually easier than running via Maven because you do not need Maven or Java. If you‘ve got Docker, here’s how you can run Roller for demo purposes.

Get the code:

$ git clone https://github.com/apache/roller.git

Run Docker Compose to build and launch Roller along with a PostgreSQL database:

$ cd roller
$ docker-compose up

It will take a while to build and start the Docker image. Once it's done browse to http://localhost:8080/roller to try Roller.