0
Searching answer

No content when user security enabled

Vlad Pichardo 9 years ago updated by Jason Jones 9 years ago 14
If I enable the "Protect shared content with user accounts" option and log in with one of the accounts, the comic section is blank. I can actually see the link to comics but once in, there's nothing. I did add the usernames to the shared comic folder. If they aren't there, I get the this user "Sorry, you are not authorized to access any file on this server". So I assume I set the permissions right. Or am I doing something wrong?
Never mind. I removed the trailing slash on the shared directory.
Under review
Perhaps I'll add some code to automatically remove the trailing slash. Thanks for the feedback.

[Edit] Done in 1.7.0
I'm bumping this. I have the same issue of no content when user security enabled on 1.7.0. No error message just no content. Works fine with security off, but I don't want to leave it like that since I'm running it from a home server. Below are my settings for Comics.

Could you take a look at your log file and check if you have some errors ?

For now I'm quite puzzled by this problem. So if you have time to "play" a little bit with the settings (try to share another folder, create another user etc.) and find some hints, it would help a lot.

Searching answer
I tried adding another folder and another user. The second user similarly does not get any content. and it is the same with the second folder, does not show content.

The only log messages that seems like it could be related was 

"20150305 15:20:59 [Scanner thread] WARN com.ubooquity.data.database.b - Could not find id of root path /shares/Installs/Comics (ignore this warning if you just added a new root directory)"
It only happens when beginning a scan.

And "20150305 15:25:03 [pool-2-thread-16] WARN com.ubooquity.provider.page.a - Entry not available, either you don't have the right to see it or it is a file format not supported for online reading. ID: 1747"
This occured when I went straight to a book in the comic reader "/comicreader/1747" that I had previously visited when security was turned off.

I hope that information helps.
Sorry for getting back so late. Unfortunately I still haven't a clue of what might be going on. :(
I had the black screen issue pop up right after adding a new user and allowing him access to comics via the web admin page. Like the OP, I had the links but nothing showed up. I even added a new book to see if it would show up, it didnt. I fixed mine by removing the share path to my comics and re-adding it in Ubooquity. Not sure if this helps you track down anything but: I have my comics stored on a separate pc from the Ubooquity server. I have a mapped drive setup on the Ubooquity Server and used that path in the Ubooquity settings.
I went back and checked the logs and these are the errors and info I got while the issue was happening, I edited out usernames and IP addresses for security:

