You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Joachim Draeger (JIRA)" <se...@james.apache.org> on 2006/05/24 15:55:29 UTC

[jira] Created: (JAMES-507) inboxRepository is initialized at James.initialize() with inboxRootURL

inboxRepository is initialized at James.initialize() with inboxRootURL
----------------------------------------------------------------------

         Key: JAMES-507
         URL: http://issues.apache.org/jira/browse/JAMES-507
     Project: James
        Type: Bug

  Components: James Core  
    Versions: 2.3.0a1, 2.3.0a2, 2.3.0a3    
 Environment: James trunk  revision 409153
    Reporter: Joachim Draeger
    Priority: Minor
     Fix For: 2.4.0


this causes the implementation of MailRepository that is used as inboxRepository  to be called at startup with the inboxRootURL.
The inboxRootURL is only a prefix for the real repository without a specific user.
The MailRepository could stumble over the incomplete url/path or create files at the wrong position.

Minor, because currently used MailRepositories do not seem to have problems with that.

This is a characteristic log message in mailstore.log at startup:
(repositoryName = 'null')

4/05/06 15:14:56 DEBUG mailstore: obtained repository: org.apache.james.mailrepository.JDBCMailRepository to handle: dbfile,MAIL
24/05/06 15:14:56 DEBUG mailstore: org.apache.james.mailrepository.JDBCMailRepository.compose()
24/05/06 15:14:56 DEBUG mailstore: org.apache.james.mailrepository.JDBCMailRepository.configure()
24/05/06 15:14:56 DEBUG mailstore: Parsed URL: table = 'inbox', repositoryName = 'null'
24/05/06 15:14:56 DEBUG mailstore: Got filestore for JdbcMailRepository: file://var/dbmail
24/05/06 15:14:56 DEBUG mailstore: org.apache.james.mailrepository.JDBCMailRepository created according to dbfile://maildb/inbox/
24/05/06 15:14:56 DEBUG mailstore: org.apache.james.mailrepository.JDBCMailRepository.initialize()




-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Updated: (JAMES-507) inboxRepository is initialized at James.initialize() with inboxRootURL

