summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@owncloud.com>2016-05-12 11:19:17 +0200
committerChristoph Wurst <christoph@owncloud.com>2016-05-12 11:19:17 +0200
commitc28e462583e9ef32266dfc1285b986c4d2673294 (patch)
tree62330c333904504c488350313404e7c5e080d37a
parent1def89b2c56e372a2d01e1c208ffe97cd7756a45 (diff)
downloadnextcloud-server-c28e462583e9ef32266dfc1285b986c4d2673294.tar.gz
nextcloud-server-c28e462583e9ef32266dfc1285b986c4d2673294.zip
Use CLOB for auth token names to allow long user agent strings
-rw-r--r--db_structure.xml3
-rw-r--r--tests/lib/authentication/token/defaulttokenprovidertest.php5
-rw-r--r--version.php2
3 files changed, 6 insertions, 4 deletions
diff --git a/db_structure.xml b/db_structure.xml
index 7b4a3b53294..6e57b003fcf 100644
--- a/db_structure.xml
+++ b/db_structure.xml
@@ -1065,10 +1065,9 @@
<field>
<name>name</name>
- <type>text</type>
+ <type>clob</type>
<default></default>
<notnull>true</notnull>
- <length>100</length>
</field>
<field>
diff --git a/tests/lib/authentication/token/defaulttokenprovidertest.php b/tests/lib/authentication/token/defaulttokenprovidertest.php
index 5ee33d0ec11..1902227a4fa 100644
--- a/tests/lib/authentication/token/defaulttokenprovidertest.php
+++ b/tests/lib/authentication/token/defaulttokenprovidertest.php
@@ -62,7 +62,10 @@ class DefaultTokenProviderTest extends TestCase {
$token = 'token';
$uid = 'user';
$password = 'passme';
- $name = 'Some browser';
+ $name = 'User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12'
+ . 'User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12'
+ . 'User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12'
+ . 'User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12';
$type = IToken::PERMANENT_TOKEN;
$toInsert = new DefaultToken();
diff --git a/version.php b/version.php
index 81e0bc1b067..d9e1ca1df1c 100644
--- a/version.php
+++ b/version.php
@@ -26,7 +26,7 @@
// We only can count up. The 4. digit is only for the internal patchlevel to trigger DB upgrades
// between betas, final and RCs. This is _not_ the public version number. Reset minor/patchlevel
// when updating major/minor version number.
-$OC_Version = array(9, 1, 0, 1);
+$OC_Version = array(9, 1, 0, 2);
// The human readable string
$OC_VersionString = '9.1.0 pre alpha';