pbek / QOwnNotes

QOwnNotes is a plain-text file notepad and todo-list manager with Markdown support and Nextcloud / ownCloud integration.
https://www.qownnotes.org/
GNU General Public License v2.0
4.59k stars 407 forks source link

Can't connect to Nextcloud instance #541

Closed lgwapnitsky closed 7 years ago

lgwapnitsky commented 7 years ago

Expected behaviour

connection to NextCloud instance

Actual behaviour

image

image

Steps to reproduce

enter URL, username, password

Output from the debug settings

Relevant log output (you have to enable enable the log widget)

[Mar 10 10:05:32] [warning]: "Removed log file: " "C:/Users/larry.wapnitsky/AppData/Roaming/PBE/QOwnNotes/QOwnNotes.log" [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [warning]: libpng warning: iCCP: known incorrect sRGB profile [Mar 10 10:05:49] [info]: Reply from ownCloud calendar page: "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n\n403 Forbidden\n\n

Forbidden

\n

You don't have permission to access /remote.php/dav/calendars/lgwapnitsky\non this server.
\n

\n

Additionally, a 403 Forbidden\nerror was encountered while trying to use an ErrorDocument to handle the request.

\n\n"

lgwapnitsky commented 7 years ago

just enabled the calendars, but the URL for webdav is different. It appears that my username/password are not being passed to the login

pirogoeth commented 7 years ago

@lgwapnitsky Do you have any sort of 2FA enabled?

lgwapnitsky commented 7 years ago

No, I do not. Vanilla installation with required apps installed.

This is on a hosted service, though

On 2017-03-10 11:03, Sean Johnson wrote:

@lgwapnitsky https://github.com/lgwapnitsky Do you have any sort of 2FA enabled?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pbek/QOwnNotes/issues/541#issuecomment-285708245, or mute the thread https://github.com/notifications/unsubscribe-auth/AAnhFHQ5Hdmh6NiaQCPV4Cr1p2Chejbfks5rkXRcgaJpZM4MZfVr.

pbek commented 7 years ago

Did you enter the correct url to your owncloud instance? Can you please post the output from the debug settings. Do you use LDAP?

lgwapnitsky commented 7 years ago

1) Yes, I've entered the correct URL. I own the site.

2) Debug is not giving me any output. The only thing i have is the screenshot I provided, as well as output from entering the URL in that screenshot:

{"message":"CORS requires basic auth"}

3) No, I do not. This is a hosted system

On 2017-03-10 14:11, Patrizio Bekerle wrote:

Did you enter the correct url to your owncloud instance? Can you please post the output from the debug settings. Do you use LDAP?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pbek/QOwnNotes/issues/541#issuecomment-285757664, or mute the thread https://github.com/notifications/unsubscribe-auth/AAnhFMnJwfoKyx4l-dCf_akU8aq79ySwks5rkaBPgaJpZM4MZfVr.

pbek commented 7 years ago

You'll find the debug output in the debug settings. Your server url doesn't seem to be ok, please try only enter the url to your server.

lgwapnitsky commented 7 years ago

I just re-enabled it, and no output when trying to connect.

As for the URL, what doesn't look correct? The base URL for my site is https://nextcloud.wapnitsky.com. That is all I'm entering.

http://i.imgur.com/wi3xssF.png

On 2017-03-10 14:15, Patrizio Bekerle wrote:

You'll find the debug output in the debug settings. Your server url doesn't seem to be ok, please try only enter the url to your server.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pbek/QOwnNotes/issues/541#issuecomment-285758913, or mute the thread https://github.com/notifications/unsubscribe-auth/AAnhFNav_IVUbmTfbOMjLmjH191BX-Wiks5rkaFogaJpZM4MZfVr.

lgwapnitsky commented 7 years ago

My apologies. was looking for logs.

Here is the debug info you requested

On 2017-03-10 14:15, Patrizio Bekerle wrote:

You'll find the debug output in the debug settings. Your server url doesn't seem to be ok, please try only enter the url to your server.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pbek/QOwnNotes/issues/541#issuecomment-285758913, or mute the thread https://github.com/notifications/unsubscribe-auth/AAnhFNav_IVUbmTfbOMjLmjH191BX-Wiks5rkaFogaJpZM4MZfVr.

QOwnNotes Debug Information

General Info