Posted by "Joachim Draeger (JIRA)" <se...@james.apache.org>.
     [ http://issues.apache.org/jira/browse/JAMES-507?page=all ]

Joachim Draeger updated JAMES-507:
----------------------------------

    Attachment: inboxrep-rooturl-r409153.patch

patch has to tested for side affects. Maybe there are Mailrepositories that depend on being configured on startup that way

> inboxRepository is initialized at James.initialize() with inboxRootURL
> ----------------------------------------------------------------------
>
>          Key: JAMES-507
>          URL: http://issues.apache.org/jira/browse/JAMES-507
>      Project: James
>         Type: Bug

>   Components: James Core
>     Versions: 2.3.0a1, 2.3.0a2, 2.3.0a3
>  Environment: James trunk  revision 409153
>     Reporter: Joachim Draeger
>     Priority: Minor
>      Fix For: 2.4.0
>  Attachments: inboxrep-rooturl-r409153.patch
>
> this causes the implementation of MailRepository that is used as inboxRepository  to be called at startup with the inboxRootURL.
> The inboxRootURL is only a prefix for the real repository without a specific user.
> The MailRepository could stumble over the incomplete url/path or create files at the wrong position.
> Minor, because currently used MailRepositories do not seem to have problems with that.
> This is a characteristic log message in mailstore.log at startup:
> (repositoryName = 'null')
> 4/05/06 15:14:56 DEBUG mailstore: obtained repository: org.apache.james.mailrepository.JDBCMailRepository to handle: dbfile,MAIL
> 24/05/06 15:14:56 DEBUG mailstore: org.apache.james.mailrepository.JDBCMailRepository.compose()
> 24/05/06 15:14:56 DEBUG mailstore: org.apache.james.mailrepository.JDBCMailRepository.configure()
> 24/05/06 15:14:56 DEBUG mailstore: Parsed URL: table = 'inbox', repositoryName = 'null'
> 24/05/06 15:14:56 DEBUG mailstore: Got filestore for JdbcMailRepository: file://var/dbmail
> 24/05/06 15:14:56 DEBUG mailstore: org.apache.james.mailrepository.JDBCMailRepository created according to dbfile://maildb/inbox/
> 24/05/06 15:14:56 DEBUG mailstore: org.apache.james.mailrepository.JDBCMailRepository.initialize()

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Resolved: (JAMES-507) inboxRepository is initialized at James.initialize() with inboxRootURL

Posted by "Stefano Bagnara (JIRA)" <se...@james.apache.org>.
     [ http://issues.apache.org/jira/browse/JAMES-507?page=all ]
     
Stefano Bagnara resolved JAMES-507:
-----------------------------------

    Resolution: Fixed

No repository should depend on this call otherwise ToRepository and FromRepository would not work, anyway.
The main problem is that after the patch we check the validity only after the first mail inbox is selected. I also add that previously it was possible to configure bad urls that passed the first check but failed at the first real inbox request.


> inboxRepository is initialized at James.initialize() with inboxRootURL
> ----------------------------------------------------------------------
>
>          Key: JAMES-507
>          URL: http://issues.apache.org/jira/browse/JAMES-507
>      Project: James
>         Type: Bug

>   Components: James Core
>     Versions: 2.3.0a1, 2.3.0a2, 2.3.0a3
>  Environment: James trunk  revision 409153
>     Reporter: Joachim Draeger
>     Assignee: Stefano Bagnara
>     Priority: Minor
>      Fix For: 2.4.0
>  Attachments: inboxrep-rooturl-r409153.patch
>
> this causes the implementation of MailRepository that is used as inboxRepository  to be called at startup with the inboxRootURL.
> The inboxRootURL is only a prefix for the real repository without a specific user.
> The MailRepository could stumble over the incomplete url/path or create files at the wrong position.
> Minor, because currently used MailRepositories do not seem to have problems with that.
> This is a characteristic log message in mailstore.log at startup:
> (repositoryName = 'null')
> 4/05/06 15:14:56 DEBUG mailstore: obtained repository: org.apache.james.mailrepository.JDBCMailRepository to handle: dbfile,MAIL
> 24/05/06 15:14:56 DEBUG mailstore: org.apache.james.mailrepository.JDBCMailRepository.compose()
> 24/05/06 15:14:56 DEBUG mailstore: org.apache.james.mailrepository.JDBCMailRepository.configure()
> 24/05/06 15:14:56 DEBUG mailstore: Parsed URL: table = 'inbox', repositoryName = 'null'
> 24/05/06 15:14:56 DEBUG mailstore: Got filestore for JdbcMailRepository: file://var/dbmail
> 24/05/06 15:14:56 DEBUG mailstore: org.apache.james.mailrepository.JDBCMailRepository created according to dbfile://maildb/inbox/
> 24/05/06 15:14:56 DEBUG mailstore: org.apache.james.mailrepository.JDBCMailRepository.initialize()

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Assigned: (JAMES-507) inboxRepository is initialized at James.initialize() with inboxRootURL

Posted by "Stefano Bagnara (JIRA)" <se...@james.apache.org>.
     [ http://issues.apache.org/jira/browse/JAMES-507?page=all ]

Stefano Bagnara reassigned JAMES-507:
-------------------------------------

    Assign To: Stefano Bagnara

> inboxRepository is initialized at James.initialize() with inboxRootURL
> ----------------------------------------------------------------------
>
>          Key: JAMES-507
>          URL: http://issues.apache.org/jira/browse/JAMES-507
>      Project: James
>         Type: Bug

>   Components: James Core
>     Versions: 2.3.0a1, 2.3.0a2, 2.3.0a3
>  Environment: James trunk  revision 409153
>     Reporter: Joachim Draeger
>     Assignee: Stefano Bagnara
>     Priority: Minor
>      Fix For: 2.4.0
>  Attachments: inboxrep-rooturl-r409153.patch
>
> this causes the implementation of MailRepository that is used as inboxRepository  to be called at startup with the inboxRootURL.
> The inboxRootURL is only a prefix for the real repository without a specific user.
> The MailRepository could stumble over the incomplete url/path or create files at the wrong position.
> Minor, because currently used MailRepositories do not seem to have problems with that.
> This is a characteristic log message in mailstore.log at startup:
> (repositoryName = 'null')
> 4/05/06 15:14:56 DEBUG mailstore: obtained repository: org.apache.james.mailrepository.JDBCMailRepository to handle: dbfile,MAIL
> 24/05/06 15:14:56 DEBUG mailstore: org.apache.james.mailrepository.JDBCMailRepository.compose()
> 24/05/06 15:14:56 DEBUG mailstore: org.apache.james.mailrepository.JDBCMailRepository.configure()
> 24/05/06 15:14:56 DEBUG mailstore: Parsed URL: table = 'inbox', repositoryName = 'null'
> 24/05/06 15:14:56 DEBUG mailstore: Got filestore for JdbcMailRepository: file://var/dbmail
> 24/05/06 15:14:56 DEBUG mailstore: org.apache.james.mailrepository.JDBCMailRepository created according to dbfile://maildb/inbox/
> 24/05/06 15:14:56 DEBUG mailstore: org.apache.james.mailrepository.JDBCMailRepository.initialize()

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org