Closed Bug 817624 Opened 12 years ago Closed 12 years ago

Update blocklisting with unique app/version IDs

Categories

(Marketplace Graveyard :: Consumer Pages, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED
2013-01-03

People

(Reporter: robhudson, Assigned: robhudson)

References

Details

Once bugs 814131 and 814136 land blocklisting needs to be updated...

Since we need a unique version ID we need to actually create a version/file in the database for these now. The file status can be STATUS_BLOCKED (15). Also make sure versions/files with this status cannot be deleted by the developer.

We need to copy the blocklisted app file (the generic one under /media) to the app/ver file path.

And add the app/ver to the META-INF/ folder.

I believe we can avoid signing the blocklisted app since it does not request access to privileged APIs.
Assignee: nobody → robhudson.mozbugs
Target Milestone: --- → 2012-12-06
Target Milestone: 2012-12-06 → 2012-12-13
Target Milestone: 2012-12-13 → 2012-12-20
(In reply to Rob Hudson [:robhudson] from comment #0)
> I believe we can avoid signing the blocklisted app since it does not request
> access to privileged APIs.

Does that make it inconsistent with all our other packages?  Your logic makes sense, but I like consistency a lot. :)
(In reply to Wil Clouser [:clouserw] from comment #1)
> (In reply to Rob Hudson [:robhudson] from comment #0)
> > I believe we can avoid signing the blocklisted app since it does not request
> > access to privileged APIs.
> 
> Does that make it inconsistent with all our other packages?  Your logic
> makes sense, but I like consistency a lot. :)

It does make it inconsistent. I figured out we can't do this anyway since the META-INF/ ids.json is also part of the signing/verification that takes place. So we'll sign the blocklisted app as well, which makes it consistent.
Priority: -- → P2
Don't think I'll wrap this up today so bumping to next week.
Target Milestone: 2012-12-20 → 2012-12-27
Mostly done and reviewed but needs some updates. Bumping to next week.

https://github.com/robhudson/zamboni/compare/817624-blocklisting
Target Milestone: 2012-12-27 → 2013-01-03
Final commit:
https://github.com/mozilla/zamboni/commit/b1185d8
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.