Current Date: Fri Mar 10 14:18:59 2017 Version: 17.03.2 Build date: Mar 9 2017 Build number: 2830 Platform: windows Operating System: Windows 10 Build architecture: i386 Current architecture: x86_64 Release: AppVeyor Qt Version (build): 5.7.1 Qt Version (runtime): 5.7.1 Portable mode: no Settings path / key: \HKEY_CURRENT_USER\Software\PBE\QOwnNotes Application database path: C:\Users\larry.wapnitsky\AppData\Roaming\PBE\QOwnNotes\QOwnNotes.sqlite Application arguments: C:\lgwapps\QOwnNotes\QOwnNotes.exe Qt Debug: 0 Locale (system): en_US Locale (interface): empty Icon theme: breeze-qownnotes Notes in current note folder: 0 Enabled scripts: 0

Server Info

serverUrl: https://nextcloud.wapnitsky.com appIsValid: no notesPathExists: unknown connectionErrorMessage: Error transferring http://nextcloud.wapnitsky.com/index.php/apps/qownnotesapi/api/v1/note/app_info?format=json&notes_path=/ - server replied: Not Acceptable

Note folders

currentNoteFolderId: 1

Note folder Notes

id: 1 isCurrent: yes activeTagId: 0 localPath: C:\Users\larry.wapnitsky\Nextcloud\Notes remotePath: empty isShowSubfolders: yes activeNoteSubFolder name: empty database file: C:\Users\larry.wapnitsky\Nextcloud\Notes\notes.sqlite

Settings

Debug/fakeOldVersionNumber: false Debug/fileLogging: true Editor/CurrentSchemaKey: EditorColorSchema-6033d61b-cb96-46d5-a3a8-20d5172017eb Editor/autoBracketClosing: true Editor/autoBracketRemoval: true LastUpdateCheck: 2017-03-10T14:11:17 MainWindow/geometry: <binary data> MainWindow/mainToolBar.iconSize: 24 MainWindow/menuBarGeometry: <binary data> MainWindow/noteTextEdit.code.font: Courier New,9,-1,2,50,0,0,0,0,0 MainWindow/noteTextEdit.font: MS Shell Dlg 2,8.25,-1,5,50,0,0,0,0,0 MainWindow/noteTextView.code.font: Courier New,9,-1,2,50,0,0,0,0,0 MainWindow/noteTextView.font: MS Shell Dlg 2,8.25,-1,5,50,0,0,0,0,0 MainWindow/noteTextView.rtl: false NoteSortOrder: 0 PiwikClientId: <hidden> SettingsDialog/geometry: <binary data> SettingsDialog/mainSplitterState: <binary data> ShowSystemTray: false SortingModeAlphabetically: false UpdateDialog/geometry: <binary data> WelcomeDialog/geometry: <binary data> acceptAllExternalModifications: false allowDifferentNoteFileName: false allowOnlyOneAppInstance: true appMetrics/disableAppHeartbeat: false appMetrics/disableTracking: false appMetrics/notificationShown: true cryptoKey: <hidden> currentNoteFolderId: 1 currentWorkspace: 2e55bddc-12af-4564-b80d-d8a7a0d4dfec customNoteFileExtensionList: empty darkMode: false darkModeColors: false darkModeTrayIcon: false defaultNoteFileExtension: md demoNotesCreated: true disableAutomaticUpdateDialog: false dockWasInitializedOnce: true externalEditorPath: empty ignoreAllExternalModifications: false ignoreAllExternalNoteFolderChanges: false imageScaleDown: false imageScaleDownMaximumHeight: 1024 imageScaleDownMaximumWidth: 1024 insertTimeFormat: empty interfaceLanguage: empty internalIconTheme: false itemHeight: 15 markdownHighlightingEnabled: true networking/ignoreSSLErrors: true networking/proxyType: 2 noteSaveIntervalTime: 10 notesPath: C:/Users/larry.wapnitsky/Nextcloud/Notes notifyAllExternalModifications: false ownCloud/password: <hidden> ownCloud/serverUrl: http://nextcloud.wapnitsky.com ownCloud/supportEnabled: true ownCloud/todoCalendarBackend: 3 ownCloud/todoCalendarCalDAVPassword: <hidden> ownCloud/todoCalendarCalDAVServerUrl: empty ownCloud/todoCalendarCalDAVUsername: empty ownCloud/todoCalendarEnabledList: empty ownCloud/todoCalendarEnabledUrlList: empty ownCloud/todoCalendarUrlList: empty ownCloud/userName: lgwapnitsky previousWorkspace: d21c8620-f817-4c9e-bac6-1c826a1ec2cb recentNoteFolders: C:/Users/larry.wapnitsky/Documents/QOwnNotes restoreCursorPosition: true showMenuBar: true showStatusBar: true toolbar/1/items: action_New_note, action_Find_note, action_Remove_note, action_Open_note_in_external_editor, , action_Back_in_note_history, action_Forward_in_note_history, , action_Find_text_in_note, actionReplace_in_current_note, , actionShow_versions, actionShow_trash, actionShare_note, , actionOpen_List toolbar/1/name: mainToolBar toolbar/1/title: main toolbar toolbar/2/items: actionFormat_text_bold, actionFormat_text_italic, actionStrike_out_text, actionInsert_code_block, actionInsert_block_quote toolbar/2/name: formattingToolbar toolbar/2/title: formatting toolbar toolbar/3/items: actionInsert_Link_to_note, actionInsert_image, actionInsert_current_time toolbar/3/name: insertingToolbar toolbar/3/title: inserting toolbar toolbar/4/items: action_Encrypt_note, actionEdit_encrypted_note, actionDecrypt_note toolbar/4/name: encryptionToolbar toolbar/4/title: encryption toolbar toolbar/5/items: actionWorkspaceComboBox, actionStore_as_new_workspace, actionRemove_current_workspace, actionRename_current_workspace, actionSwitch_to_previous_workspace, actionUnlock_panels, , actionToggle_distraction_free_mode, action_Increase_note_text_size, action_Decrease_note_text_size, action_Reset_note_text_size toolbar/5/name: windowToolbar toolbar/5/title: window toolbar toolbar/6/items: action_Quit toolbar/6/name: quitToolbar toolbar/6/title: quit toolbar toolbar/size: 6 useUNIXNewline: false workspace-2e55bddc-12af-4564-b80d-d8a7a0d4dfec/name: minimal workspace-2e55bddc-12af-4564-b80d-d8a7a0d4dfec/noteSubFolderDockWidgetVisible: true workspace-2e55bddc-12af-4564-b80d-d8a7a0d4dfec/windowState: <binary data> workspace-d21c8620-f817-4c9e-bac6-1c826a1ec2cb/name: full workspace-d21c8620-f817-4c9e-bac6-1c826a1ec2cb/noteSubFolderDockWidgetVisible: true workspace-d21c8620-f817-4c9e-bac6-1c826a1ec2cb/windowState: <binary data> workspaces: d21c8620-f817-4c9e-bac6-1c826a1ec2cb, 2e55bddc-12af-4564-b80d-d8a7a0d4dfec

