Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Anonymous wrote:

??? can't you cut & Paste it as json is not allowed for upload

That won't help. We need to see an exact binary representation of the file.
max123kl

Re: SSH NEW File creation is different ( Notepad++) as vs direct Edit under NANO

Rar9 wrote:


I created a "config.gateway.json" with some rules that was created with Notepad++ that was not recognised by my Unifi Linux Controller.

I manage to get it fixed by just Cut & Pasting the Same rules into my SSH Nano Editor and the Controller accepts the File.

Is this bug in Winscp transfering via SCP or could it be Notepad++ doing something to the file ?

If you use notepad++ on a windows machine and nano on a Linux machine you may use two different code pages. On windows notepad++ uses ANSI as default. Try to change Encoding/Kodierung to UTF8, which is used by Linux as default. Convert and save the file again.
Guest

??? can't you cut & Paste it as json is not allowed for upload
martin

Please, "attach" it.
Rar9

{
"firewall":{
"name":{
"LAN_IN":{
"default-action":"accept",
"description":"packets from intranet",
"rule":{
"2001":{
"action":"drop",
"description":"Device 1",
"protocol":"all",
"source":{
"mac-address":"xx:xx:xx:xx:xx:x1"
},
"time":{
"starttime":"21:30:00",
"stoptime":"06:30:00",
"weekdays":"Mon,Tue,Wed,Thu,Sun"
}
},
"2002":{
"action":"drop",
"description":"Device 2",
"protocol":"all",
"source":{
"mac-address":"xx:xx:xx:xx:xx:x2"
},
"time":{
"starttime":"21:30:00",
"stoptime":"06:30:00",
"weekdays":"Mon,Tue,Wed,Thu,Sun"
}
},
"4001":{
"action":"drop",
"description":"Device 1",
"protocol":"all",
"source":{
"mac-address":"xx:xx:xx:xx:xx:x1"
},
"time":{
"starttime":"23:00:00",
"stoptime":"06:30:00",
"weekdays":"Fri,Sat"
}
},
"4002":{
"action":"drop",
"description":"Device 2",
"protocol":"all",
"source":{
"mac-address":"xx:xx:xx:xx:xx:x2"
},
"time":{
"starttime":"23:00:00",
"stoptime":"06:30:00",
"weekdays":"Fri,Sat"
}
}
}
}
}
}
}
martin

Re: SSH NEW File creation is different ( Notepad++) as vs direct Edit under NANO

Can you download the file back (in a binary mode) and attach it here, for us to check?
Rar9

SSH NEW File creation is different ( Notepad++) as vs direct Edit under NANO

Hello

I created a "config.gateway.json" with some rules that was created with Notepad++ that was not recognised by my Unifi Linux Controller.

I manage to get it fixed by just Cut & Pasting the Same rules into my SSH Nano Editor and the Controller accepts the File.

Is this bug in Winscp transfering via SCP or could it be Notepad++ doing something to the file ?