Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Dec 05 19:49
    mworrell labeled #2269
  • Dec 05 19:48
    mworrell commented #2270
  • Dec 05 19:48
    mworrell edited #2270
  • Dec 05 19:48
    mworrell milestoned #2270
  • Dec 05 19:48
    mworrell opened #2270
  • Dec 05 19:46

    mworrell on 2269-cropcenter-admin

    mod_admin: Fix crop center view… (compare)

  • Dec 05 17:02
    mworrell commented #2269
  • Dec 05 17:01
    loetie commented #2269
  • Dec 05 16:56
    mworrell milestoned #2269
  • Dec 05 16:56
    mworrell commented #2269
  • Dec 05 14:46
    loetie opened #2269
  • Dec 05 13:55
    mworrell closed #1838
  • Dec 05 13:55
    mworrell commented #1838
  • Dec 05 13:54

    mworrell on 1838-js-error-2

    (compare)

  • Dec 05 13:54

    mworrell on 0.x

    Do not emit the link-... event … (compare)

  • Dec 05 13:54
    mworrell closed #2268
  • Dec 05 13:30
    DorienD commented #2268
  • Dec 05 13:20
    mworrell milestoned #1838
  • Dec 05 13:19
    mworrell synchronize #2268
  • Dec 05 13:19

    mworrell on 1838-js-error-2

    Log missing z_event listeners a… (compare)

