GithubHelp home page GithubHelp logo

nextcloud / jsxc.nextcloud Goto Github PK

View Code? Open in Web Editor NEW
47.0 12.0 32.0 19.56 MB

šŸ’¬ Chat app for Nextcloud with XMPP, end-to-end encryption, video calls, file transfer & group chat

Home Page: https://apps.nextcloud.com/apps/ojsxc

License: MIT License

JavaScript 13.64% PHP 63.62% Shell 0.52% TypeScript 18.16% SCSS 4.05%
xmpp chat nextcloud javascript

jsxc.nextcloud's Introduction

Bugtracker and issues: https://github.com/jsxc/jsxc/issues

Nextcloud JavaScript Xmpp Client

PHP Tests Lint codecov Downloads GitHub release

Real-time chat app for Nextcloud. More information about features, supported protocols/browsers, screenshots and planned features at www.jsxc.org.

Screenshot

Documentation

Translation

Please submit translations via webtranslateit.com.

Translation Status

jsxc.nextcloud's People

Contributors

aspdye avatar comradekingu avatar danscharon avatar dependabot[bot] avatar fancycode avatar fangebee avatar iongchun avatar janklostermann avatar ledfan avatar lukasreschke avatar marcelwaldvogel avatar nels83 avatar ofcaah avatar stibila avatar sualko avatar xf- avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jsxc.nextcloud's Issues

Problem with chat app

The issue is that when logged in as ā€œadminā€ the chat works fine, but when logged in as a simple user the chat requires re-authentication and the credential are not valid.

Eneo

'Send File' on Files Tab

Hi. It appears there is a security issue with using the Send File feature when browsing files in the Files tab. If I attempt to send a file when in the files tab, I always receive the following error:

Content Security Policy: The pageā€™s settings blocked the loading of a resource at [resource name]

However, the Send File feature works on any other tab; mail, news, announcements.

Can I enable Send File within the Files tab?

Edit to clarify: NextCloud (12.0.3), JSXC 3.3.1, using Firefox and Chrome on Linux and Windows.

RFE: Return avatars with shared roster

It would enhance user experience, when the shared roster module could also set initial avatars from Nextcloud.

E.g., for each user, include a link to the Avatar and a hash of its contents, so it is simple to check for changes.

Don't show deactivated users or users not in same group(s)

I just happened to have some deactivated users with NC 12.0.0. They all show as possible offline chat partners.

The thing is, they are deactivated because they are currently not working for the company but might do so again. The same is true for some 'external' users which seldom log on and are not supposed to see the whole company and therefore are in their own group 'external'.

I am not sure if this is a bug, or feature request. But it would be nice to only sow the users that are actually in the same group -- since I assume that 'deactivated' users are basically just another group.

I am using the experimental internal feature of this wonderful app.

XMPP 3.2.1 nextcloud12 and External sites issue

I am encountering a problem with XMPP when using External sites in nextcloud 12.

The scenario
While working with a site (link to an External site) that was opened within nextcloud 12
should the XMPP is suddenly used then there is no way that the keyboard will work inside the external site window however the mouse will work.
Should I do F5 then the keyboard will resume but that will result in losing the data entered on the screen.

Add a "reset API secret" button

There is currently no way to create a new API secret from the GUI. As this is a shared value, it probably needs even more change than a password (e.g. after giving the secret to someone to conduct tests :-))

Guest chat

When sharing documents using a link with users (e.g. sharing LOOL/Collabora online documents read/write), the guest has no possibility to use the chat. This is a request for an enhancement. (Maybe as part of OSSdev.)

Expected behavior

  1. The admin enables granting guest chat (see below), globally or to some groups
  2. The user shares a link and has the option to enable chat on this link; sends this link to guests
  3. This also creates a XMPP MUC room for that share, which would be a starting position for group discussions (and forking 1:1 discussions). The user who created the share would become a permanent member of the group (bookmarked as auto-join) with admin rights, so the user can maintain order
  4. Guests opening the link in their browsers will be presented with a MUC window (and hidden roster); have the option to change their nickname (and maybe open 1:1 chats)