System environment

ALLUSERSPROFILE: C:\ProgramData APPDATA: C:\Users\larry.wapnitsky\AppData\Roaming ChocolateyInstall: C:\ProgramData\chocolatey ChocolateyLastPathUpdate: Tue Dec 13 16:37:56 2016 CLASSPATH: .; CommonProgramFiles: C:\Program Files (x86)\Common Files CommonProgramFiles(x86): C:\Program Files (x86)\Common Files CommonProgramW6432: C:\Program Files\Common Files COMPUTERNAME: LWAPNITSKY-LT ComSpec: C:\Windows\system32\cmd.exe Firefox: C:\Program Files (x86)\Mozilla Firefox HOMEDRIVE: C: HOMEPATH: \Users\larry.wapnitsky JAVA_HOME: C:\Program Files\Java\jdk1.8.0_112 LOCALAPPDATA: C:\Users\larry.wapnitsky\AppData\Local LOGONSERVER: \\BSPRDDC02 NUMBER_OF_PROCESSORS: 4 OneDrive: C:\Users\larry.wapnitsky\OneDrive - NexGen RxMarketing OS: Windows_NT Path: C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\ProgramData\chocolatey\bin;C:\Users\larry.wapnitsky\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files\Windows Imaging\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\IDM Computer Solutions\UltraEdit;C:\Program Files\Git\cmd;C:\Program Files\TortoiseHg\;C:\Program Files (x86)\GitExtensions\;C:\Program Files (x86)\Microsoft Team Foundation Server 2015 Power Tools\;C:\Program Files\Java\jdk1.8.0_112\bin;C:\Program Files (x86)\Mozilla Firefox;C:\Program Files\MySQL\MySQL Utilities 1.6\;C:\Program Files\TortoiseGit\bin;C:\Users\larry.wapnitsky\AppData\Local\atom\bin;C:\ProgramData\chocolatey\lib\Git-TF\Tools\git-tf-2.0.3.20131219;C:\tools\gittfs;;C:\Program Files (x86)\Microsoft VS Code\bin;C:\Program Files (x86)\Nmap PATHEXT: .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC PROCESSOR_ARCHITECTURE: x86 PROCESSOR_ARCHITEW6432: AMD64 PROCESSOR_IDENTIFIER: Intel64 Family 6 Model 78 Stepping 3, GenuineIntel PROCESSOR_LEVEL: 6 PROCESSOR_REVISION: 4e03 ProgramData: C:\ProgramData ProgramFiles: C:\Program Files (x86) ProgramFiles(x86): C:\Program Files (x86) ProgramW6432: C:\Program Files PSModulePath: C:\Windows\system32\WindowsPowerShell\v1.0\Modules\;C:\Program Files\WindowsPowerShell\Modules\;C:\Program Files (x86)\Microsoft SDKs\Azure\PowerShell\ResourceManager\AzureResourceManager\;C:\Program Files (x86)\Microsoft SDKs\Azure\PowerShell\ServiceManagement\;C:\Program Files (x86)\Microsoft SDKs\Azure\PowerShell\Storage\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\PowerShell\Modules\ PUBLIC: C:\Users\Public SESSIONNAME: Console SystemDrive: C: SystemRoot: C:\Windows TEMP: C:\Users\LARRY~1.WAP\AppData\Local\Temp TFSPowerToolDir: C:\Program Files (x86)\Microsoft Team Foundation Server 2015 Power Tools\ TMP: C:\Users\LARRY~1.WAP\AppData\Local\Temp USERDNSDOMAIN: MNGDIRECT.COM USERDOMAIN: MNGDIRECT USERDOMAIN_ROAMINGPROFILE: MNGDIRECT USERNAME: Larry.Wapnitsky USERPROFILE: C:\Users\larry.wapnitsky VS140COMNTOOLS: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\ VSSDK140Install: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VSSDK\ windir: C:\Windows

