The easy Weblog and Wiki Software
[ start | index | login ]
start > 2004-06-22 > 1

2004-06-22 #1

Created by leo. Last edited by leo, 4 years and 67 days ago. Viewed 1,098 times. #3
[diff] [history] [edit] [rdf]
labels
attachments

New Version 0.5.2a of SnipSnap released

After some testing on SnipSnap.org the Version 0.5.2a of SnipSnap has been released. It contains the latest changes including support for multiple SnipSpaces within a single web application, anti SPAM measures (blacklist, disable) and many more bugfixes.

Users of a MySQL database may need to tweak the database schema. New Users should use the Filesystem Storage or the Embedded Mckoi Database.

SnipSnap is a technology that is very flexible and easy to use. However, the use in a public environment always contains some risks. Before you deploy this software for public use make sure you understand the implications of a publicly editable site. Depending on the country where you are using this software you may be required to constantly monitor the content of your site and take appropriate measures to abide the law.

Additionally, read and understand the License Agreement the software is released under. Especially noteworthy is §12:

12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

Icon-Comment theflow, 4 years and 67 days ago. Icon-Permalink

Cool :) Is this mysterious bug, which causes 99% CPU-Load and the non-responding of snipsnap fixed?

What do you mean by "Users of a MySQL database may need to tweak the database schema"?

Icon-Comment ivar, 4 years and 67 days ago. Icon-Permalink

congrats on the release !.. looking at the roadmap it appears that 1.0 is on the horizon..

Icon-Comment leo, 4 years and 67 days ago. Icon-Permalink

The mystery bug is related to massive hits (20-30/sec) by spam bots and running out of threads in the java VM.

I wanted to include support for locale based JDBC configuration. As this is not in the current release you may need to alter the table snip to have the column for attachments be LONGTEXT.

Icon-Comment phobia, 4 years and 67 days ago. Icon-Permalink

An orange XML badge next to the recently changed sidebar for the >>feed might be nice.

Icon-Comment leo, 4 years and 67 days ago. Icon-Permalink

Good idea, I am going to integrate this with the recent-changes macro. But there seems to be a bug in the code. The title of the feed is "Community Building Event" which is a completely different instance of SnipSnap.

Icon-Comment carsten, 4 years and 67 days ago. Icon-Permalink

Hm, my install failed to load all of the snips when importing the old database. And the repair command fails:

$> java -jar lib/snipsnap-utils.jar repair ~/backup.snip ~/repaired.snip applications/
Exception in thread "main" java.lang.InternalError: unexpected exception during linking: java.lang.ClassNotFoundException: org.dom4j.io.OutputFormat
   at 0x4016c24b: java.lang.Throwable.Throwable(java.lang.String) (/usr/lib/libgcj.so.2)
[...]

Perhaps I'm the repair syntax is not correct? Where is <path-to-application> expected to point to?

Icon-Comment leo, 4 years and 67 days ago. Icon-Permalink

The webapp directory is where the WEB-INF directory is located.
  1. v0.4.2a up to 0.5a applications/_8668_/
b. 0.5.1a applications/_8668_/webapp/

Also, try using the standard SDK from sun.

Icon-Comment carsten, 4 years and 67 days ago. Icon-Permalink

Oh, I am stupid! I run snipsnap with SDK 1.4.2_03,but the compiler was GJC. Well,that is fixed. But now I get the error:

Exception in thread "main" java.lang.NoClassDefFoundError: org/dom4j/DocumentException
        at org.snipsnap.server.AdminClient.execute(AdminClient.java:107)
        at org.snipsnap.server.AdminClient.main(AdminClient.java:68)

What is that about? Oh, I'm running the snipsnap-utils.jar repair from the newly install snipsnap-0.5.2 directory, pointing <path-to-application> to the old 0.5.1a application path. Is that right?

Icon-Comment akihiko, 4 years and 66 days ago. Icon-Permalink

Version 0.5.2a shows only one "1" or "2" in "index" page. Can I ask if this is intended change or bug?

Icon-Comment leo, 4 years and 66 days ago. Icon-Permalink

This is not really a bug but also not intended. The list renderer is undergoing another display to make useful names of such snips.

Icon-Comment phobia, 4 years and 66 days ago. Icon-Permalink

There seems to be a bug where some snip pages do not display the comments links. See Calendar Requirements for an example.

Icon-Comment carsten, 4 years and 66 days ago. Icon-Permalink

Back to my issue. Do I have to install dom4j by myself? Or is it included in SnipSnap? Because the error points to org.dom4j.*

Icon-Comment carsten, 4 years and 66 days ago. Icon-Permalink

oh, ok. I just copied the dom4j.jar from the old applications/_8668_/webapp/WEB-INF/lib/ to snipsnap-0.5.2a/lib and now it works. Well, almost works. After displaying this:

