Search…

X3 Photo Gallery Support Forums

Search…
 
chryan
Topic Author
Posts: 2
Joined: 19 Sep 2018, 02:56

Folder names with periods bypasses Protect settings

21 Sep 2018, 22:22

Repro steps:
  1. Create a new folder and name it "some.thing"
  2. Go to the PROTECT tab and add a new Link pointing to "some.thing" with user/pass credentials
  3. Access the page domain.com/some.thing
  4. Username and password are not prompted
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Folder names with periods bypasses Protect settings

22 Sep 2018, 02:26

I can confirm this issue. I will look into it for next X3 release! Some comments though:
  • It was only since latest release X3.25.0 that X3 properly supported .periods. in folder names.
  • Periods have semantical meaning for X3 and most apps, and are used to detect file extensions (eg .jpg) and need to be converted to _underscore_ when routing the URL. Therefore, supporting dots in X3 required some workarounds to get working in the first place ... For example, an URL /this.is.page/ will route to the X3 app as "this_is_page" simply because of the technical nature of dots.
  • "Periods" are considered "special characters", and optimally speaking, they should really be avoided in URL's (which in X3 are created from your folder name).
    https://www.seroundtable.com/google-dec ... 21435.html
    https://moz.com/community/q/is-using-do ... -a-problem
    https://beamtic.com/dots-in-urls
My only point is, if you are creating pages from scratch, you should consider using hyphen "-" instead if possible. Other than that, it's not fundamentally "wrong" to use .periods. in folder names, and it should work properly in X3. Thanks for reporting!
 
chryan
Topic Author
Posts: 2
Joined: 19 Sep 2018, 02:56

Re: Folder names with periods bypasses Protect settings

22 Sep 2018, 05:35

I understand that with the exception of the domain names, URLs ideally shouldn't include periods.
However, the system should prevent the naming and definitely inform me of the invalid URL naming convention.
As a new user trying to familiarize myself with X3, I spent nearly an hour figuring out why my test page wasn't being username/password protected.

I'm perfectly fine with using dashes and already did so :)
Thanks for the reply. I appreciate the response!
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Folder names with periods bypasses Protect settings

22 Sep 2018, 06:34

chryan wrote:However, the system should prevent the naming and definitely inform me of the invalid URL naming convention.
You are right. The X3 page-creator input does in fact block unwanted characters (?&^$,/\etc), but considering period is/should be valid, it does not block period. In fact, before X3 had drag-and-drop mechanism for folder-sorting, our recommended method for pre-sorting folders was to use "numbered folders" eg. "3.foldername", where number would be hidden from URL.

Thus, since periods are considered valid, this is simply an X3 bug as reported.
chryan wrote:As a new user trying to familiarize myself with X3, I spent nearly an hour figuring out why my test page wasn't being username/password protected.
Apologies for inconvenience!
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Folder names with periods bypasses Protect settings

24 Feb 2019, 05:48

This issue was resolved in X3.27.0.
https://www.photo.gallery/blog/photo-gallery-X3-27/