Offline copy login failure

50 views
Skip to first unread message

Aschwin van der Woude

unread,
Jan 6, 2012, 4:32:44 PM1/6/12
to Clipperz
Hi,

Clipperz is just what I was looking for. Great software!
I installed Clipperz on my own Linux server and it works as expected,
except for the off-line copy.

I had to make a few simple modifications before dump would even work,
as the default beta/dump/ doesn't work. I suppose it usually uses a
rewrite rule or such, which I don't have.

Any way, the first change was that reference:

diff fresh/beta/index.html install/beta/index.html
376c376
< Clipperz_dumpUrl = "/dump/";
---
> Clipperz_dumpUrl = "/dump.php";

The file dump.php was moved to the beta directory, as otherwise it
wouldn't be found. And the following references were changed to make
it work:

diff fresh/dump.php install/beta/dump.php
6,12c6,12
< include "./configuration.php";
< include "./objects/class.database.php";
< include "./objects/class.user.php";
< include "./objects/class.record.php";
< include "./objects/class.recordversion.php";
< include "./objects/class.onetimepassword.php";
< include "./objects/class.onetimepasswordstatus.php";
---
> include "../configuration.php";
> include "../objects/class.database.php";
> include "../objects/class.user.php";
> include "../objects/class.record.php";
> include "../objects/class.recordversion.php";
> include "../objects/class.onetimepassword.php";
> include "../objects/class.onetimepasswordstatus.php";
14c14
< $htmlContent = file_get_contents("../index.html");
---
> $htmlContent = file_get_contents("./index.html");


After these changes dump.php seemingly does the right thing and the
offline data seems to be contained in the downloaded file. But for
some reason the login always fails. I have also changed the password
and with a fresh dump it still fails. The online version, as installed
on my server, continues to function properly otherwise.

Any help would be much appreciated,

-Aschwin

Aschwin van der Woude

unread,
Jan 7, 2012, 5:44:26 AM1/7/12
to Clipperz
Interestingly when using the offline copy from the clipperz.com
service and replacing the data with the export from my own server...
it works.

I guess the clipperz.com version is slightly newer than the community
version.
As a work-around I am now using the clipperz.com version when dumping
to an off-line copy.

Would still be nice to have a working community version that I could
use instead,

-Aschwin

On Jan 6, 11:32 pm, Aschwin van der Woude <asch...@vanderwoude.info>
wrote:

giulio...@gmail.com

unread,
Jan 14, 2012, 4:47:58 PM1/14/12
to asc...@vanderwoude.info, Clipperz
Hello Aschwin,

did you download the community edition from GitHub, or the packaged version?

In any case, it would be really awesome, if you could send a pull
request on GitHub with the needed changes to fix the /dump problem.

Regarding the login not working in the offline copy, could you please
try to diff the file you get from clipperz.com with the file you get
from your own instance of the (fixed) Community Edition?

Thanks for the report.

Regards,

Giulio Cesare

> --
> You received this message because you are subscribed to the Google Groups "Clipperz" group.
> To post to this group, send email to clip...@googlegroups.com.
> To unsubscribe from this group, send email to clipperz+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/clipperz?hl=en.
>

Reply all
Reply to author
Forward
0 new messages