snipsnap-0.5.2a# java -jar /var/snipsnap-0.5.2a/lib/snipsnap-utils.jar repair /root/backup.snip /var/snipsnap-0.5.2a/repaired.snip /var/snipsnap-0.5.2a/applications/_8668_/webapp/
SnipSnap AdminClient ($Revision: 1.11 $)
Copyright (c) 2000-2004 Fraunhofer Gesellschaft
Fraunhofer Institute for Computer Architecture and Software Technology
All Rights Reserved. See License Agreement for terms and conditions of use.
Responsible Authors: Stephan J. Schmidt, Matthias L. Jugel.
STEP 1: parsing input file …
0%...Unable to read input document: org.dom4j.DocumentException: Error on line 9717 of document  : Unzulässiges XML-Zeichen  Nested exception: Unzulässiges XML-Zeichen 
This is usually the case for illegal XML characters, please manually edit the file and remove them.

the parsing stops. Is that because my exported snip is not utf-8 or something like that? It sounds like a charset failure to me.

Icon-Comment leo, 4 years and 66 days ago. Icon-Permalink

It should be included. the problem is a misconfiguration in the build process. Extract dom4j.jar from the lib/snipsnap.war (WEB-INF/lib/dom4j.jar) and put it into lib. I am updating the package to correct this.

Icon-Comment carsten, 4 years and 66 days ago. Icon-Permalink

Ok, I already copied dom4j.jar, but no I stuck with another error while parsing the exported snip.

In the named line I found snips with Umlauts in their names. Is it possible to convert the Umlauts into valid XML tags? I'm using linux, as you may already noticed. Perhaps there's a nice sed to change the invalid Umlauts into XML characters?

Icon-Comment spalanzani, 4 years and 66 days ago. Icon-Permalink

Why is everything so German now? Here at snipsnap.org and at our site cognitive-agents.org (when running 0.5.2). I'd love to upgrade to get rid of the spam, but as the language setting seems to have no effect and all output is in german no matter what I chose, I'm stuck with 0.5.1 at the moment. So, why's everything so German?

Icon-Comment leo, 4 years and 66 days ago. Icon-Permalink

@spalanzani: Set the accepted language of your browser to english if you don't want german. SnipSnap presents what the browser tells it to.

@carsten: is it about an entity expansion limit? run the java command with

java -DentityExpansionLimit=1000000 ...

Icon-Comment carsten, 4 years and 65 days ago. Icon-Permalink

@leo: I tried that, but unfortunally it doesn't make it work. I think my language settings are not correct. I switched my console environment to UTF-8 now, but that's not the point. I think the german umlauts in my snip names and snip contents are not recognized by dom4j, because it tells me that __ is an invalid XML char.

Can you give me a hint what my system lang should be set to when running snipsnap? Does it matter when I run it from a console with locale ISO-8859-1 or UTF-8?

Icon-Comment spalanzani, 4 years and 65 days ago. Icon-Permalink

@leo: Uhm. I now understand it's a feature, but I'm not sure our users will. People who don't know what SnipSnap is and how it works can't tell content and snipspace-navigation (the portlet) from basic navigation. Having two languages on the same page for no apparent reason will simply look odd to them.

It would be good to have the possibility to override the browser setting and force SnipSnap's output to one specific language.

Icon-Comment ThoMo, 4 years and 65 days ago. Icon-Permalink

