-
-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Web-Companion Token get truncated to numbers only if token begins with numbers. #33
Comments
Thank you for reporting, I will try to reproduce your issue.
Thank you. 😁
For some reason somewhere the string will be converted to an integer because it started with an integer while storing, loading or presenting. |
Hello, I think I will take a look at this again with fresh eyes before throwing my hands up! Thank You. :) |
Yeah, I also tried to force it to be a string in several ways in several places. |
You don't need to bother any more, found it already. The |
Thank You so much. |
21.6.0
|
There now is a new release, could you please test it and report if it works for you? |
Yup. It works on Firefox. Thank You!! |
Great, thank you for reporting and testing! |
When I run the web-companion on Firefox for the first time.
A pop-up asks me to set a token in the Firefox Add-Ons preference settings.
Upon doing that, I have found that the token that firefox has saved get truncated to only the numbers.
i.e. If the token was "1234test", then upon saving it in the add-ons preference settings and reloading the page, the token value will be changed to "1234" only.
This behavior is consistent for any length of numbers.
This is not observed when I do not use numbers in the beginning of the Token.
Expected behaviour
The entire token is saved regardless of weather it has numbers or letters in it.
Actual behaviour
If token begins with numbers, then the entire token gets truncated to numbers only.
Relevant log output in the Log panel
Expand
Information about the application, settings and environment
Expand
QOwnNotes Debug Information
General Info
Current Date:
Tue Jun 1 04:33:00 2021
Version:
21.5.5
Build date:
May 25 2021
Build number:
838
Platform:
linux
Operating System:
Ubuntu 20.04.2 LTS
Build architecture:
x86_64
Current architecture:
x86_64
Release:
Launchpad PPA
Qt Version (build):
5.12.8
Qt Version (runtime):
5.12.8
Portable mode:
no
Settings path / key:
/home/sohom/.config/PBE/QOwnNotes.conf
Application database path:
/home/sohom/.local/share/PBE/QOwnNotes/QOwnNotes.sqlite
Application arguments:
QOwnNotes
Qt Debug:
0
Locale (system):
en_IN
Locale (interface): empty
Primary screen resolution:
1600x900
Icon theme:
Yaru
Notes in current note folder:
10
Calendar items:
0
Enabled scripts:
0
Server Info
serverUrl: empty
appIsValid:
no
notesPathExists: empty
connectionErrorMessage: empty
Spellchecking
Enabled:
true
Selected language:
en_US
Language codes:
en_US
Language names:
American English (United States)
Application dictionaries path:
/home/sohom/.local/share/PBE/QOwnNotes/dicts
Note folders
currentNoteFolderId:
1
Note folder
default
id:
1
isCurrent:
yes
activeTagId:
9
localPath:
/home/sohom/Notes
remotePath:
Notes
cloudConnectionId:
1
isShowSubfolders:
no
isUseGit:
no
activeNoteSubFolder name: empty
database file:
/home/sohom/Notes/notes.sqlite
Cloud connections
Cloud connection
Default
id:
1
isCurrent:
yes
serverUrl: empty
username: empty
Enabled scripts
Settings
AboutDialog/geometry (QByteArray):
<binary data>
ActiveNoteHistoryItem (NoteHistoryItem):
<binary data>
Editor/CurrentSchemaKey (QString):
EditorColorSchema-6033d61b-cb96-46d5-a3a8-20d5172017eb
Editor/removeTrailingSpaces (QString):
false
IssueAssistantDialog/geometry (QByteArray):
<binary data>
LastUpdateCheck (QDateTime):
2021-06-01T04:13:33.129
LocalTrashDialog/geometry (QByteArray):
<binary data>
LogWidget/criticalLog (bool):
true
LogWidget/debugLog (bool):
true
LogWidget/fatalLog (bool):
true
LogWidget/infoLog (bool):
true
LogWidget/scriptingLog (bool):
true
LogWidget/statusLog (bool):
true
LogWidget/warningLog (bool):
true
MainWindow/geometry (QByteArray):
<binary data>
MainWindow/mainToolBar.iconSize (QString):
24
MainWindow/menuBarGeometry (QByteArray):
<binary data>
MainWindow/noteTextEdit.code.font (QString):
monospace,15,-1,2,50,0,0,0,0,0
MainWindow/noteTextEdit.font (QString):
Ubuntu,15,-1,5,50,0,0,0,0,0
MainWindow/noteTextView.code.font (QString):
monospace,11,-1,2,50,0,0,0,0,0
MainWindow/noteTextView.font (QString):
Ubuntu,11,-1,5,50,0,0,0,0,0
MainWindow/showNotesFromAllNoteSubFolders (bool):
true
MainWindow/tagTreeWidgetExpandState-1 (QStringList): empty
NoteFolder-1/NoteTabNameList (QStringList):
Work - TODO
NoteFolder-1/NoteTabStickinessList (QStringList): empty
NoteFolder-1/NoteTabSubFolderPathDataList (QStringList): empty
NoteHistory-1 (QVariantList):
<variant list with 20 item(s)>
NoteHistoryCurrentIndex-1 (int):
19
PiwikClientId (QString):
<hidden>
ScriptRepositoryDialog/mainSplitterState (QByteArray):
<binary data>
SettingsDialog/geometry (QByteArray):
<binary data>
TagAddDialog/geometry (QByteArray):
<binary data>
WelcomeDialog/geometry (QByteArray):
<binary data>
allowNoteEditing (bool):
false
allowOnlyOneAppInstance (QString):
true
appMetrics/notificationShown (QString):
true
checkSpelling (bool):
true
cryptoKey (QString):
<hidden>
currentNoteFolderId (QString):
1
currentWorkspace (QString):
initial
darkMode (QString):
false
demoNotesCreated (QString):
true
disableAutomaticUpdateDialog (QString):
true
dockWasInitializedOnce (QString):
true
guiFirstRunInit (bool):
true
initialLayoutIdentifier (QString):
full
itemHeight (QString):
17
localTrashSplitterSizes (QByteArray):
<binary data>
markdownHighlightingEnabled (QString):
true
noteEditIsCentralWidget (QString):
true
notesPath (QString):
/home/sohom/Notes
ownCloud/supportEnabled (QString):
false
savedSearches/noteFolder-1 (QStringList):
Work - TOOD, TOR Relay and Exi nodes, Personal Banking, Finance, Golang- random notes, Week1- catch up, What Programming Language Should You Learn - YouTube, qownnotes web-companion Browser extension to browse bookmarks and create notes in QOwnNotes, Note 2021-05-29T20.56.42, Note 2021-05-29T20.52.21, Note 2021-05-29T20.39.06
showMenuBar (bool):
true
showStatusBar (bool):
true
spellCheckLanguage (QString):
en_US
tagWasAddedToNote (QString):
true
webAppClientService/token (QString):
<hidden>
webSocketServerService/token (QString):
<hidden>
workspace-initial/name (QString):
Full
workspace-initial/noteSubFolderDockWidgetVisible (QString):
true
workspace-initial/windowState (QByteArray):
<binary data>
workspaces (QString):
initial
System environment
GJS_DEBUG_TOPICS:
JS ERROR;JS LOG
LANGUAGE:
en_IN:en
USER:
sohom
SSH_AGENT_PID:
15116
XDG_SESSION_TYPE:
x11
SHLVL:
0
HOME:
/home/sohom
DESKTOP_SESSION:
ubuntu
GIO_LAUNCHED_DESKTOP_FILE:
/usr/share/applications/PBE.QOwnNotes.desktop
GTK_MODULES:
gail:atk-bridge
GNOME_SHELL_SESSION_MODE:
ubuntu
MANAGERPID:
14926
DBUS_SESSION_BUS_ADDRESS:
unix:path=/run/user/1000/bus
GIO_LAUNCHED_DESKTOP_FILE_PID:
30986
IM_CONFIG_PHASE:
1
MANDATORY_PATH:
/usr/share/gconf/ubuntu.mandatory.path
LOGNAME:
sohom
_:
/usr/bin/dbus-update-activation-environment
JOURNAL_STREAM:
9:312260
DEFAULTS_PATH:
/usr/share/gconf/ubuntu.default.path
XDG_SESSION_CLASS:
user
USERNAME:
sohom
GNOME_DESKTOP_SESSION_ID:
this-is-deprecated
WINDOWPATH:
2
PATH:
/home/sohom/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
SESSION_MANAGER:
local/DDSPL1988:@/tmp/.ICE-unix/15159,unix/DDSPL1988:/tmp/.ICE-unix/15159
INVOCATION_ID:
bd2a1c0ad65e42978e8fba941764bfbd
XDG_RUNTIME_DIR:
/run/user/1000
XDG_MENU_PREFIX:
gnome-
DISPLAY:
:0
LANG:
en_IN
XDG_CURRENT_DESKTOP:
ubuntu:GNOME
XAUTHORITY:
/run/user/1000/gdm/Xauthority
XDG_SESSION_DESKTOP:
ubuntu
XMODIFIERS:
@im=ibus
SSH_AUTH_SOCK:
/run/user/1000/keyring/ssh
SHELL:
/bin/zsh
QT_ACCESSIBILITY:
1
GDMSESSION:
ubuntu
GPG_AGENT_INFO:
/run/user/1000/gnupg/S.gpg-agent:0:1
GJS_DEBUG_OUTPUT:
stderr
QT_IM_MODULE:
ibus
PWD:
/home/sohom
XDG_DATA_DIRS:
/usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
XDG_CONFIG_DIRS:
/etc/xdg/xdg-ubuntu:/etc/xdg
Web-Companion Version: 20.10.0
The text was updated successfully, but these errors were encountered: