# GenieACS 1.2.4 released

**URL:** <https://forum.genieacs.com/t/genieacs-1-2-4-released/1487>\
**Category:** Announcements\
**Created:** [February 25, 2021, 7:12am UTC](https://forum.genieacs.com/t/genieacs-1-2-4-released/1487 "2021-02-25T07:12:03Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![zaidka](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/zaidka/32/9_2.png) [@zaidka](https://forum.genieacs.com/u/zaidka)\
**Post date:** [February 25, 2021, 7:12am UTC](https://forum.genieacs.com/t/genieacs-1-2-4-released/1487/1 "2021-02-25T07:12:04Z")

</div>

I’m pleased to announce the next maintenance release in the 1.2 branch. This is a fairly significant update that brings some notable improvements besides the usual slew of fixes. Here are the highlights of this release:

- The data model state of a CPE is no longer forgotten after unsuccessful session termination (e.g. timeout). This addresses a number of undesired side effects that arise when a CPE does not terminate the session properly.
- Remove dependency on ‘hostInfo’ MongoDB command which is a privileged action. It is now possible to use shared MongoDB instances with limited privileged.
- New function `ROUND()` available to expressions. It works similar to the function by the same name in SQLite and PostgreSQL.
- Log access events for `genieacs-nbi` service.

Find the full list of changes in the changelog file or the [release page on GitHub](https://github.com/genieacs/genieacs/releases/tag/v1.2.4).

---

<div class="post-metadata">

**Author:** ![myreczek](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/myreczek/32/303_2.png) [@myreczek](https://forum.genieacs.com/u/myreczek)\
**Post date:** [February 25, 2021, 7:51pm UTC](https://forum.genieacs.com/t/genieacs-1-2-4-released/1487/2 "2021-02-25T19:51:58Z")

</div>

UI is broken in Safari:

```
[Error] SyntaxError: Invalid regular expression: invalid group specifier name
	promiseReactionJob

```

Works in Firefox.

---

<div class="post-metadata">

**Author:** ![zaidka](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/zaidka/32/9_2.png) [@zaidka](https://forum.genieacs.com/u/zaidka)\
**Post date:** [February 25, 2021, 8:12pm UTC](https://forum.genieacs.com/t/genieacs-1-2-4-released/1487/3 "2021-02-25T20:12:45Z")

</div>

Can you share the stack trace please?

---

<div class="post-metadata">

**Author:** ![myreczek](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/myreczek/32/303_2.png) [@myreczek](https://forum.genieacs.com/u/myreczek)\
**Post date:** [February 25, 2021, 8:33pm UTC](https://forum.genieacs.com/t/genieacs-1-2-4-released/1487/4 "2021-02-25T20:33:44Z")

</div>

This is everything I can get from Safari on this ☹

---

<div class="post-metadata">

**Author:** ![myreczek](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/myreczek/32/303_2.png) [@myreczek](https://forum.genieacs.com/u/myreczek)\
**Post date:** [February 26, 2021, 12:53pm UTC](https://forum.genieacs.com/t/genieacs-1-2-4-released/1487/5 "2021-02-26T12:53:58Z")

</div>

It is a Syntax error parsing regular expression in loaded JS, so it has no backtrace yet …

---

<div class="post-metadata">

**Author:** ![zaidka](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/zaidka/32/9_2.png) [@zaidka](https://forum.genieacs.com/u/zaidka)\
**Post date:** [February 26, 2021, 9:39pm UTC](https://forum.genieacs.com/t/genieacs-1-2-4-released/1487/6 "2021-02-26T21:39:05Z")

</div>

After a quick google search it appears to be likely caused by the use of Lookbehind in regex which is not supported in Safari. Lookbehind is only used once in the entire codebase so I made some changes to get rid of that. When you get a chance, can you try the latest master branch and let me know if that fixes the issue?

---

<div class="post-metadata">

**Author:** ![mjducharme](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/mjducharme/32/59_2.png) [@mjducharme](https://forum.genieacs.com/u/mjducharme)\
**Post date:** [February 27, 2021, 1:26am UTC](https://forum.genieacs.com/t/genieacs-1-2-4-released/1487/7 "2021-02-27T01:26:44Z")

</div>

@zaidka I’ve set up our test lab with the new version of GenieACS and it is working great. I can confirm the issue is fixed with sessions not closed cleanly - I can push a config or firmware to a device without it pushing over and over again like it used to. Very happy with the new version.

The only thing we need now that we keep having to edit the source code for is a way of adding the “X MIKROTIK Factory Configuration File” file type. Ideally I would like to see configuration parameters like ui.files.custom\_filetype.0 and ui.files.custom\_filetype.0 etc. where additions could be made to the list.

---

<div class="post-metadata">

**Author:** ![myreczek](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/myreczek/32/303_2.png) [@myreczek](https://forum.genieacs.com/u/myreczek)\
**Post date:** [March 1, 2021, 8:06am UTC](https://forum.genieacs.com/t/genieacs-1-2-4-released/1487/8 "2021-03-01T08:06:06Z")

</div>

I can confirm this fixed the issue in Safari. Thanks!

---

<div class="post-metadata">

**Author:** ![prawira](https://avatars.discourse-cdn.com/v4/letter/p/258eb7/32.png) [@prawira](https://forum.genieacs.com/u/prawira)\
**Post date:** [March 2, 2021, 8:42am UTC](https://forum.genieacs.com/t/genieacs-1-2-4-released/1487/9 "2021-03-02T08:42:12Z")

</div>

hi zaidka,

how about to add the custom file type such ‘X MIKROTIK Factory Configuration File’ ?  
is there any new way to add it or still like before (edit the apps.js) ?

thank you

Paul

---

<div class="post-metadata">

**Author:** ![mjducharme](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/mjducharme/32/59_2.png) [@mjducharme](https://forum.genieacs.com/u/mjducharme)\
**Post date:** [March 2, 2021, 5:15pm UTC](https://forum.genieacs.com/t/genieacs-1-2-4-released/1487/10 "2021-03-02T17:15:30Z")

</div>

Hmm… running into a minor issue here. Adding a file with OUI, product class etc, the file saves and has the name but OUI, Product class, Type and version are all empty?

@zaidka any ideas?

---

<div class="post-metadata">

**Author:** ![mjducharme](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/mjducharme/32/59_2.png) [@mjducharme](https://forum.genieacs.com/u/mjducharme)\
**Post date:** [March 2, 2021, 5:25pm UTC](https://forum.genieacs.com/t/genieacs-1-2-4-released/1487/11 "2021-03-02T17:25:34Z")

</div>

@zaidka here is what I see in the database after uploading a file and setting the type, OUI, product class, and version:

> db.fs.files.find()  
> { “\_id” : “hap-ac-lite-stage2.rsc”, “length” : 18583, “chunkSize” : 261120, “uploadDate” : ISODate(“2021-03-02T17:08:39.211Z”), “filename” : “hap-ac-lite-stage2.rsc”, “md5” : “9fd3d9a64ce9888b5ae79d98ae0ae9ed”, “metadata” : { “fileType” : “”, “oui” : “”, “productClass” : “”, “version” : “” } }

I manually ran an update command and now the metadata shows:

db.fs.files.update({“\_id” : “hap-ac-lite-stage2.rsc”}, {$set: { “metadata” : { “fileType” : “3 Vendor Configuration File”, “oui” : “E48D8C”, “productClass” : “hAP ac lite”, “version” : “2.0” } } });

But it seems silly to have to do that for each file uploaded.

---

<div class="post-metadata">

**Author:** ![zaidka](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/zaidka/32/9_2.png) [@zaidka](https://forum.genieacs.com/u/zaidka)\
**Post date:** [March 2, 2021, 10:22pm UTC](https://forum.genieacs.com/t/genieacs-1-2-4-released/1487/12 "2021-03-02T22:22:58Z")

</div>

> [@mjducharme](#):
>
> Hmm… running into a minor issue here. Adding a file with OUI, product class etc, the file saves and has the name but OUI, Product class, Type and version are all empty?

Working fine with me when I test it so I’m not sure what’s going on here. Maybe try a different browser to see if it works in one but not the other.

---

<div class="post-metadata">

**Author:** ![mjducharme](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/mjducharme/32/59_2.png) [@mjducharme](https://forum.genieacs.com/u/mjducharme)\
**Post date:** [March 3, 2021, 12:51am UTC](https://forum.genieacs.com/t/genieacs-1-2-4-released/1487/13 "2021-03-03T00:51:06Z")

</div>

Interesting - I’ve determined it only seems to happen when using nginx to reverse proxy the webapp. If I access the webapp on the original port it works. I’m using the same nginx settings as I used with the old genieacs-gui however.

---

<div class="post-metadata">

**Author:** ![lavira](https://avatars.discourse-cdn.com/v4/letter/l/87869e/32.png) [@lavira](https://forum.genieacs.com/u/lavira)\
**Post date:** [March 3, 2021, 12:09pm UTC](https://forum.genieacs.com/t/genieacs-1-2-4-released/1487/14 "2021-03-03T12:09:53Z")

</div>

this has been addressed before [in another thread](https://forum.genieacs.com/t/uploaded-files-are-missing-metadata-genieacs-1-2-0/866/3). You can find there the solution

---

<div class="post-metadata">

**Author:** ![prawira](https://avatars.discourse-cdn.com/v4/letter/p/258eb7/32.png) [@prawira](https://forum.genieacs.com/u/prawira)\
**Post date:** [March 4, 2021, 5:01am UTC](https://forum.genieacs.com/t/genieacs-1-2-4-released/1487/15 "2021-03-04T05:01:02Z")

</div>

i answer it by myself.  
no new way to add this custom file type.

so still have to edit the app.js file

Paul