Admin configuration

The admin enables guest chats (and has tokens enabled). On a new guest access, a new (temporary) JID of the form guest-${RANDOM}@${XMPP_DOMAIN} would be created.

This is easy to set up but would give the guest unrestricted access to the XMPP federation, unless the admin restricts this.

A possible ejabberd configuration might look as follows (untested):

acl:
  local_guest:
    user_regexp: "^guest-"
  ā€¦
access_rules:
  s2s:
    - deny: local_guest
    - allow
  ā€¦
s2s_access: s2s

Notes

This would also be useful for other JSXC-based apps.

Auto-scroll to new msg

Hello. I have a persistent issue running the latest version of NextCloud (12.0.3) with JSXC in which the window does not automatically scroll to the newest message, or even the most recent un-read message. I'm pretty sure that in my previous version of OwnCloud it worked. I've only recently upgraded from OC to NC and noticed the change. The expected behavior would be to always display the most recent message.

Can I enable this feature or help debug in any way?

Login issue

Hello. This chat app is great. Thank you for your contributions!

I'm having a strange login issue with jsxc 3.3.0 (internal) and NC 12.0.2.

Weird, on system with FF 54 I login and chat icon is there and chat works. On other system with FF 56 and same user, I log in to NC but there's no chat app icon or roster. If before login I click the text link to login without chat, after login I see the icon and roster list with relogin link, though modal does not log me in though.

FF 56 Console:

[WARN] No settings provided jsxc.min.js:13:1885
Content Security Policy: Ignoring duplicate source 'unsafe-inline' (unknown)
Content Security Policy: Couldnā€™t parse invalid host 'unsafe-inline' (unknown)
Content Security Policy: Directive ā€˜frame-srcā€™ has been deprecated. Please use directive ā€˜child-srcā€™ instead. (unknown)
JQMIGRATE: Migrate is installed, version 1.4.0 core.js:7:542
window.controllers/Controllers is deprecated. Do not use it for UA detection. merged.js:2165
State changed to INITIATING jsxc.min.js:13:1885
State changed to PREVCONFOUND jsxc.min.js:13:1885
check master jsxc.min.js:13:1885
I am the slave. jsxc.min.js:13:1885
UI State changed to INITIATING jsxc.min.js:13:1885
TypeError: jsxc.xmpp.conn is null[Learn More]

Modal login attempt: Authentication failed with the chat server. Maybe the password is wrong?

[WARN] No settings provided

Logging also has:

Error PHP preg_match() expects parameter 2 to be string, array given at /usr/local/www/nginx/nextcloud/apps/ojsxc/lib/Controller/SettingsController.php#325

Minimize / hide chat sidebar

The chat sidebar needs an option to be minimized hidden or closed.
As far as i know - now the only possibility is to "login without chat" but if one is already logged in with chat - a logout-login again is neccessary to close the sidebar...
This is especially true on mobile where the chat bar occupies 50% of the screen and effectively disables the possibility of working with anything else. Adding an item such as "hide chat" or "close chat" or "minimize" to the chat menu [at bottom of bar where settings is located ]would solve the issue.

user information not loading

I have installed this app on Nextcloud 12.0.4 and have not configured any external XMPP server. When I click on "Show Information" for one user, a pop-up appears with a spinning wheel that goes on forever.

Disable OTR in admin area

Hi,

I'd like to disable OTR in jsxc in order to not confuse my users. I'll confuse them enough once OMEMO arrives ;)

Is it possible to do that right now?

Online/Offline status is inaccurate

I have not yet found a pattern. But I noticed some inconsistencies about users being shown as online and offline.

This only happens if someone registered as 'online' when i was online. And then they are not shown as offline even when they are logged out.

People who sent me messages while I was offline do not register as 'online' when they are logged off and I came online after they logged off.

Enabling jsxc breaks creating account in android app