20150513 11:06:36 [Scanner thread] INFO com.ubooquity.data.feeder.a - Scanning comics directories
20150513 11:06:36 [pool-2-thread-4] INFO com.ubooquity.b - Reverse proxy prefix is not activated
20150513 11:06:36 [Scanner thread] WARN com.ubooquity.data.database.b - Could not find id of root path J: (ignore this warning if you just added a new root directory)
20150513 11:06:36 [pool-2-thread-4] INFO com.ubooquity.b - Internal server started. Listening on port 2202
20150513 11:06:42 [Scanner thread] ERROR com.ubooquity.data.feeder.a - Error while scanning comics shared directories
java.lang.NullPointerException: null
at java.util.Objects.requireNonNull(Unknown Source) ~[na:1.8.0_45]
at java.util.Arrays$ArrayList.<init>(Unknown Source) ~[na:1.8.0_45]
at java.util.Arrays.asList(Unknown Source) ~[na:1.8.0_45]
at com.ubooquity.data.feeder.a.c(SourceFile:442) [Ubooquity.jar:1.7.6]
at com.ubooquity.data.feeder.a.b(SourceFile:39) [Ubooquity.jar:1.7.6]
at com.ubooquity.data.feeder.a$1.run(SourceFile:127) [Ubooquity.jar:1.7.6]
at java.lang.Thread.run(Unknown Source) [na:1.8.0_45]
20150513 11:06:42 [Scanner thread] WARN com.ubooquity.data.database.b - Could not find id of root path J: (ignore this warning if you just added a new root directory)
20150513 11:06:42 [Scanner thread] INFO com.ubooquity.data.feeder.a - Finished scanning comics directories, populating folders content cache
20150513 11:06:42 [Scanner thread] INFO com.ubooquity.data.feeder.a - Comics folder content cache populated
20150513 11:06:44 [pool-2-thread-14] INFO com.ubooquity.provider.webadmin.j - Admin logged off
20150513 11:06:55 [pool-2-thread-19] INFO com.ubooquity.b - User logged off
20150513 11:07:12 [pool-2-thread-19] INFO com.ubooquity.b - Cookie token invalid or too old. Access Denied. [login:][ip:216.47.218.231]
20150513 11:07:12 [pool-2-thread-19] INFO com.ubooquity.b - User successfuly logged in. [login:][ip:]
20150513 11:12:12 [pool-2-thread-11] INFO com.ubooquity.b - User logged off
20150513 14:36:08 [pool-2-thread-17] INFO com.ubooquity.b - User successfuly logged in. [login:][ip:]
20150513 14:37:21 [Scanner thread] INFO com.ubooquity.data.feeder.a - Scanning books directories
20150513 14:37:21 [Scanner thread] INFO com.ubooquity.data.feeder.a - Finished scanning books directories, populating folders content cache
20150513 14:37:21 [Scanner thread] INFO com.ubooquity.data.feeder.a - Books folder content cache populated
20150513 14:37:21 [Scanner thread] INFO com.ubooquity.data.feeder.a - Scanning comics directories
20150513 14:37:21 [Scanner thread] WARN com.ubooquity.data.database.b - Could not find id of root path J: (ignore this warning if you just added a new root directory)
20150513 14:37:24 [Scanner thread] INFO com.ubooquity.b.c - Reading metadata of comic file: J:\\Comics\Misc\Mad Max - Fury Road Inspired Artists Deluxe Edition (2015) (Digital) (Dogmatix-Empire).cbr
20150513 14:37:24 [Scanner thread] INFO com.ubooquity.data.database.b - Inserting/updating comic entry in database : J:\Comics\Misc\Mad Max - Fury Road Inspired Artists Deluxe Edition (2015) (Digital) (Dogmatix-Empire).cbr
20150513 14:37:31 [Scanner thread] ERROR com.ubooquity.data.feeder.a - Error while scanning comics shared directories
java.lang.NullPointerException: null
at java.util.Objects.requireNonNull(Unknown Source) ~[na:1.8.0_45]
at java.util.Arrays$ArrayList.<init>(Unknown Source) ~[na:1.8.0_45]
at java.util.Arrays.asList(Unknown Source) ~[na:1.8.0_45]
at com.ubooquity.data.feeder.a.c(SourceFile:442) [Ubooquity.jar:1.7.6]
at com.ubooquity.data.feeder.a.b(SourceFile:39) [Ubooquity.jar:1.7.6]
at com.ubooquity.data.feeder.a$1.run(SourceFile:127) [Ubooquity.jar:1.7.6]
at java.lang.Thread.run(Unknown Source) [na:1.8.0_45]
20150513 14:37:31 [Scanner thread] WARN com.ubooquity.data.database.b - Could not find id of root path J: (ignore this warning if you just added a new root directory)
20150513 14:37:31 [Scanner thread] INFO com.ubooquity.data.feeder.a - Finished scanning comics directories, populating folders content cache
20150513 14:37:31 [Scanner thread] INFO com.ubooquity.data.feeder.a - Comics folder content cache populated

I can send u the full log if u like?
I'll take a look at the lines you pasted first. Might take a while though...
I had a similar issue that was occurring. I was able to solve this (and the root id issue) by not using a symlink, but instead specifying the full path to the books and comics folders.
This was on a QNAP Linux NAS using the qpkg package distro here:
http://forum.qnap.com/viewtopic.php?f=320&t=109450

That's definitely it. I changed my paths so that they don't use any symlinks and like magic security just works. So, must be that it's not reading through the symlink properly... glad that you pointed this out John!
While I haven't had any further issues or problems with books not showing up, I have continued to get errors in the logs during every single scan: ERROR com.ubooquity.data.feeder.a - Error while scanning comics shared directories
java.lang.NullPointerException: null........

I just readded my share path and changed it to the full windows UNC path: \\peacemaker\comics as opposed to just using J:\
I will keep an eye on the logs and see if this clears up the errors and report back.