database import policy violation in ftpmaster

Bug #78452 reported by Elliot Murphy
2
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Celso Providelo

Bug Description

snip from a run of some page tests:

** 1 import policy violations **

There were 1 database import violations.
You should not import canonical.launchpad.database.publishing into:
    canonical.launchpad.scripts.ftpmaster
Exception exceptions.TypeError: "'NoneType' object is not callable" in <bound method Transaction.__del__ of <sqlobject.dbconnection.Transaction object at 0x2b3a0b545590>> ignored

I don't know enough about ftpmaster to suggest a fix for this, so reporting a bug instead.

Elliot Murphy (statik)
Changed in launchpad:
assignee: nobody → cprov
status: Unconfirmed → Confirmed
Revision history for this message
Celso Providelo (cprov) wrote :

Yes, we are still using an special query on SPFP to get unique librarian file reference for a given filename (SyncSource.fetchFileFromLIbrarian).

It can be replaced by matching the wanted API with the already available method IDistribution (getFileByName).

Changed in launchpad:
importance: Undecided → Medium
Revision history for this message
Celso Providelo (cprov) wrote :

Hi Elliot,

Thanks for the report, let's get it fixed, hopefully, next Friday.

Revision history for this message
Celso Providelo (cprov) wrote :

Steve also suggested that when this problem is fixed, the import fascist should also disallow future such imports, by causing an exception and not just a warning.
I will hopefully address it tomorrow morning.

Changed in soyuz:
importance: Medium → High
Revision history for this message
Celso Providelo (cprov) wrote :

wip in my `dak-tools`.

Changed in soyuz:
status: Confirmed → In Progress
Revision history for this message
Celso Providelo (cprov) wrote :

RF 4393

Changed in soyuz:
status: In Progress → Fix Committed
Changed in soyuz:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.