bugweb-cyradm - Bugs: bug #17207, Failure in first getquota attempt...

 
 

bug #17207: Failure in first getquota attempt - returns "logged in" instead of quota size.

Submitter:  beef <ilovebeef>
Submitted:  Wed 26 Jul 2006 09:10:29 AM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  normal bugs
Status:  Need Info Privacy:  Public
Assigned to:  landm Originator Name:  * Ilovebeef
Open/Closed:  Open Release:  0.5.4
Operating System:  None Reproducibility:  Every Time
Planned Release:  None Cyrus IMAP version:  None
PHP version:  4.3 Database type:  MySQL 4.1
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 02 Aug 2006 06:39:30 PM UTC, comment #3: 

Yours server answer is very log so try to change lenght of readed line in lib/cyradm.php in function getline() from 256 to 512.

Diff in attachment. If it helps let us know.

Lukasz Marciniak <landm>
Group Member
Tue 01 Aug 2006 07:55:25 AM UTC, comment #2: 

Connection test (domain and user are not real):

  • OK [CAPABILITY IMAP4 IMAP4rev1 LITERAL+ ID STARTTLS] server.domain.com Cyrus IMAP4 v2.3.6 server ready

. login user.domain.com password
. OK [CAPABILITY IMAP4 IMAP4rev1 LITERAL+ ID LOGINDISABLED ACL RIGHTS=kxte QUOTA MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT SORT=MODSEQ THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE CATENATE CONDSTORE IDLE URLAUTH] User logged in

Anonymous
Sun 30 Jul 2006 11:54:30 AM UTC, comment #1: 

Please send as answer from your Cyrus-Imap server (2.3.6) for login in command.

Exec 'telnet localhost 143'
and put line like this: . login username password
and send us the result.

If think it can be related with cyrus-imapd version (2.3.x).

Lukasz Marciniak <landm>
Group Member
Wed 26 Jul 2006 09:10:29 AM UTC, original submission:  

Web-cyradm 0.5.4
Cyrus-Imapd 2.3.6
domain_as_prefix: yes

Problem:
First attempt to get quota for user returns bad values. Returned array contains values "logged","in". In this case first record in output of browseaccount.php show quota usage 0 KB out of 0KB (0%). Other accounts in browseaccount showing quota without problems.
Input field contains word "in" instead of quota size when I trying to change quota for user.

Resolution:
I just quickly patch file lib/cyradmin.php by duplicating line 187:
$output = $this->command(". getquota \"" . $mb_name . "\"");
$output = $this->command(". getquota \"" . $mb_name . "\"");
Second quota query is working fine so I think that first getquota attempt now returns only words "logged in".

Note:
This is not clean resolution but it may suggest how to solve the problem. I think that cyrus imap server now communicate slightly different with web-cyradm.

beef <ilovebeef>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #10454:  cyradm.php.diff added by landm (304B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-08-02 landm Attached File- Added cyradm.php.diff, #10454
2006-07-30 landm StatusNone Need Info
    Assigned toNone landm

Back to the top

Powered by Savane 3.13-4448.
Corresponding source code