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

 
 

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

Submitted by:  beef <ilovebeef>
Submitted on:  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:  Lukasz Marciniak <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

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project MemberIn charge of this item.
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>
Project MemberIn charge of this item.
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

 

Do you think this task is very important?
If so, you can add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
Wed 02 Aug 2006 06:39:30 PM UTC landm Attached File- => Added cyradm.php.diff, #10454
Sun 30 Jul 2006 11:54:30 AM UTC landm StatusNone => Need Info
    Assigned toNone => landm

Back to the top


Powered by Savane 3.1-cleanup1