Comparar commits

...

18 Commits

Autor SHA1 Mensagem Data
Samuel Alfageme 385f5312de Missing parentheses in c43f35b 2017-01-25 17:23:52 +01:00
Samuel Alfageme c43f35b392 Fixed typo that was causing the build to fail 2017-01-25 17:11:03 +01:00
Olivier Goffart c44e66b782 Shibboleth: Add log to investigate an issue
https://github.com/owncloud/enterprise/issues/1729
2017-01-25 14:53:10 +01:00
Jenkins for ownCloud 3e954bc17f [tx-robot] updated from transifex 2016-11-04 02:18:27 +01:00
Jenkins for ownCloud 2527569bb8 [tx-robot] updated from transifex 2016-11-03 02:18:27 +01:00
Jenkins for ownCloud 1e197531cb [tx-robot] updated from transifex 2016-11-02 02:18:28 +01:00
Jenkins for ownCloud 8b876576eb [tx-robot] updated from transifex 2016-11-01 02:18:29 +01:00
Jenkins for ownCloud c110745330 [tx-robot] updated from transifex 2016-10-31 02:18:27 +01:00
Jenkins for ownCloud 19521863a0 [tx-robot] updated from transifex 2016-10-30 02:18:24 +01:00
Jenkins for ownCloud c256896165 [tx-robot] updated from transifex 2016-10-30 02:18:26 +02:00
Jenkins for ownCloud ef922f60fa [tx-robot] updated from transifex 2016-10-29 02:18:28 +02:00
Jenkins for ownCloud 733ea90e6b [tx-robot] updated from transifex 2016-10-28 02:18:28 +02:00
Jenkins for ownCloud a4e1fa9dcf [tx-robot] updated from transifex 2016-10-27 02:18:30 +02:00
Jenkins for ownCloud 1a1684ca2a [tx-robot] updated from transifex 2016-10-26 02:18:34 +02:00
Jenkins for ownCloud 9e2d3f5bc7 [tx-robot] updated from transifex 2016-10-25 02:18:32 +02:00
Jenkins for ownCloud e6be670e49 [tx-robot] updated from transifex 2016-10-24 02:18:28 +02:00
Jenkins for ownCloud 46ce2f4722 [tx-robot] updated from transifex 2016-10-23 02:18:28 +02:00
Jenkins for ownCloud 0a4806af44 [tx-robot] updated from transifex 2016-10-22 02:18:28 +02:00
10 arquivos alterados com 110 adições e 14 exclusões
+46
Ver Arquivo
@@ -415,6 +415,51 @@ X-GNOME-Autostart-Delay=3
# Translations
# Translations
# Translations
# Translations
# Translations
# Translations
# Translations
# Translations
# Translations
# Translations
# Translations
# Translations
# Translations
# Translations
# Translations
# Translations
# Translations
Comment[oc]=@APPLICATION_NAME@ sincronizacion del client
GenericName[oc]=Dorsièr de Sincronizacion
@@ -550,6 +595,7 @@ Comment[th_TH]=@APPLICATION_NAME@ ไคลเอนต์ประสานข
GenericName[th_TH]=ประสานข้อมูลโฟลเดอร์
Name[th_TH]= @APPLICATION_NAME@ ไคลเอนต์ประสานข้อมูลเดสก์ท็อป
Icon[th_TH]=@APPLICATION_EXECUTABLE@
GenericName[es_MX]=Sincronización de Carpetas
Comment[nb_NO]=@APPLICATION_NAME@ skrivebordssynkroniseringsklient
GenericName[nb_NO]=Mappesynkronisering
Name[nb_NO]=@APPLICATION_NAME@ skrivebordssynkroniseringsklient
+11
Ver Arquivo
@@ -68,11 +68,14 @@ bool AccountManager::restore()
bool AccountManager::restoreFromLegacySettings()
{
// try to open the correctly themed settings
auto settings = Account::settingsWithGroup(Theme::instance()->appName());
bool migratedCreds = false;
qDebug() << "LEGACY!" << Theme::instance()->appName() << settings->childKeys();
// if the settings file could not be opened, the childKeys list is empty
// then try to load settings from a very old place
if( settings->childKeys().isEmpty() ) {
@@ -214,11 +217,15 @@ AccountPtr AccountManager::loadAccountHelper(QSettings& settings)
QString authType = settings.value(QLatin1String(authTypeC)).toString();
QString overrideUrl = Theme::instance()->overrideServerUrl();
QString forceAuth = Theme::instance()->forceConfigAuthType();
qDebug() << "LOADING ACCOUNT" << authType << overrideUrl << forceAuth << settings.value(QLatin1String(urlC));
if(!forceAuth.isEmpty() && !overrideUrl.isEmpty() ) {
// If forceAuth is set, this might also mean the overrideURL has changed.
// See enterprise issues #1126
acc->setUrl(overrideUrl);
authType = forceAuth;
qDebug() << "SHOULD NOT BE THERE !!!!!!";
} else {
acc->setUrl(settings.value(QLatin1String(urlC)).toUrl());
}
@@ -233,8 +240,12 @@ AccountPtr AccountManager::loadAccountHelper(QSettings& settings)
acc->_settingsMap.insert(key, settings.value(key));
}
qDebug() << acc->_settingsMap << "from" << settings.childKeys();
acc->setCredentials(CredentialsFactory::create(authType));
qDebug() << "Loaded Cred" << acc->credentials() << authType;
// now the cert, it is in the general group
settings.beginGroup(QLatin1String("General"));
acc->setApprovedCerts(QSslCertificate::fromData(settings.value(caCertsKeyC).toByteArray()));
+3
Ver Arquivo
@@ -18,6 +18,8 @@
#include "creds/dummycredentials.h"
#include "creds/shibbolethcredentials.h"
#include <QDebug>
namespace OCC
{
@@ -26,6 +28,7 @@ namespace CredentialsFactory
AbstractCredentials* create(const QString& type)
{
qDebug() << type;
// empty string might happen for old version of configuration
if (type == "http" || type == "") {
return new HttpCredentialsGui;
+22 -2
Ver Arquivo
@@ -53,7 +53,10 @@ ShibbolethCredentials::ShibbolethCredentials()
_ready(false),
_stillValid(false),
_browser(0)
{}
{
qDebug() << "HELO ShibbolethCredentials 1";
}
ShibbolethCredentials::ShibbolethCredentials(const QNetworkCookie& cookie)
: _ready(true),
@@ -61,6 +64,7 @@ ShibbolethCredentials::ShibbolethCredentials(const QNetworkCookie& cookie)
_browser(0),
_shibCookie(cookie)
{
qDebug() << "HELO ShibbolethCredentials 2" << cookie.toRawForm();
}
void ShibbolethCredentials::setAccount(Account* account)
@@ -72,6 +76,8 @@ void ShibbolethCredentials::setAccount(Account* account)
_user = _account->credentialSetting(QLatin1String(userC)).toString();
}
qDebug() << _user;
// When constructed with a cookie (by the wizard), we usually don't know the
// user name yet. Request it now from the server.
if (_ready && _user.isEmpty()) {
@@ -107,13 +113,19 @@ QString ShibbolethCredentials::user() const
QNetworkAccessManager* ShibbolethCredentials::getQNAM() const
{
QNetworkAccessManager* qnam(new AccessManager);
connect(qnam, SIGNAL(finished(QNetworkReply*)),
bool ok = connect(qnam, SIGNAL(finished(QNetworkReply*)),
this, SLOT(slotReplyFinished(QNetworkReply*)));
qDebug() << "QNAM creaded and connected" << ok;
return qnam;
}
void ShibbolethCredentials::slotReplyFinished(QNetworkReply* r)
{
qWarning() << r->request().url() << _browser << r->attribute(QNetworkRequest::HttpStatusCodeAttribute)
<< r->attribute(QNetworkRequest::RedirectionTargetAttribute) << r->header(QNetworkRequest::LocationHeader);
if (!_browser.isNull()) {
return;
}
@@ -163,6 +175,7 @@ bool ShibbolethCredentials::stillValid(QNetworkReply *reply)
void ShibbolethCredentials::persist()
{
qDebug() << _shibCookie;
storeShibCookie(_shibCookie);
if (!_user.isEmpty()) {
_account->setCredentialSetting(QLatin1String(userC), _user);
@@ -201,6 +214,7 @@ void ShibbolethCredentials::onShibbolethCookieReceived(const QNetworkCookie& shi
{
storeShibCookie(shibCookie);
_shibCookie = shibCookie;
qDebug() << _shibCookie;
addToCookieJar(shibCookie);
slotFetchUser();
@@ -252,10 +266,13 @@ void ShibbolethCredentials::slotBrowserRejected()
void ShibbolethCredentials::slotReadJobDone(QKeychain::Job *job)
{
qDebug() << "FROM KEYCHAIN" << job->error();
if (job->error() == QKeychain::NoError) {
ReadPasswordJob *readJob = static_cast<ReadPasswordJob*>(job);
delete readJob->settings();
QList<QNetworkCookie> cookies = QNetworkCookie::parseCookies(readJob->textData().toUtf8());
qDebug() <<readJob->textData() << cookies.count();
if (cookies.count() > 0) {
_shibCookie = cookies.first();
addToCookieJar(_shibCookie);
@@ -274,6 +291,9 @@ void ShibbolethCredentials::slotReadJobDone(QKeychain::Job *job)
void ShibbolethCredentials::showLoginWindow()
{
qWarning() << "SHOW LOGIN WINDOW " << _browser;
if (!_browser.isNull()) {
ownCloudGui::raiseDialog(_browser);
return;
+4
Ver Arquivo
@@ -839,6 +839,10 @@ void ownCloudGui::slotHelp()
void ownCloudGui::raiseDialog( QWidget *raiseWidget )
{
qDebug() << "RAISE " << raiseWidget;
if (raiseWidget) qDebug() << raiseWidget->parentWidget() << raiseWidget->isVisible();
if( raiseWidget && raiseWidget->parentWidget() == 0) {
// Qt has a bug which causes parent-less dialogs to pop-under.
raiseWidget->showNormal();
+4
Ver Arquivo
@@ -155,6 +155,10 @@ QNetworkReply *AbstractNetworkJob::deleteRequest(const QUrl &url)
void AbstractNetworkJob::slotFinished()
{
qWarning() << reply()->request().url() << reply()->attribute(QNetworkRequest::HttpStatusCodeAttribute) << _followRedirects << reply()->attribute(QNetworkRequest::RedirectionTargetAttribute) <<
reply()->header(QNetworkRequest::LocationHeader);
_timer.stop();
if( _reply->error() == QNetworkReply::SslHandshakeFailedError ) {
+4
Ver Arquivo
@@ -103,6 +103,8 @@ static bool isEqualExceptProtocol(const QUrl &url1, const QUrl &url2)
bool Account::changed(AccountPtr other, bool ignoreUrlProtocol) const
{
qDebug() << _credentials << other->credentials();
if (!other) {
return false;
}
@@ -125,6 +127,8 @@ AbstractCredentials *Account::credentials() const
void Account::setCredentials(AbstractCredentials *cred)
{
qDebug() << this << cred;
// set active credential manager
QNetworkCookieJar *jar = 0;
if (_am) {
+4
Ver Arquivo
@@ -185,6 +185,10 @@ void ConnectionValidator::slotAuthFailed(QNetworkReply *reply)
{
Status stat = Timeout;
qWarning() << reply->error() << _account->credentials()->stillValid(reply) << reply->attribute(QNetworkRequest::HttpStatusCodeAttribute);
if( reply->error() == QNetworkReply::AuthenticationRequiredError ||
!_account->credentials()->stillValid(reply)) {
qDebug() << reply->error() << reply->errorString();
+2 -2
Ver Arquivo
@@ -2127,7 +2127,7 @@ Uporaba ni priporočljiva.</translation>
<message>
<location filename="../src/libsync/propagateupload.cpp" line="676"/>
<source>Poll URL missing</source>
<translation>URL za branje manjka</translation>
<translation>Manjka naslov URL</translation>
</message>
<message>
<location filename="../src/libsync/propagateupload.cpp" line="699"/>
@@ -3295,7 +3295,7 @@ Uporaba ni priporočljiva.</translation>
<message>
<location filename="../src/libsync/owncloudtheme.cpp" line="47"/>
<source>&lt;p&gt;Version %2. For more information visit &lt;a href=&quot;%3&quot;&gt;%4&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;small&gt;By Klaas Freitag, Daniel Molkentin, Jan-Christoph Borchardt, Olivier Goffart, Markus Götz and others.&lt;/small&gt;&lt;/p&gt;&lt;p&gt;Copyright ownCloud GmbH&lt;/p&gt;&lt;p&gt;Licensed under the GNU General Public License (GPL) Version 2.0&lt;br/&gt;ownCloud and the ownCloud Logo are registered trademarks of ownCloud, Inc. in the United States, other countries, or both.&lt;/p&gt;</source>
<translation type="unfinished"/>
<translation>&lt;p&gt;Različica %2. Več podrobnosti je zabeleženih na &lt;a href=&quot;%3&quot;&gt;%4&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;small&gt;Avtorstvo: Klaas Freitag, Daniel Molkentin, Jan-Christoph Borchardt, Olivier Goffart, Markus Götz in drugi.&lt;/small&gt;&lt;/p&gt;&lt;p&gt;Avtorske pravice ownCloud GmbH&lt;/p&gt;&lt;p&gt;Programski paket je objavljen z dovoljenjem GNU General Public License (GPL), različice 2.0.&lt;br/&gt;Znamka in logotip ownCloud sta blagovni znamki družbe ownCloud, Inc, v Združenih državah, drugih državah ali obojih.&lt;/p&gt;</translation>
</message>
</context>
<context>
+10 -10
Ver Arquivo
@@ -666,12 +666,12 @@
<message numerus="yes">
<location filename="../src/gui/folder.cpp" line="531"/>
<source>%1 and %n other file(s) could not be synced due to errors. See the log for details.</source>
<translation><numerusform>%1 %n </numerusform></translation>
<translation><numerusform>%1 %n log </numerusform></translation>
</message>
<message>
<location filename="../src/gui/folder.cpp" line="533"/>
<source>%1 could not be synced due to an error. See the log for details.</source>
<translation>%1 </translation>
<translation>%1 log </translation>
</message>
<message>
<location filename="../src/gui/folder.cpp" line="539"/>
@@ -1309,7 +1309,7 @@ Items where deletion is allowed will be deleted if they prevent a directory from
<message>
<location filename="../src/gui/logbrowser.cpp" line="59"/>
<source>Log Output</source>
<translation></translation>
<translation> log</translation>
</message>
<message>
<location filename="../src/gui/logbrowser.cpp" line="71"/>
@@ -1329,7 +1329,7 @@ Items where deletion is allowed will be deleted if they prevent a directory from
<message>
<location filename="../src/gui/logbrowser.cpp" line="98"/>
<source>Clear the log display.</source>
<translation></translation>
<translation> log </translation>
</message>
<message>
<location filename="../src/gui/logbrowser.cpp" line="104"/>
@@ -1339,7 +1339,7 @@ Items where deletion is allowed will be deleted if they prevent a directory from
<message>
<location filename="../src/gui/logbrowser.cpp" line="105"/>
<source>Save the log file to a file on disk for debugging.</source>
<translation></translation>
<translation> log </translation>
</message>
<message>
<location filename="../src/gui/logbrowser.cpp" line="184"/>
@@ -1354,7 +1354,7 @@ Items where deletion is allowed will be deleted if they prevent a directory from
<message>
<location filename="../src/gui/logbrowser.cpp" line="194"/>
<source>Could not write to log file %1</source>
<translation> %1</translation>
<translation> log %1</translation>
</message>
</context>
<context>
@@ -1367,7 +1367,7 @@ Items where deletion is allowed will be deleted if they prevent a directory from
<message>
<location filename="../src/libsync/logger.cpp" line="191"/>
<source>&lt;nobr&gt;File &apos;%1&apos;&lt;br/&gt;cannot be opened for writing.&lt;br/&gt;&lt;br/&gt;The log output can &lt;b&gt;not&lt;/b&gt; be saved!&lt;/nobr&gt;</source>
<translation>&lt;nobr&gt; &apos;%1&apos;&lt;br/&gt;.&lt;br/&gt;&lt;br/&gt; &lt;b&gt;&lt;/b&gt; !&lt;/nobr&gt;</translation>
<translation>&lt;nobr&gt; &apos;%1&apos;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt; log &lt;b&gt;&lt;/b&gt; !&lt;/nobr&gt;</translation>
</message>
</context>
<context>
@@ -3048,7 +3048,7 @@ It is not advisable to use it.</source>
<message>
<location filename="../src/gui/synclogdialog.ui" line="14"/>
<source>Synchronisation Log</source>
<translation></translation>
<translation> Log</translation>
</message>
</context>
<context>
@@ -3069,7 +3069,7 @@ It is not advisable to use it.</source>
<message>
<location filename="../src/libsync/theme.cpp" line="289"/>
<source>&lt;p&gt;Copyright ownCloud GmbH&lt;/p&gt;</source>
<translation type="unfinished"/>
<translation>&lt;p&gt; ownCloud GmbH&lt;/p&gt;</translation>
</message>
<message>
<location filename="../src/libsync/theme.cpp" line="290"/>
@@ -3294,7 +3294,7 @@ It is not advisable to use it.</source>
<message>
<location filename="../src/libsync/owncloudtheme.cpp" line="47"/>
<source>&lt;p&gt;Version %2. For more information visit &lt;a href=&quot;%3&quot;&gt;%4&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;small&gt;By Klaas Freitag, Daniel Molkentin, Jan-Christoph Borchardt, Olivier Goffart, Markus Götz and others.&lt;/small&gt;&lt;/p&gt;&lt;p&gt;Copyright ownCloud GmbH&lt;/p&gt;&lt;p&gt;Licensed under the GNU General Public License (GPL) Version 2.0&lt;br/&gt;ownCloud and the ownCloud Logo are registered trademarks of ownCloud, Inc. in the United States, other countries, or both.&lt;/p&gt;</source>
<translation type="unfinished"/>
<translation>&lt;p&gt; %2 &lt;a href=&quot;%3&quot;&gt;%4&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;small&gt; Klaas Freitag, Daniel Molkentin, Jan-Christoph Borchardt, Olivier Goffart, Markus Götz &lt;/small&gt;&lt;/p&gt;&lt;p&gt; ownCloud GmbH&lt;/p&gt;&lt;p&gt; GNU General Public (GPL) 2.0&lt;br/&gt;ownCloud ownCloud ownCloud, Inc. &lt;/p&gt;</translation>
</message>
</context>
<context>