Browse Source

Use CLOB for auth token names to allow long user agent strings

tags/v9.1.0beta1
Christoph Wurst 8 years ago
parent
commit
c28e462583
No account linked to committer's email address
3 changed files with 6 additions and 4 deletions
  1. 1
    2
      db_structure.xml
  2. 4
    1
      tests/lib/authentication/token/defaulttokenprovidertest.php
  3. 1
    1
      version.php

+ 1
- 2
db_structure.xml View File

@@ -1065,10 +1065,9 @@

<field>
<name>name</name>
<type>text</type>
<type>clob</type>
<default></default>
<notnull>true</notnull>
<length>100</length>
</field>

<field>

+ 4
- 1
tests/lib/authentication/token/defaulttokenprovidertest.php View File

@@ -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();

+ 1
- 1
version.php View File

@@ -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';

Loading…
Cancel
Save