pbek commented 7 years ago

https://nextcloud.wapnitsky.com seems to be ok, but I currently can't get a connection to it... I've no idea what the problem is...

lgwapnitsky commented 7 years ago

odd. it was a generic web install from NC themselves.

On 2017-03-10 15:24, Patrizio Bekerle wrote:

https://nextcloud.wapnitsky.com seems to be ok, but I currently can't get a connection to it... I've no idea what the problem is...

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pbek/QOwnNotes/issues/541#issuecomment-285775365, or mute the thread https://github.com/notifications/unsubscribe-auth/AAnhFNwPIP0F4gb4cg4tD9_1ucSZaoa_ks5rkbGagaJpZM4MZfVr.

pbek commented 7 years ago

I'm using NC 11.0.2.7 myself...

gtim108 commented 7 years ago

I had the same problems. One solution is to turn off mod_security on a web hosting. Unfortunately, sometimes it's impossible (hard to do). For myself I fixed this by passing correct Agent from QOwnNotes. r->setRawHeader( "User-Agent" , "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a3pre) Gecko/20070330");

in owncloudservice.cpp

pbek commented 7 years ago

@gtim108, that's an interesting find

gtim108 commented 7 years ago

May be there should be settings in QO to set an agent string? My solution works, but it's not prefect.

pbek commented 7 years ago

@lgwapnitsky, in case you can build QOwnNotes yourself, can you confirm that that solution works for you?

gtim108 commented 7 years ago

@lgwapnitsky I can send a diff, there are few places you need to set an agent

pbek commented 7 years ago

@gtim108, did you do more than I did in https://github.com/pbek/QOwnNotes/commit/8ab29e7ddeaa48946890433c260ea5f81274fc88?

gtim108 commented 7 years ago

@pbek There are few more. You can check the at my forked repo. Tim's repo Also we need to set headers for calendar to work with mod secure. r.setHeader(QNetworkRequest::ContentTypeHeader, "application/x-www-form-urlencoded"); It's also in the same commit.

pbek commented 7 years ago

thank you, I will add that too... I see you are using KDE libraries, every time I have to re-implement cool KDE features I start to shudder. the libraries would make my life a lot easier... :)

gtim108 commented 7 years ago

I use kde, so it's not a problem for me :-) I wanted to have a global shortcut to show/hide QOwnNotes. tried Qt, but with kde it's much easier. Also waiting for kde to add Nextcloud, they have Owncloud, but still discuss Nextcloud.,

pbek commented 7 years ago

I'm a KDE user since the last millenium. :) The only reason I didn't integrate it in QOwnNotes is that I wanted to make it work on as many platforms as possible... Otherwise it would have been KOwnNotes! :D

gtim108 commented 7 years ago

It will be cool to have Q(K)ownNotes in kde by default. :-) As replacement for Kjots.

pbek commented 7 years ago

I would like that. :smile_cat:

pbek commented 7 years ago

I now also added the application/x-www-form-urlencoded headers.

pbek commented 7 years ago

There now is a new release, could you please test it and report if it works for you?

gtim108 commented 7 years ago

Yep. It works! Thanks!

pbek commented 7 years ago

Great, thank you for testing!