@spalanzani: If you want to support only english you only need to remove the other language files (in WEB-INF/i18n/*_[de|nl|it].properties) from the snipsnap.war archiv.

Icon-Comment pdinoto, 4 years and 65 days ago. Icon-Permalink

Hello,

I have been using 0.5.1a without problems. I wanted to upgrade, so made an export, stopped old server and then executed

[root@radius snipsnap-0.5.2a]# $JAVA_HOME/bin/java -Xsqnopause -XX:+UseLWPSynchronization -Xms512m -Xmx1024m -Xss256k -XX:MaxNewSize=96m -XX:MaxPermSize=512m -DentityExpansionLimit=1000000-Xmx512m -jar lib/snipsnap-utils.jar repair web-o-matic-20040624.snip repair.snip applications/_80_/webapp/
SnipSnap AdminClient ($Revision: 1.11 $)
Copyright (c) 2000-2004 Fraunhofer Gesellschaft
Fraunhofer Institute for Computer Architecture and Software Technology
All Rights Reserved. See License Agreement for terms and conditions of use.
Responsible Authors: Stephan J. Schmidt, Matthias L. Jugel.
STEP 1: parsing input file …
0%....20%....40%....60%....80%....
STEP 2: checking SnipSpace consistency …
STEP 2.1: checking for duplicates …
Found 0 identical duplicates, replaced 0, ignored 0.
STEP 2.2: finishing user data (1)…
STEP 2.3: fixing snip data (91) and attachments …
Exception in thread "main" java.lang.NullPointerException
        at org.snipsnap.util.XMLSnipRepair.storeOldImages(XMLSnipRepair.java:285)
        at org.snipsnap.util.XMLSnipRepair.repair(XMLSnipRepair.java:255)
        at org.snipsnap.util.XMLSnipRepair.repair(XMLSnipRepair.java:75)
        at org.snipsnap.server.AdminClient.execute(AdminClient.java:107)
        at org.snipsnap.server.AdminClient.main(AdminClient.java:68)
[root@radius snipsnap-0.5.2a]#

Any ideas? Want more debug info, explain me how to get it! :)

BTW, all those command line arguments to bin/java were copied from run.sh. Without them, the process stops at 40% with OutOfMemory.

Icon-Comment leo, 4 years and 65 days ago. Icon-Permalink

You don't need to export/import for upgrading from 0.5.1a. Simply copy the applications directory over to the 0.5.2a dir and start the server. I will still take a look at that bug. Please report bugs on >>http://bugs.snipsnap.org/

Icon-Comment mackdav, 4 years and 65 days ago. Icon-Permalink

Stupid question time, sorry.

I'm running with a collection of data started from 0.3.3a, and migrated to 0.5a, and then to where I am now running 0.5.2a today. I have obviously done something wrong, as I have a number of problems:

  • the calendar macro still doesn't recognize blog entries.
  • I have two powered by SnipSnap style footers on the bottom of every page.
  • the setup page looks odd -- everything is displayed like this: ???config.step.application???
  • I don't see how to edit users and their permissions from this setup page
  • 0.5.2a appears much slower than did 0.5a (but I'll freely admit that the problem is probably not helped at all by the K6/2-350 running the process).
  • The recover password email is HTML only. Probably by design, yes, but it makes it hard to read on non-HTML email readers.
The last two items are probably enhancement requests or real bugs, but the rest of the problems suggest to me that I've buggered my data somehow through the migration process.

If I can provide more information, or there is a more appropriate forum, please let me know.

Thanks for your time.

(Edit: remove one stupid question because it really was stupid. Sorry.)

Icon-Comment leo, 4 years and 65 days ago. Icon-Permalink

  • The calendar macro is still buggy.
  • You seem to have a few duplicated snips. Check this by running the maintenance consistency check from setup. Right now you cannot fix this from a running SnipSnap instance but I am working on a solution. You can copy the contents of the footer snip (snipsnap-copyright) and delete the original snip, then create it anew and put the content back into it.
  • This is odd, hat is the default language of your browser?
  • There is a user management part in the setup. It displays a list of users and clicking on one user lets you edit the user (must be logged off!)
The recover password mail is not intended to be HTML. However, I think it comes with a text alternative. If not we are changing that.

Icon-Comment carsten, 4 years and 65 days ago. Icon-Permalink

Eh, perhaps I should just copy the directories too. I used 0.5.1a before… I try that (keeping a backup of ALL in the other hand… ;) ).

Icon-Comment carsten, 4 years and 65 days ago. Icon-Permalink

errr, ok. That solves my problem. The new snipsnap started successfully after copying the applications dir to the new directory. You can laugh on me now...

Anyway, the problem with my invalid XML chars could be when doing the next export/import.

Icon-Comment leo, 4 years and 65 days ago. Icon-Permalink

@akihiko I wondered about this too. This is a bug.

Icon-Comment mackdav, 4 years and 65 days ago. Icon-Permalink

Leo: Thanks for the replies.

I was playing with the setup page and found the user manager pieces -- they were just labeled as ???config.step.users???.

Running the maintenance consistancy check found a couple of orphaned comments and made snipsnap-copyright contain the duplication (which I have edited and fixed).

My browser is a stock Mozilla 1.6, running on Windows XP (which has been told that its location is Canada). Trying Mozilla 1.5 on Linux, and IE 6 on XP all display the setup items the same way.

Icon-Comment pdinoto, 4 years and 64 days ago. Icon-Permalink

@leo reported to bug tracker.

Icon-Comment mackdav, 4 years and 62 days ago. Icon-Permalink

My 0.5.2a has a copy of snipsnap-help which harkens back to 0.3.3a (because that's when my first instance was) -- is there an easy way to get the text of the 0.5.2a version of this page so that I can see the nice new features?

Icon-Comment agustin, 4 years and 53 days ago. Icon-Permalink

Yes, there is an easy way (remember the raw-trick):
  1. Visit >>http://snipsnap.org/raw/snipsnap-help, select all, copy.
  2. Visit your snipsnap-help page, edit it, select all, paste, save, enjoy.
Please login to post a comment.

What is SnipSnap?
SnipSnap is a free and easy to install weblog and wiki tool written in Java.

SnipSnap download
Current version: 1.0b3-uttoxeter
Try our >>Web Start Demo!

Resources

5567 Users and 13713 Snips. Installed 6 years and 48 days ago

Logged in Users: (2)
… and 28 Guests.

snipsnap-changed for older changes.

< August 2008 >
SunMonTueWedThuFriSat
12
3456789
10111213141516
17181920212223
24252627282930
31

snipsnap
Listed on BlogShares
XHTML 1.0 validated
CSS validated
RSS 2.0 validated
RSS Feed

pico-powered

Powered by SnipSnap 1.0b3-uttoxeter
YourKit >>Java Profiler

Fraunhofer FIRST

snipsnap.org | Copyright 2000-2006 Fraunhofer FIRST