You can also use the local storage via m.client_local_storage
heiheshang
@heiheshang
How to save data to a session?
Maas-Maarten Zeeman
@mmzeeman
You can do that m_client_storage:put(key, value, Context)
Bear in mind that the values are stored on the client.
heiheshang
@heiheshang
@mmzeeman thanks
Maas-Maarten Zeeman
@mmzeeman
So if you want to store secrets, or be sure that the values are not changed you have to protect them.
You can protect from changes via z_utils:pickle. It uses the sign key system used by postbacks
The session storage also has a different scope than session cookies. Session cookies are for the entire browser, so all tabs... Session storage is restricted to one tab.
Marc Worrell
@mworrell
@9to1url_twitter the self signed certs are indeed a PITA, especially with some newer browsers. The problem is that we need HTTPS for the service worker, it won't run on non-https connections. We also need https for http2 connections, as those are tls only.
The self-signed certificate is right now stored in the priv/ssl directory of a site. We are thinking of generating a single self-signed certificate (authority) for every Zotonic install and then use that so sign the self-signed certificates of the sites. In that way it would be easier to handle these certs.
For privacy reasons I am mostly using Safari (don't like the built-in tracking in Chrome), there I can use the self-signed certificates. But... if they change then it is a major problem digging through the keychain to track down and remove the old certificate.
Why do browsers make this basic development thing to hard....
@jontow31_twitter great! I saw the issues passing by in my email, will have a look at them this week. (Very busy week, as I am also talking at the Code Beam Lite in Amsterdam on Thursday)
Maas-Maarten Zeeman
@mmzeeman
@mworrell On macos you have to put the self signed cert in the keychain access tool, and open a menu to approve the certificate. The procedure is strange.. Firefox and chrome do not seem to use the keychain tool?
Probably because some vendors thought it was a good idea to install local configuration websites on macos systems.
Maas-Maarten Zeeman
@mmzeeman
Maybe we should make some screenshots to explain how to do this.
9to.one URL shortener
@9to1url_twitter
@mworrell I tried both Safari/Chrome/Firefox, only Firefox works, both Safari and Chrome not allow to accept the cert.
Maas-Maarten Zeeman
@mmzeeman
@9to1url_twitter You are probably working from macOS. If you are, you have to put the self signed cert of the site into your keychain tool manually. Safari has removed dialog where you can access the site by pressing the "I understand the risks" (or similar) button.
After the certificate is in the keychain access tool, you stil can't access the site because the self signed certificate is not authorized.
You have to find the certificate in the keychain tool, and right click it.. Then you can authorize it to do stuff.
It is a very awkward procedure... I have two different macs with a shared keychain account. On both machines I do development with local test sites. Every time I switch development machine I have to go though the steps..
Maas-Maarten Zeeman
@mmzeeman
They have removed the accept dialog because some vendors thought it was a good idea to start local websites in their products. After this Apple removed the dialog to protect the average user... It was this problem I think: https://www.theverge.com/2019/7/8/20687014/zoom-security-flaw-video-conference-websites-hijack-mac-cameras
9to.one URL shortener
@9to1url_twitter
@mmzeeman thanks, I just only use Firefox anyway :-)
Maas-Maarten Zeeman
@mmzeeman
@9to1url_twitter I'm planning to make some screenshots later when I'm at home. I don't have a mac available right now.
Maas-Maarten Zeeman
@mmzeeman
@9to1url_twitter It is a matter of cd'ing to the directory of the self signed certificate.
@9to1url_twitter it is located in priv/ssl/self-signed
@9to1url_twitter Then type open self-signed4096.crt in your shell
@9to1url_twitter The keychain tool will open. It looks like this:
Screenshot 2019-11-26 at 20.16.45.png
In this case my site is named happy.local. You will see the name in the list. It doesn't have a red or blue marker on it's icon.
This means that it is not trusted... Double click it.. The window showing the details of the certificate appears.
It includes a Trust panel which can be opened. When you open it you see a couple of select boxes.... Trust the certificate for SSL.
After this you have to type your password.
Maas-Maarten Zeeman
@mmzeeman
After the authentication step a blue plus appears in the icon of the cert.
After this step you can use safari to connect to the local site. Sometimes you have to restart safari. YMMV.
9to.one URL shortener
@9to1url_twitter
@mmzeeman your approach not working at my machine:
image.png
Maas-Maarten Zeeman
@mmzeeman
I'm sorry to hear that. It looks like it is trying to update the system keychain... That is not good. Do you see a login keychain? That is the place where safari stores passwords.
9to.one URL shortener
@9to1url_twitter
@mmzeeman will try another time.
Another question: is Zotonic a full featured email server as well? Does Zotonic need another MTA? or has it own MTA and can assign domain on it? SMTP/IMAP/POP3 support? show/send email and in webpage?
Marc Worrell
@mworrell
Zotonic is a mail server and client. So doesn’t need another MTA. SMTP is obviously provided, but no IMAP etc. That needs all kinds of storage etc. So we do send email and also receive email, but the received email is to be handled by separate modules.
There is a notification for every received email and you can generate email addresses connected to specific handlers.
9to.one URL shortener
@9to1url_twitter
@mworrell thank you, will try
heiheshang
@heiheshang
How to transfer additional data to the authorization form? How to expand the model and set the value of additional fields?
heiheshang
@heiheshang
is this an unsolvable task?
Marc Worrell
@mworrell
Solvable, but am a bit busy with some email deliverability problems at one of our systems.
heiheshang
@heiheshang
How to make a post request to the model? I can’t call the methods of the model, how to access the model correctly, how does it work? How is the appeal to api going now? I see mqtt being called, but I don’t understand how to proceed
9to.one URL shortener
@9to1url_twitter

@arjan Could you share more idea how to call or integrate Elixir with Zotonic? Basically I am not asking more, but this is the min list:

  1. I have an existing app Elixir/Phoenix, I need to call Zotonic to get Article to show, compose in Zotonic, show in Phx
  2. I want the Phx app and Zotonic run in same BEAM

Thanks.

9to.one URL shortener
@9to1url_twitter

@mworrell Since I am really starting to dig into Zotonic, the good Ref part :-) , I feel not only me, might be a lot of folks also underestimated Zotonic.

Here is the reason:

  1. I have chance to work with Liferay , that is a great product as well. But I found the performance not good even give a lot of resource.
  2. Most Java JVM CMS suffer performance issue due to the JVM locking nature.
  3. Zotonic template / controller more clean and much easy to customize.

My suggestion should be: Get some venture capture and really expand the user base. :-)