As I understand latest android app logins using web form. I cannot add new account with jsxc enabled probably because of it modifies login page.

After disabling I was able to do it. Not sure, may be it is android app bug.

android app is dev version from f-droid (20170724)
jsxc 3.2.1

OMEMO support

OMEMO support was added to jsxc recently.
It would be great to have that in the nextcloud version too.

jsxc/jsxc#228

ejabberd external authentication scripts missing

The external authentication scripts for ejabberd (auth_ejabberd_oc.php and auth_oc_user.php) are no longer available starting with version 3.0.2 (or they have been moved/renamed and I couldn't find them).

Are they no longer supported or are they maintained somewhere else now?

NC12: No admin icon

All the other admin panels in Nextcloud 12 have an icon, except JSXC. Please add our nice icon there as well.
Admin panel selection menu

When activating jsxc addon, user can not login to nextcloud anymore

I've got a working prosody server running. Normal clients can connect without any problems to it. So I also wanted to get the nextcloud client working with it.
I've setup bosh.
If I enter in my browser:
https://mydomain.com/http-bind/
I get
It works! Now point your BOSH client to this URL to connect to Prosody.
So it seems like bosh is setup correctly.
Also the config dialog of nextcloud xmpp client tells me, after entering the bosh url:
BOSH Server reachable.
So I've logged out, and then tried to log in again.
What wouldn't work. I just get an endless spinning wheel.

The browser debugging console tells me:

Content Security Policy: Couldnā€™t parse invalid host 'unsafe-inline'  (unknown)
Content Security Policy: The pageā€™s settings blocked the loading of a resource at self (ā€œscript-src 'nonce-Z0J0MXFYSzdLUE9IcHNLdU9wRUxNSWpMV1FHZXJjc04vNHdCQ2FaK0NzTT06MEg4aC9RTDJhOHIva0xYOUF0eDVYTTJNTERPcC9PQjhsY0oxV3RRd1hMcz0=' 'unsafe-eval'ā€). Source: (function s(t,n,e,r){t.initialize(n,e,r)....  login:1
JQMIGRATE: Migrate is installed, version 1.4.0  core.js:7:542
State changed to INITIATING  jsxc.min.js:13:1885
Try to relogin  jsxc.min.js:13:1885
Logout was forced or I found no valid jid  jsxc.min.js:13:1885
State changed to TRYTOINTERCEPT  jsxc.min.js:13:1885
State changed to INTERCEPTED  jsxc.min.js:13:1885
Use of Mutation Events is deprecated. Use MutationObserver instead.  bug-78414_content.js:70:2
State changed to ESTABLISHING  jsxc.min.js:13:1885
New connection  jsxc.min.js:13:1885
CONNECTING: null  jsxc.min.js:13:1885

Prosody.log
mod_bosh info New BOSH session, assigned it sid 'be9fb13c-643d-4d5f-9fa7-9302f2f89993'

apache errorlog doesn't show anything

nextcloud.log also doesn't show anything. only when saving the xmpp configuration it shows following (but that's probably an other bug):
{"reqId":"I2VfAm2UCLnLmB7v9AT9","level":3,"time":"2017-09-12T12:53:57+00:00","remoteAddr":"127.0.0.1","user":"admin","app":"PHP","method":"POST","url":"\/cloud\/index.php\/apps\/ojsxc\/settings\/admin","message":"preg_match() expects parameter 2 to be string, array given at \/var\/www\/html\/cloud\/apps\/ojsxc\/lib\/Controller\/SettingsController.php#325","userAgent":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/60.0.3112.78 Safari\/537.36","version":"12.0.2.0"}

When I click the link "Login without chat" I'm able to login.

I get the same behaviour in Firefox and Chromium.

Small Nextcloud theming isssue

Normally all the icons in the menu switch automatically from a light theme to a dark one if the background color is changed to one of the opposite brightness.

However the chat icon in the top right from this plugin stays light colored.

If you do really light theming, like a white menu bar the icon will thus be nearly invisible.

[BUG] Login without Chat Remains - Minor

Steps to reproduce

  1. Install Nextcloud Talk chat app via browser and as admin
  2. Remove Nextcloud Talk chat app
  3. Logout

Expected behaviour

The link "Login without chat" should be removed after Nextcloud Chat is removed

Actual behaviour

Link remains

Server configuration

Operating system:
Ubuntu 16.04
Web server:
NGiNX 1.10.3
Database:
10.2.x
PHP version:
7.2
Nextcloud version: (see Nextcloud admin page)
13
Updated from an older Nextcloud/ownCloud or fresh install:
fresh install
Where did you install Nextcloud from:
zip
Browser
Chrome 64.0.3282.186 (latest as of posting). I also did clear cache and everything in the browser.
Screenshot
https://i.imgur.com/sMmveoj.png

Messages are not always correctly send

As reported by @Schmuuu , @Nils160988 and on help.nextcloud.com some Chat messages are not correctly send and/or retrieved.

I cannot reproduce it, but it would be very good if we can fix this.

To anyone who is experiencing this problem can you provide the following information:

  • Nextcloud version
  • Database vendor (e.g. MySQL, postgres, sqlite)
  • Browser version
  • Are you using any special user names
  • User backend (e.g. default, LDAP etc)
  • Are you using multiple domains to access your Nextcloud?

Can you also set the loglevel of Nextcloud to 0 ('loglevel' => 0, in config/config.php), install the build provided in #34 and then put the nextcloud.log here. Please make sure any personal information is removed since all usernames, presence and chat messages will be logged.

Thanks!

v3.3.0-beta.1: Not saving settings

JSXC Hamburger menu -> Settings, change a setting, clicking on Save: Is not stored

The Save gets turned into a POST to https://example.ch/index.php/apps/ojsxc/ajax/setUserSettings.php, which results in 302. Needs to be changed to the new API.

deleting an LDAP user takes several minutes when jsxc.nextcloud is active

jsxc.nextcloud: 3.3.2

Expected behaviour

When I delete a user from LDAP which isn't in LDAP anymore with occ user:delete <user> it should only take a couple of seconds.

Actual behaviour

When jsxc.nextcloud is active, deleting such a user takes several minutes.
These are the SQL queries that the SQL server is receiving during that time:

SELECT "appid", "configkey", "configvalue" FROM "oc_preferences" WHERE "userid" = $1
SELECT "ldap_dn" FROM "oc_ldap_user_mapping" WHERE "owncloud_name" = $1
INSERT INTO "oc_ojsxc_stanzas" ("to", "from", "stanza") VALUES($1,$2,$3)

It looks like although I am using an external XMPP server, JSXC is trying to keep the rosters for its internal server up to date after a user removal.

As a result it took up to 9 minutes to delete a user from (an admittedly large) LDAP.

Nextcloud not working if media.peerconnection.enabled=false

Hi everyone,

On Firefox, if I have the config "media.peerconnection.enabled" to false, the app is blocking everything on Nextcloud (can't login, and if I was already logged-in, can't display files).
Is it expected ?
I know that app should not work with this setting, but it should not block others Nextcloud usages, on my mind.

Thank you.

[PHP 7.2] count(): Parameter must be an array or an object that implements Countable

Steps to reproduce

  1. Update PHP to version PHP 7.2.2
  2. update jsxc chat app in Nextcloud app overview if necessary
  3. look at the logs

Expected behaviour

probably no error messages ;)

Actual behaviour

the Nextcloud log is literally flooded. Within a few minutes there are a lot error messages of the kind:

{"reqId":"IXXXXhWXXXV","level":3,"time":"2018-02-07T15:17:34+01:00","remoteAddr":"XX.XXX.XX.XXX","user":"USER1","app":"PHP","method":"POST","url":"/apps/ojsxc/http-bind","message":"count(): Parameter must be an array or an object that implements Countable at /var/www/nextcloud/apps/ojsxc/lib/newcontentcontainer.php#36","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0","version":"13.0.0.14"}
{"reqId":"TXSXXXX3YCUXX0","level":3,"time":"2018-02-07T15:17:35+01:00","remoteAddr":"XX.XXX.XX.XXX","user":"USER2","app":"PHP","method":"POST","url":"/apps/ojsxc/http-bind","message":"count(): Parameter must be an array or an object that implements Countable at /var/www/nextcloud/apps/ojsxc/lib/Controller/HttpBindController.php#181","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0","version":"13.0.0.14"}

Server configuration detail

Operating system: Linux 4.14.17-1-lts #1 SMP Sat Feb 3 21:30:38 CET 2018 x86_64

Webserver: nginx/1.12.2 (fpm-fcgi)

Database: mysql 10.1.30

PHP version: 7.2.2
Modules loaded: Core, date, libxml, openssl, pcre, zlib, ctype, dom, fileinfo, filter, hash, json, mbstring, pcntl, SPL, PDO, bz2, posix, readline, Reflection, session, SimpleXML, standard, tokenizer, xml, xmlreader, xmlwriter, mysqlnd, cgi-fcgi, Phar, curl, exif, ftp, gd, gmp, intl, iconv, pdo_mysql, zip, apcu, memcache, Zend OPcache

Nextcloud version: 13.0.0 - 13.0.0.14

Updated from an older Nextcloud/ownCloud or fresh install: Updated from 12.0.5

Where did you install Nextcloud from: Web Updater

Signing status

Array

List of activated apps
Enabled:
 - activity: 2.6.1
 - admin_audit: 1.3.0
 - admin_notifications: 1.0.1
 - announcementcenter: 3.1.1
 - apporder: 0.4.1
 - audioplayer: 2.2.5
 - bookmarks: 0.10.1
 - bruteforcesettings: 1.0.3
 - calendar: 1.6.0
 - circles: 0.13.6
 - cms_pico: 0.9.7
 - comments: 1.3.0
 - contacts: 2.0.1
 - dav: 1.4.6
 - deck: 0.3.0
 - external: 3.0.2
 - federatedfilesharing: 1.3.1
 - federation: 1.3.0
 - files: 1.8.0
 - files_accesscontrol: 1.3.0
 - files_automatedtagging: 1.3.0
 - files_downloadactivity: 1.2.0
 - files_external: 1.4.1
 - files_markdown: 2.0.1
 - files_pdfviewer: 1.2.0
 - files_reader: 1.2.2
 - files_retention: 1.2.0
 - files_sharing: 1.5.0
 - files_texteditor: 2.5.1
 - files_trashbin: 1.3.0
 - files_versions: 1.6.0
 - files_videoplayer: 1.2.0
 - firstrunwizard: 2.2.1
 - gallery: 18.0.0
 - groupfolders: 1.2.0
 - issuetemplate: 0.3.0
 - logreader: 2.0.0
 - lookup_server_connector: 1.1.0
 - mail: 0.7.9
 - metadata: 0.6.0
 - nextcloud_announcements: 1.2.0
 - notes: 2.3.2
 - notifications: 2.1.2
 - oauth2: 1.1.0
 - ojsxc: 3.3.2
 - onlyoffice: 1.2.0
 - password_policy: 1.3.0
 - polls: 0.8.1
 - provisioning_api: 1.3.0
 - quota_warning: 1.2.0
 - ransomware_protection: 1.1.0
 - serverinfo: 1.3.0
 - sharebymail: 1.3.0
 - socialsharing_email: 1.0.3
 - spreed: 3.0.1
 - systemtags: 1.3.0
 - telephoneprovider: 1.0.1
 - theming: 1.4.1
 - twofactor_backupcodes: 1.2.3
 - twofactor_totp: 1.4.1
 - updatenotification: 1.3.0
 - user_usage_report: 1.0.1
 - workflowengine: 1.3.0
Disabled:
 - checksum
 - drawio
 - encryption
 - impersonate
 - passman
 - sharerenamer
 - survey_client
 - tasks
 - user_external
 - user_ldap

Configuration (config/config.php)
{
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
        "my.domain.tld",
        "192.xxx.xx.xx",
        "localhost"
    ],
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "dbtype": "mysql",
    "dbname": "***REMOVED SENSITIVE VALUE***",
    "dbhost": "***REMOVED SENSITIVE VALUE***",
    "dbport": "",
    "dbtableprefix": "oc_",
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "version": "13.0.0.14",
    "logtimezone": "Europe\/Berlin",
    "appstore.experimental.enabled": true,
    "appstoreenabled": true,
    "appstoreurl": "https:\/\/api.nextcloud.com\/v1",
    "mail_smtpmode": "smtp",
    "mail_smtpauth": 1,
    "mail_smtpport": "587",
    "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpauthtype": "LOGIN",
    "mail_from_address": "***REMOVED SENSITIVE VALUE***",
    "mail_domain": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpsecure": "tls",
    "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
    "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
    "preview_libreoffice_path": "\/usr\/bin\/libreoffice",
    "enabledPreviewProviders": [
        "OC\\Preview\\PNG",
        "OC\\Preview\\JPEG",
        "OC\\Preview\\GIF",
        "OC\\Preview\\BMP",
        "OC\\Preview\\XBitmap",
        "OC\\Preview\\MP3",
        "OC\\Preview\\TXT",
        "OC\\Preview\\MarkDown",
        "OC\\Preview\\TIFF"
    ],
    "filelocking.enabled": true,
    "memcache.local": "\\OC\\Memcache\\APCu",
    "memcache.locking": "\\OC\\Memcache\\Redis",
    "redis": {
        "host": "***REMOVED SENSITIVE VALUE***",
        "port": 0,
        "timeout": 0,
        "dbindex": 0,
        "password": "***REMOVED SENSITIVE VALUE***"
    },
    "maintenance": false,
    "updater.server.url": "https:\/\/updates.nextcloud.com\/updater_server\/",
    "updater.release.channel": "stable",
    "loglevel": 2,
    "theme": "",
    "installed": true,
    "overwrite.cli.url": "https:\/\/my.domain.tld",
    "updater.secret": "***REMOVED SENSITIVE VALUE***"
}

Are you using encryption: no

Are you using an external user-backend, if yes which one: None

Client configuration

Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0

Operating system: Arch Linux 4.14.17

Logs

Nextcloud log
{"reqId":"IXXXXhWXXXV","level":3,"time":"2018-02-07T15:17:34+01:00","remoteAddr":"XX.XXX.XX.XXX","user":"USER1","app":"PHP","method":"POST","url":"\/apps\/ojsxc\/http-bind","message":"count(): Parameter must be an array or an object that implements Countable at \/var\/www\/nextcloud\/apps\/ojsxc\/lib\/newcontentcontainer.php#36","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:58.0) Gecko\/20100101 Firefox\/58.0","version":"13.0.0.14"}
{"reqId":"TXSXXXX3YCUXX0","level":3,"time":"2018-02-07T15:17:35+01:00","remoteAddr":"XX.XXX.XX.XXX","user":"USER2","app":"PHP","method":"POST","url":"\/apps\/ojsxc\/http-bind","message":"count(): Parameter must be an array or an object that implements Countable at \/var\/www\/nextcloud\/apps\/ojsxc\/lib\/Controller\/HttpBindController.php#181","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:58.0) Gecko\/20100101 Firefox\/58.0","version":"13.0.0.14"}

Settings for external XMPP server are not shown

On an upgraded Nextcloud 11.0.2 instance I enabled the OJSXC app. It shows to be version 3.1.1 When I go to Administration -> Additional settings page and tick the "external" radio button, nothing happens.

xmpp_admin_settings

I am not able to insert any information about my external XMPP server. I tried to examine the problem with the inspector of Firefox. It seems that the JS is not executed when checking the radio button to unhide the settings in the CSS.

Could you please help me in getting the app up and running.

Image preview with other xmpp clients

Hi,

nextcloud 12.04 server and ejabberd-17.12.

Enabled the http_upload module in ejabberd and file upload and receive via http_upload both run normally.

But image preview (thumbnail) only show if clients are using nextcloud jsxc.

The test cases are (all use http_upload method):

  1. jsxc <-> jsxc = both show the thumbnail
  2. jsxc -> Conversations = jsxc shows thumbnail; Conversations shows the download URI
  3. Conversations -> jsxc = Conversations shows thumbnail; jsxc shows URI
  4. jsxc -> Gajim = both show the thumbnail (Gajim installed the Url image preview plugin)
  5. Gajim -> jsxc = Gajim shows the thumbnail; jsxc shows the URI
  6. Gajim <-> Conversations = both show the thumbnail correctly

Any ideas?
Thanks

Merge Chat app sidebar / user list more with Contacts menu

Now that the Chat function is properly integrated in the Contacts menu with #13, it would be cool to see how we can combine further.

We have the conversation windows on the bottom for each person or group, which are good.
Then thereā€™s a big user list on the right though, either shown or not shown. This is exactly why we developed the Contacts menu/popover to not be so present and be easier to include in the apps layouts, especially with some apps like Files and Tasks using a right sidebar already. :)

Some things are missing from the Contacts menu though, for example:

  • Last message written with that person, as mocked up at nextcloud/server#207
  • Online status directly on the avatar, as mocked up at nextcloud/server#207 (comment)
  • Clicking the avatar or username should launch a chat (if the Chat app is installed)
  • Notification for new messages, with a red bubble on the Contacts menu (like for the Notifications menu)
  • What else ā€¦?

Could we move these things from the user list to the Contacts menu in an effort to move towards one unified solution? :) What do you think @sualko @ChristophWurst @karlitschek?

Can't register managed server

Environment

  • PHP version: 5.6
  • NC version: 11
  • JSXC version: 3.3.0-beta.1

NC Logs

OCP\AppFramework\QueryException: Could not resolve dataRetriever! Class dataRetriever does not exist
.../nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php - line 117: OC\AppFramework\Utility\SimpleContainer->resolve('dataRetriever')
.../nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php - line 544: OC\AppFramework\Utility\SimpleContainer->query('dataRetriever')
.../nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php - line 73: OC\AppFramework\DependencyInjection\DIContainer->query('dataRetriever')
.../nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php - line 96: OC\AppFramework\Utility\SimpleContainer->buildClass(Object(ReflectionClass))
.../nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php - line 117: OC\AppFramework\Utility\SimpleContainer->resolve('OCA\\OJSXC\\Contr...')
.../nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php - line 544: OC\AppFramework\Utility\SimpleContainer->query('OCA\\OJSXC\\Contr...')
.../nextcloud/lib/private/AppFramework/App.php - line 101: OC\AppFramework\DependencyInjection\DIContainer->query('OCA\\OJSXC\\Contr...')
.../nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47: OC\AppFramework\App main('OCA\\OJSXC\\Contr...', 'register', Object(OC\AppFramework\DependencyInjection\DIContainer), Array)
[internal function] OC\AppFramework\Routing\RouteActionHandler->__invoke(Array)
.../nextcloud/lib/private/Route/Router.php - line 299: call_user_func(Object(OC\AppFramework\Routing\RouteActionHandler), Array)
.../nextcloud/lib/base.php - line 1010: OC\Route\Router->match('/apps/ojsxc/man...')
.../nextcloud/index.php - line 40: OC handleRequest()
{main}

