Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Commit

Permalink
Martus Client 5.1.1 Release Dec 2015
Browse files Browse the repository at this point in the history
  • Loading branch information
clapierre committed Jan 15, 2016
1 parent a9ed5cd commit d821c9a
Show file tree
Hide file tree
Showing 16,402 changed files with 578,654 additions and 66,528 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
5 changes: 4 additions & 1 deletion README.md
@@ -1 +1,4 @@
martus
Martus Project
This contains the Server, Client, and Android versions.
The amplifier was for public data viewing but now all records are private and can no
longer be amplified.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,51 @@
any language=any language
?=-Other-
en=English
ar=Arabic
az=Azerbaijani
bg=Bulgarian
bn=Bengali, Bangla
my=Burmese
zh=Chinese
nl=Dutch
eo=Esperanto
fa=Farsi, Dari
fr=French
de=German
gu=Gujarati
ha=Hausa
he=Hebrew
hi=Hindi
hu=Hungarian
it=Italian
ja=Japanese
jv=Javanese
kn=Kannada
kk=Kazakh
km=Khmer
ky=Kirghiz
ko=Korean
ml=Malayalam
mr=Marathi
ne=Nepali
or=Oriya
pa=Panjabi
ps=Pashto, Pushto
pl=Polish
pt=Portuguese
ro=Romanian
ru=Russian
sr=Serbian
sd=Sindhi
si=Sinhalese
es=Spanish
ta=Tamil
tg=Tajik
te=Telugu
th=Thai
tr=Turkish
tk=Turkmen
uk=Ukranian
ur=Urdu
uz=Uzbek
vi=Vietnamese
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,94 @@
<!--
The Martus(tm) free, social justice documentation and
monitoring software. Copyright (C) 2001-2003, Beneficent
Technology, Inc. (Benetech).
Martus is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later
version with the additions and exceptions described in the
accompanying Martus license file entitled "license.txt".
It is distributed WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, including warranties of fitness of purpose or
merchantability. See the accompanying Martus License and
GPL license for more details on the required license terms
for this software.
You should have received a copy of the GNU General Public
License along with this program; if not, write to the Free
Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>

<STYLE TYPE="text/css" MEDIA=screen>
<!--
BODY { font-size: -1;font-family: sans-serif;}
TITLE { font-size: -1;font-family: sans-serif;}
TABLE { font-size: -1;font-family: sans-serif;}
A { font-size: -1;font-family: sans-serif;}
-->
</STYLE>

<title>Martus Search</title>

<table border='0' width='100%'>
<tr>
<td>
<img src="../images/MartusLogo.gif" alt="Martus Logo"/ border='0'>
</td>
<td align='right'>
<img src="../images/cobrand.gif" alt="Cobrand"/ border='0'>
</td>
</tr>
</table>

<br/><br/>

<table cellSpacing=0 cellPadding=1 width="100%" bgColor=#5588ee border=0>
<tbody>
<tr>
<td noWrap>
<font color=#ffffff size='+1'>
Martus Search
</font>
</td>
</tr>
</tbody>
</table>

</head>

<body>
</br>
Want to search the Martus Human Rights Search Engine? </br>
Follow the link to our <a href="https://SERVERNAME/servlet/SimpleSearch"> secure site</a> to begin your search.
</br>
</br>
<table cellSpacing='0' cellPadding='1' width="100%" bgColor="#5588ee" border='0'>
<tbody>
<tr>
<td noWrap align='center'>
&nbsp;
</td>
</tr>
</tbody>
</table>
<center>
<font size='-2'>
The Martus&#153; Search Engine and related software
was developed and is licensed to the Website Operator
by Beneficent Technology, Inc., &#0169;2002-2003

</font>
</center>

</body>
</html>

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Expand Up @@ -65,7 +65,7 @@ public InputStream getAttachment(UniversalId attachmentId) throws AttachmentStor
{
try
{
return db.openInputStream(DatabaseKey.createSealedKey(attachmentId), db.security);
return db.openInputStream(DatabaseKey.createImmutableKey(attachmentId), db.security);
}
catch (Exception e)
{
Expand All @@ -77,7 +77,7 @@ public long getAttachmentSizeInKb(UniversalId attachmentId) throws AttachmentSto
{
try
{
int sizeInBytes = db.getRecordSize(DatabaseKey.createSealedKey(attachmentId));
int sizeInBytes = db.getRecordSize(DatabaseKey.createImmutableKey(attachmentId));
int sizeInKb = sizeInBytes / Kbytes;
if(sizeInKb == 0)
sizeInKb = 1;
Expand All @@ -93,7 +93,7 @@ public long getAttachmentSizeInBytes(UniversalId attachmentId) throws Attachment
{
try
{
return db.getRecordSize(DatabaseKey.createSealedKey(attachmentId));
return db.getRecordSize(DatabaseKey.createImmutableKey(attachmentId));
}
catch (Exception e)
{
Expand All @@ -105,7 +105,7 @@ public void putAttachment(UniversalId attachmentId, InputStream data) throws Att
{
try
{
db.writeRecord(DatabaseKey.createSealedKey(attachmentId), data);
db.writeRecord(DatabaseKey.createImmutableKey(attachmentId), data);
}
catch (Exception e)
{
Expand Down Expand Up @@ -171,17 +171,17 @@ private void removeContactInfoNonDataElements(Vector info)

public void putDataPacket(UniversalId uid, ZipEntryInputStreamWithSeek data) throws IOException, RecordHiddenException, CryptoException
{
db.writeRecord(DatabaseKey.createSealedKey(uid), data);
db.writeRecord(DatabaseKey.createImmutableKey(uid), data);
}

public FieldDataPacket getFieldDataPacket(UniversalId uid) throws Exception
{
FieldSpecCollection standardPublicFieldSpecs = StandardFieldSpecs.getDefaultTopSetionFieldSpecs();
FieldSpecCollection standardPublicFieldSpecs = StandardFieldSpecs.getDefaultTopSectionFieldSpecs();
FieldDataPacket fdp = new FieldDataPacket(uid, standardPublicFieldSpecs);
InputStreamWithSeek in = null;
try
{
in = db.openInputStream(DatabaseKey.createSealedKey(fdp.getUniversalId()),db.security);
in = db.openInputStream(DatabaseKey.createImmutableKey(fdp.getUniversalId()),db.security);
fdp.loadFromXml(in, null);
}
finally
Expand Down
Expand Up @@ -29,8 +29,6 @@ monitoring software. Copyright (C) 2001-2007, Beneficent
import java.io.IOException;
import java.io.InputStream;

import junit.framework.Assert;

import org.martus.amplifier.attachment.AttachmentNotFoundException;
import org.martus.amplifier.attachment.AttachmentStorageException;
import org.martus.amplifier.attachment.DataManager;
Expand Down Expand Up @@ -71,7 +69,7 @@ public void testClearAllAttachments()
try {
in = attachmentManager.getAttachment(id);
} catch (AttachmentStorageException e) {
Assert.fail("Expected an attachment for id: " + id);
fail("Expected an attachment for id: " + id);
} finally {
if (in != null) {
in.close();
Expand All @@ -85,7 +83,7 @@ public void testClearAllAttachments()
} finally {
if (in != null) {
in.close();
Assert.fail(
fail(
"Found something after clearing all attachments");
}
}
Expand All @@ -107,7 +105,7 @@ public void testSimplePutAndGetAttachment()
InputStream in = null;
try {
in = attachmentManager.getAttachment(id);
Assert.assertEquals(testString, inputStreamToString(in));
assertEquals(testString, inputStreamToString(in));
} finally {
if (in != null) {
in.close();
Expand All @@ -131,7 +129,7 @@ public void testPutAndGetTwoSameAccount()
InputStream in = null;
try {
in = attachmentManager.getAttachment(id);
Assert.assertEquals(testString, inputStreamToString(in));
assertEquals(testString, inputStreamToString(in));
} finally {
if (in != null) {
in.close();
Expand All @@ -149,7 +147,7 @@ public void testPutAndGetTwoSameAccount()
in = null;
try {
in = attachmentManager.getAttachment(id2);
Assert.assertEquals(testString2, inputStreamToString(in));
assertEquals(testString2, inputStreamToString(in));
} finally {
if (in != null) {
in.close();
Expand All @@ -174,7 +172,7 @@ public void testPutAndGetTwoDifferentAccounts()
InputStream in = null;
try {
in = attachmentManager.getAttachment(id);
Assert.assertEquals(testString, inputStreamToString(in));
assertEquals(testString, inputStreamToString(in));
} finally {
if (in != null) {
in.close();
Expand All @@ -193,7 +191,7 @@ public void testPutAndGetTwoDifferentAccounts()
in = null;
try {
in = attachmentManager.getAttachment(id2);
Assert.assertEquals(testString2, inputStreamToString(in));
assertEquals(testString2, inputStreamToString(in));
} finally {
if (in != null) {
in.close();
Expand Down Expand Up @@ -238,7 +236,7 @@ public void testOverwriteExistingAttachment()
InputStream in = null;
try {
in = attachmentManager.getAttachment(id);
Assert.assertEquals(testString, inputStreamToString(in));
assertEquals(testString, inputStreamToString(in));
} finally {
if (in != null) {
in.close();
Expand All @@ -255,7 +253,7 @@ public void testOverwriteExistingAttachment()
in = null;
try {
in = attachmentManager.getAttachment(id);
Assert.assertEquals(testString2, inputStreamToString(in));
assertEquals(testString2, inputStreamToString(in));
} finally {
if (in != null) {
in.close();
Expand Down
Expand Up @@ -31,8 +31,6 @@ monitoring software. Copyright (C) 2001-2007, Beneficent
import java.util.Vector;
import java.util.zip.ZipFile;

import junit.framework.Assert;

import org.martus.amplifier.attachment.AttachmentStorageException;
import org.martus.amplifier.attachment.DataManager;
import org.martus.amplifier.attachment.FileSystemDataManager;
Expand Down Expand Up @@ -134,7 +132,7 @@ public void testFileSystemClearAllAttachments()
dataManager.clearAllAttachments();
File attachmentDir = new File(
getTestBasePath());
Assert.assertNull(
assertNull(
"attachments directory not empty",
attachmentDir.listFiles());
}
Expand All @@ -148,7 +146,7 @@ public void testPutGetFieldDataPackets() throws Exception
b.set(BulletinField.TAGKEYWORDS, "testing");
b.set(BulletinField.TAGENTRYDATE, "2003-04-30");
b.setAllPrivate(false);
b.setSealed();
b.setImmutable();
b.getFieldDataPacket().setEncrypted(false);

File tempFile = createTempFileFromName("$$$MartusAmpBulletinExtractorTest");
Expand Down Expand Up @@ -189,7 +187,7 @@ public void testAccountWithFileSeparators()
InputStream in = null;
try {
in = dataManager.getAttachment(id);
Assert.assertEquals(testString, inputStreamToString(in));
assertEquals(testString, inputStreamToString(in));
} finally {
if (in != null) {
in.close();
Expand Down
Expand Up @@ -46,8 +46,6 @@ public AmplifierLocalization()
super(EnglishCommonStrings.strings);
setCurrentLanguageCode(MartusAmplifier.AMP_DEFAULT_LANGUAGE);
setCurrentDateFormatCode(new DatePreference("ymd", '-').getDateTemplate());
setAdjustPersianLegacyDates(true);
setAdjustThaiLegacyDates(true);
}

public static String getLanguageString(String code)
Expand Down

0 comments on commit d821c9a

Please sign in to comment.