Comparar commits
18 Commits
| Autor | SHA1 | Data | |
|---|---|---|---|
| 385f5312de | |||
| c43f35b392 | |||
| c44e66b782 | |||
| 3e954bc17f | |||
| 2527569bb8 | |||
| 1e197531cb | |||
| 8b876576eb | |||
| c110745330 | |||
| 19521863a0 | |||
| c256896165 | |||
| ef922f60fa | |||
| 733ea90e6b | |||
| a4e1fa9dcf | |||
| 1a1684ca2a | |||
| 9e2d3f5bc7 | |||
| e6be670e49 | |||
| 46ce2f4722 | |||
| 0a4806af44 |
@@ -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
|
||||
|
||||
@@ -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()));
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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 ) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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><p>Version %2. For more information visit <a href="%3">%4</a></p><p><small>By Klaas Freitag, Daniel Molkentin, Jan-Christoph Borchardt, Olivier Goffart, Markus Götz and others.</small></p><p>Copyright ownCloud GmbH</p><p>Licensed under the GNU General Public License (GPL) Version 2.0<br/>ownCloud and the ownCloud Logo are registered trademarks of ownCloud, Inc. in the United States, other countries, or both.</p></source>
|
||||
<translation type="unfinished"/>
|
||||
<translation><p>Različica %2. Več podrobnosti je zabeleženih na <a href="%3">%4</a></p><p><small>Avtorstvo: Klaas Freitag, Daniel Molkentin, Jan-Christoph Borchardt, Olivier Goffart, Markus Götz in drugi.</small></p><p>Avtorske pravice ownCloud GmbH</p><p>Programski paket je objavljen z dovoljenjem GNU General Public License (GPL), različice 2.0.<br/>Znamka in logotip ownCloud sta blagovni znamki družbe ownCloud, Inc, v Združenih državah, drugih državah ali obojih.</p></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
|
||||
+10
-10
@@ -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><nobr>File '%1'<br/>cannot be opened for writing.<br/><br/>The log output can <b>not</b> be saved!</nobr></source>
|
||||
<translation><nobr>ไฟล์ '%1'<br/>ไม่สามารถเปิดขึ้นมาเพื่อเขียนข้อมูลได้.<br/><br/>บันทึกผลลัพธ์ <b>ไม่สามารถ</b> บันทึกข้อมูลได้!</nobr></translation>
|
||||
<translation><nobr>ไฟล์ '%1'<br/>ไม่สามารถเปิดขึ้นมาเพื่อเขียนข้อมูลได้<br/><br/>ผลลัพธ์ของไฟล์ log <b>ไม่สามารถ</b> บันทึกข้อมูลได้!</nobr></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><p>Copyright ownCloud GmbH</p></source>
|
||||
<translation type="unfinished"/>
|
||||
<translation><p>ลิขสิทธิ์ ownCloud GmbH</p></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><p>Version %2. For more information visit <a href="%3">%4</a></p><p><small>By Klaas Freitag, Daniel Molkentin, Jan-Christoph Borchardt, Olivier Goffart, Markus Götz and others.</small></p><p>Copyright ownCloud GmbH</p><p>Licensed under the GNU General Public License (GPL) Version 2.0<br/>ownCloud and the ownCloud Logo are registered trademarks of ownCloud, Inc. in the United States, other countries, or both.</p></source>
|
||||
<translation type="unfinished"/>
|
||||
<translation><p>เวอร์ชัน %2 สำหรับข้อมูลเพิ่มเติม <a href="%3">%4</a></p><p><small> โดย Klaas Freitag, Daniel Molkentin, Jan-Christoph Borchardt, Olivier Goffart, Markus Götz และคนอื่นๆ</small></p><p>ลิขสิทธิ์ ownCloud GmbH</p><p>ภายใต้สัญญาอนุญาต GNU General Public (GPL) เวอร์ชัน 2.0<br/>ownCloud และโลโก้ ownCloud เป็นเครื่องหมายจดทะเบียนการค้าของ ownCloud, Inc. ในสหรัฐอเมริกาและประเทศอื่นๆ หรือทั้งสองอย่าง</p></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário