Comments (15)
Hi guys, don't want to be annoying, but any progress on this, there were few version upgrades but I still have this error on my home server. Cheers.
from suspicious_login.
Apparently the wrong error is thrown on Postgres. This DB exception is actually expected and handled:
suspicious_login/lib/Service/ETLService.php
Lines 128 to 130 in e9fef6a
from suspicious_login.
Could it be that the issue is more with the transaction being rolled back than with unique key violation?
from suspicious_login.
I took a bit of a closer look and what I was referring to is indeed incorrect. The stack trace points to
suspicious_login/lib/Service/ETLService.php
Line 134 in e9fef6a
Could it be that the issue is more with the transaction being rolled back than with unique key violation?
You are right in that the code is run in an transaction. The unhandled exception causes a rollback. However, I do not think this is the root of the problem here.
from suspicious_login.
Could it be that the issue is more with the transaction being rolled back than with unique key violation?
You are right in that the code is run in an transaction. The unhandled exception causes a rollback. However, I do not think this is the root of the problem here.
I was thinking that perhaps the exception to be handled at the php level may be an aborted transaction rather than a unique key violation.
from suspicious_login.
You're right. The problem is that postgres does not allow us to continue the transaction after the error. I have to to restructure the code for this.
from suspicious_login.
Hi, no, not really. But if you're interested in doing a little coding and refactoring exercise please let me know
from suspicious_login.
I haven't analysed the code yet, if you could save me some time and point in the right direction, I can have a try as I do, in 15% of my work, PHP and PGSQL
from suspicious_login.
What we do (in pseudo code)
try {
insert()
} catch (…) {
select()
if (nothing found) {
// ignore
}
update()
}
What we should do
select()
if (nothing found) {
insert()
} else {
update()
}
from suspicious_login.
Hi there, same setup – same error here. I'd be glad if it could be solved
from suspicious_login.
Hi there, same setup – same error here. I'd be glad if it could be solved +1
Just add your
from suspicious_login.
@ChristophWurst I have modified the script locally for testing. So far there are no entries in oc_login_address
, oc_login_address_aggregated
, oc_suspicious_login
nor oc_suspicious_login_model
, if these are the tables I'm looking for. Can I trigger ETLService manually, is it php -f occ suspiciouslogin:etl
?
from suspicious_login.
There is pull request #166 It cleared the errors in the log, but still doesn't create any entries in login_address_aggregated
table.
from suspicious_login.
@ChristophWurst please ignore my last pull request as I found it didn't populate login_address_aggregated
with any data. For some reason fetch()
didn't return any data but is_null($existing)
was always false
. This time using fetchAll()
and sizeof($existing) == 0
to detect if the record is in the table. So far it works fine and I have some data populating in the table. New pull request is #168 please review and try.
from suspicious_login.
Hi there, same setup – same error here. I'd be glad if it could be solved +1
Just add your to the original report. Then we know more people are affected. But please don't do these comments. Thanks
Allright, didn't know that was the policy here.
from suspicious_login.
Related Issues (20)
- First (legitimate) login attempt always fails (silently) HOT 8
- [I18N] Gettext escaping issue
- [feature] Whitelist IPs HOT 2
- Misleading german translation in machine learning chart legend HOT 4
- Memory consumption
- Log spam `jsonSerialize() should either be compatible with` HOT 1
- Setup psalm
- ValueError: random_int(): Argument #1 ($min) must be less than or equal to argument #2 ($max) HOT 10
- New login location detected email messages HOT 1
- App icon is inverted on app management
- Replace lint.yml with split workflows
- Dependency Dashboard
- Update rubixML HOT 15
- App not passing integrity check in v26/25 HOT 3
- Too verbose logs when model not found HOT 1
- Unit tests don't execute against php 8.2
- Add button to email notifications to get more info about the suspicious ip HOT 1
- A new login into your account was detected - really a login, or just a try? HOT 1
- Drop support for PHP 7.4 HOT 2
- PHP unserialize(): Error at offset HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from suspicious_login.