Chat authentication doesn't work properly

Hi,

I have a Nextcloud 12.0.2 server with jsxc 3.2.1 app. Nextcloud has user_saml enabled using an environment variable and also a LDAP connection for user information retrieval (like email, full name).

When i login to Nextcloud and open the chat app i get "No connection! relogin". If i click relogin and enter my user/pass i get "Authentication failed with the chat server. Maybe the password is wrong?" even if user/pass are correct. But after this if i reload the page the chat app just logs me in. This works even if i provide wrong user/pass on the relogin.

Could this be fixed so that the chat app logs users in automatically?

Enable logging in via 3rd party XMPP server?

Has been discussed here:
nextcloud/server#687

Assuming that you have set up an external XMPP server, this would be a neat additional function for Nextcloud authentication. As a result anyone with a XMPP address can log-in into Nextcloud and through federation chat with existing JSXC users.

Could also be made to integrate the overall Nextcloud experience with other XMPP Auth enabled websites.

Security: XMPP Session established after first Authentication Factor!

The XMPP Connection to the managed Server is being established after the first Factor (Username/Password)
It doesnt wait until the 2nd Factor is validated.

Reproduce:

Environment

Nextcloud 12
JSXC Plugin: 3.3.0

JSXC Plugin Config

XMPP Chat configured with "Managed XMPP Server"

