[Yanel-dev] i18n
Michael Wechner
michael.wechner at wyona.com
Fri Mar 30 17:13:26 CEST 2012
Am 30.03.12 11:21, schrieb basZero:
> Thanks Michael for the pointers.
>
> I got a 500, not a 403. But maybe the username/password didn't match...
The problem was:
diff --git
a/src/webapp/src/java/org/wyona/yanel/servlet/security/impl/DefaultWebAuthenticatorImpl.java
b/src/webapp/src/java/org/wyona/yanel/servlet/security/impl/
index c9772a9..0f00f19 100644
---
a/src/webapp/src/java/org/wyona/yanel/servlet/security/impl/DefaultWebAuthenticatorImpl.java
+++
b/src/webapp/src/java/org/wyona/yanel/servlet/security/impl/DefaultWebAuthenticatorImpl.java
@@ -687,7 +687,7 @@ public class DefaultWebAuthenticatorImpl implements
WebAuthenticator {
log.warn("TODO: Add user to session listener!");
return true;
} else {
- log.warn("Authentication failed for user: " + user.getID());
+ log.warn("Authentication failed for user: " + username + "
(Realm: " + realm.getName() + ")");
}
return false;
}
Should be fixed with the next update.
Thanks
Michael
>
> Cheers
> Balz
>
> On Fri, Mar 30, 2012 at 11:18 AM, Michael Wechner
> <michael.wechner at wyona.com <mailto:michael.wechner at wyona.com>> wrote:
>
> Am 30.03.12 10:53, schrieb basZero:
>> Hi,
>>
>> I tried to login in order to submit a comment about this page:
>> http://www.yanel.org/en/documentation/i18n.html
>>
>> however, my login does not seem to work anymore,
>
> I have disabled the comments, because of spam, whereas I am
> currently refactoring it, such that
> spam should be less a problem
>
>> I get an error 500.
>
> I guess you mean an access denied error.
>
>>
>> Here is my input:
>>
>> - It is unclear how the language is selected: from the browser?
>> from a property stored in the user profile?
>
> good point, we need to document this. For the moment please see
>
> src/impl/java/org/wyona/yanel/impl/resources/BasicXMLResource.java
>
> new I18nTransformer3(getI18NCatalogueNames(),
> getRequestedLanguage(), getUserLanguage(),
> getRealm().getDefaultLanguage(), uriResolver);
>
>> - Is it somehow possible to oversteer the logic and tell the i18n
>> logic which language to take
>
> IIRC yes, whereas I don't recall the details right now. Please see
>
> src/core/java/org/wyona/yanel/core/Resource.java#getRequestedLanguage()
>
> etc.
>
> HTH
>
> Michael
>
>>
>> Cheers
>> Balz
>>
>> *Balz Schreier*
>> Zwischengas AG
>> CTO / Fotograf
>>
>> Wussten Sie, dass das Zeitschriftenarchiv auf Zwischengas
>> unterdessen auf knapp 300'000 Seiten gewachsen ist? Besuchen Sie
>> das Archiv <http://www.zwischengas.com/de/archiv/index.xml>!
>>
>>
>>
>
>
> --
> Yanel-development mailing list Yanel-development at wyona.com
> <mailto:Yanel-development at wyona.com>
> http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wyona.org/pipermail/yanel-development/attachments/20120330/f7f302eb/attachment.html>
More information about the Yanel-development
mailing list