https://projects.ecoinformatics.org/ecoinfo/https://projects.ecoinformatics.org/ecoinfo/ecoinfo/favicon.ico?14691340362010-02-22T21:44:21ZEcoinformatics RedmineKepler - Bug #4799: "Login Anonymously" gave an error during the data searchhttps://projects.ecoinformatics.org/ecoinfo/issues/4799?journal_id=164992010-02-22T21:44:21Zdebi staggsstaggs@nceas.ucsb.edu
<ul></ul><p>This has now been fixed.</p> Kepler - Bug #4799: "Login Anonymously" gave an error during the data searchhttps://projects.ecoinformatics.org/ecoinfo/issues/4799?journal_id=165002010-02-23T18:24:08ZChad Berkleyberkley@nceas.ucsb.edu
<ul></ul><p>this is not fixed for me. After merging the changes from the trunk to the branch, I have to click the "login anonymously" button three times, at which point the "datos" search works, but I'm not sure that it is actually logging in. Debi, can you confirm that this works on the 2.0 branch?</p> Kepler - Bug #4799: "Login Anonymously" gave an error during the data searchhttps://projects.ecoinformatics.org/ecoinfo/issues/4799?journal_id=165012010-02-24T18:05:53ZJing Taotao@nceas.ucsb.edu
<ul></ul><p>The error message has gone. However,the GUI showed three times when I kept clicking the "Login Anonymously" button.</p>
<p>This is on kepler 2.0 branch.</p> Kepler - Bug #4799: "Login Anonymously" gave an error during the data searchhttps://projects.ecoinformatics.org/ecoinfo/issues/4799?journal_id=165022010-02-26T18:38:00Zben leinfelderleinfelder@nceas.ucsb.edu
<ul></ul><p>I figured it out!</p>
<p>when you try to use the "Login Anonymously" button, the authentication service will try to look of the kepler user from the current "save repository":<br />RepositoryManager.getInstance().getSaveRepository();<br />but if you haven't checked any repository as the saveRepository, then it will be null and we can't look up the username to use.<br />If you do have a repository selected, you can login anonymously.</p>
<p>Now for the fix...</p> Kepler - Bug #4799: "Login Anonymously" gave an error during the data searchhttps://projects.ecoinformatics.org/ecoinfo/issues/4799?journal_id=165032010-02-26T18:53:01Zben leinfelderleinfelder@nceas.ucsb.edu
<ul></ul><p>Ugh. We still have two different systems for managing our various "remote services":<br />-Repositories (components)<br />-EcogridServices (data)</p>
<p>We are searching for data in this case, but we reuse the same login gui when authenticating for a save to a remote repository.</p>
<p>Instead of associating the anonymous use with the Repository, we should associate it with the Authentication Domain (KNB, SEEK, DEV, etc....)</p> Kepler - Bug #4799: "Login Anonymously" gave an error during the data searchhttps://projects.ecoinformatics.org/ecoinfo/issues/4799?journal_id=165042010-02-26T19:54:58Zben leinfelderleinfelder@nceas.ucsb.edu
<ul></ul><p>Refactored the anonymous login configuration to be at the Domain class rather than the Repository class.<br />-adds configuration to Domain objects (username/password) and removes it from Repository objects<br />-ecogrid services that are not already configured statically with an authDomain (i.e. KNB) will use the default anonymous user (also configured in the ecogrid configuration.xml)</p>
<p>Now you do not need to have a save repository configured and checked in order to do the anonymous search.</p>
<p>Also, when you authenticate to save a component to a repository, you can use the anonymous user as configured for that auth domain (which is in turn mapped to the save repository).</p> Kepler - Bug #4799: "Login Anonymously" gave an error during the data searchhttps://projects.ecoinformatics.org/ecoinfo/issues/4799?journal_id=165052013-03-27T21:28:09ZRedmine Admin
<ul></ul><p>Original Bugzilla ID was 4799</p>