Misc

To verify Online-State: Another Jabber Account. Added to the Users Roster.

Nextcloud User

2FA Configured. In my case: U2F and TOTP

If you login to Nextcloud with Username/Password.
Nextcloud redirects you to /login/selectchallenge to select/validate the 2nd Factor.

But in parallel, the XMPP User already comes online!
Its even possible to Send Messages to the Users which are displayed using Browser Notifications.

Expection is of course that the Connection will only be established after an valid 2nd Factor.

BR,
Frank

Nextcloud/XMPP with differents username/password

Hi,
Is there any reason why for now, we need exact same username/password for Nextcloud & XMPP server ?
Could it be possible, to let user enter its XMPP settings ?
For example, Mail app is doing this, we don't need to have same auth for IMAP & Nextcloud.
Thank you.

Undefined index: loginForm

Hi folks,

I'm getting an error message in my logging from JSXC.

{"reqId":","level":3,"time":"2018-02-08T23:29:28+00:00","remoteAddr":"","user":"melroy","app":"PHP","method":"GET","url":"\/settings\/admin\/externalstorages","message":"Undefined index: loginForm at \/var\/www\/nextcloud\/html\/apps\/ojsxc\/settings\/personal.php#22","userAgent":"Mozilla\/5.0 (X11) Gecko\/20100101 Firefox\/58.0","version":"13.0.0.14"}

Regards, Melroy

Store chat history

It would be idea to store chat history in a folder that is searchable, uses contacts, and can show threads (for example using a similar concept to the Nextcloud Phone Sync app and how it handles SMS history.

Chat does not work when username contains '@'

Steps to reproduce

Create users:
Create two users accounts with username contains '@' like [email protected] and [email protected]

Enable JavaScript XMPP Chat (v 3.2.1)

Configure JavaScript Xmpp Client as Internal

Login with: [email protected] and [email protected], start a chat and send a messages between this accounts

Expected behaviour

Messages sent from [email protected] to [email protected] are sent successfully

Actual behaviour

Messages sent from [email protected] to [email protected] do not arrive

Server configuration

Operating system: Ubuntu 16.04
Nextcloud version: 12.0.2
Database: Postgresql 9.6
Web server: Nginx
PHP version: 7.0

Password synchro

hi,

i don't know if i'm in the good endroit to send my question. In the doubt, i ask here.

I use Nextcloud with the JavaScript XMPP's app.
In another serveur i have installed Openfire.
The relation betwin the 2 servers works.

Actualy, I must to create users in openfire and after i can log in with one new user in XMPP's app in nextcloud.

I don't use Ldap authentication, all my users's password are in Databases (openfire & nextcloud)

I want users could specifiy theirs password for openfire.
(i dont want to know the users passwords)
But i dont know how i can offer for all user the possibility to choose theirs password for openfire.

Users specify already their nextcloud passwords.
Is it possible to synchronise passwords user betwin the two databases ?

Thx

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.