On Friday, May 28, 2010 01:14:12 pm Adrian Schröter wrote:
On Freitag, 28. Mai 2010 20:13:44 Troy Telford wrote:
...
http://obsapi.americas.sgi.com/source/ISO_TEST/_product?cmd=deleteuploadr
ev Server returned an error: HTTP Error 403: Forbidden
k, definitive a bug. But I can not reproduce it here with OBS 2.0 beta 2.
And I am quite sure we would noticed this one with 1.7.x quite soon as
well.
Can you check the api server log file ? Usually
/srv/www/obs/api/log/production.log
Maybe you need to switch on debugging via
config.log_level = :debug
to see more.
$ sudo tail -f production.log
[D|#15949] add validation mapping: "tag", :tags_by_user_and_object => :tags
[D|#15949] add validation mapping: "tag", :project_tags => :tags
[D|#15949] add validation mapping: "tag", :package_tags => :tags
[D|#15949] default_server for :rest models: obsapi.foo.bar.com:5352
[D|#15949] setting up transport for model project
[D|#15949] [BSSQL] initialize( "bssql", {} )
[D|#15949] setting up transport for model package
[D|#15949] setting up transport for model bsrequest
[D|#15949] [REST] initialize( "rest", {:all=>#} )
[D|#15949] setting up transport for model collection
[D|#15967] default_server for :rest models: obsapi.foo.bar.com:5352
[D|#15967] setting up transport for model project
[D|#15967] [BSSQL] initialize( "bssql", {} )
[D|#15967] setting up transport for model package
[D|#15967] setting up transport for model bsrequest
[D|#15967] [REST] initialize( "rest", {:all=>#} )
[D|#15967] setting up transport for model collection
[D|#15967] SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
[D|#15967] Delayed::Job Columns (0.7ms) SHOW FIELDS FROM `delayed_jobs`
[D|#15967] SQL (0.1ms) BEGIN
[D|#15967] Delayed::Job Create (0.2ms) INSERT INTO `delayed_jobs`
(`failed_at`, `locked_by`, `created_at`, `handler`, `updated_at`, `priority`,
`run_at`, `attempts`, `locked_at`, `last_error`) VALUES(NULL, NULL,
'2010-05-28 14:39:02', '--- !ruby/object:StatusMonitorJob {}\n\n', '2010-05-28
14:39:02', 0, '2010-05-28 14:39:02', 0, NULL, NULL)
[D|#15967] SQL (0.9ms) COMMIT
[D|#15950] SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
[I|#15950]
Processing SourceController#index_project (for ::ffff:169.238.65.211 at
2010-05-28 14:39:22) [GET]
[I|#15950] Parameters: {"project"=>"ISO_TEST"}
[D|#15950] AUTH:
[D|#15950] no authentication string was sent
[I|#15950] Rendering status
[I|#15950] errorcode 'unknown' - Authentication required
[I|#15950] Rendering status (401)
[I|#15950] Filter chain halted as [:extract_user] rendered_or_redirected.
[I|#15950] Completed in 1ms (View: 0, DB: 0) | 401 Unauthorized
[http://obsapi.foo.bar.com/source/ISO_TEST]
[I|#15950]
Processing SourceController#index_project (for ::ffff:169.238.65.211 at
2010-05-28 14:39:22) [GET]
[I|#15950] Parameters: {"project"=>"ISO_TEST"}
[D|#15950] AUTH: BasicdHRlbGZvcmQ6cGVybWlzc2lvbg==
[D|#15950] User Load (0.3ms) SELECT * FROM `users` WHERE (login =
'ttelford') LIMIT 1
[D|#15950] User Columns (0.7ms) SHOW FIELDS FROM `users`
[D|#15950] USER found: ttelford
[D|#15950] User ttelford initialised
[D|#15950] User's source backend <:>
[D|#15950] DbProject Load (0.2ms) SELECT * FROM `db_projects` WHERE (name
= BINARY 'ISO_TEST') LIMIT 1
[D|#15950] [BSSQL] find( Package, [:all, {:project=>"ISO_TEST"}] )
[D|#15950] [BSSQL] query_from_options: {:project=>"ISO_TEST"}
[D|#15950] [BSSQL] query_from_options: query is: '@project='ISO_TEST''
[D|#15950] [BSSQL] join string: ", db_projects"
[D|#15950] [BSSQL] find conditions: ["db_packages.db_project_id =
db_projects.id AND db_projects.name = ?", "ISO_TEST"]
[D|#15950] DbPackage Load (0.3ms) SELECT db_packages.* FROM `db_packages`
, db_projects WHERE (db_packages.db_project_id = db_projects.id AND
db_projects.name = 'ISO_TEST')
[D|#15950] DbPackage Columns (0.5ms) SHOW FIELDS FROM `db_packages`
[I|#15950] Completed in 12ms (View: 0, DB: 2) | 200 OK
[http://obsapi.foo.bar.com/source/ISO_TEST]
[I|#15950]
Processing SourceController#index_package (for ::ffff:169.238.65.211 at
2010-05-28 14:39:22) [GET]
[I|#15950] Parameters: {"rev"=>"latest", "project"=>"ISO_TEST",
"package"=>"_product"}
[D|#15950] AUTH:
[D|#15950] no authentication string was sent
[I|#15950] Rendering status
[I|#15950] errorcode 'unknown' - Authentication required
[I|#15950] Rendering status (401)
[I|#15950] Filter chain halted as [:extract_user] rendered_or_redirected.
[I|#15950] Completed in 1ms (View: 0, DB: 0) | 401 Unauthorized
[http://obsapi.foo.bar.com/source/ISO_TEST/_product?rev=latest]
[I|#15950]
Processing SourceController#index_package (for ::ffff:169.238.65.211 at
2010-05-28 14:39:22) [GET]
[I|#15950] Parameters: {"rev"=>"latest", "project"=>"ISO_TEST",
"package"=>"_product"}
[D|#15950] AUTH: BasicdHRlbGZvcmQ6cGVybWlzc2lvbg==
[D|#15950] User Load (0.2ms) SELECT * FROM `users` WHERE (login =
'ttelford') LIMIT 1
[D|#15950] USER found: ttelford
[D|#15950] User ttelford initialised
[D|#15950] User's source backend <:>
[D|#15950] DbPackage Load (0.2ms) SELECT pack.*
FROM db_packages pack
LEFT OUTER JOIN db_projects pro ON pack.db_project_id = pro.id
WHERE pro.name = BINARY 'ISO_TEST' AND pack.name = BINARY '_product'
[D|#15950] [backend] GET: /source/ISO_TEST/_product?rev=latest
[I|#15950] Sending data
[I|#15950] Completed in 8ms (View: 0, DB: 0) | 200 OK
[http://obsapi.foo.bar.com/source/ISO_TEST/_product?rev=latest]
[I|#15950]
Processing SourceController#index_package (for ::ffff:169.238.65.211 at
2010-05-28 14:39:22) [POST]
[I|#15950] Parameters: {"cmd"=>"deleteuploadrev", "project"=>"ISO_TEST",
"package"=>"_product"}
[D|#15950] AUTH:
[D|#15950] no authentication string was sent
[I|#15950] Rendering status
[I|#15950] errorcode 'unknown' - Authentication required
[I|#15950] Rendering status (401)
[I|#15950] Filter chain halted as [:extract_user] rendered_or_redirected.
[I|#15950] Completed in 2ms (View: 1, DB: 0) | 401 Unauthorized
[http://obsapi.foo.bar.com/source/ISO_TEST/_product?cmd=deleteuploadrev]
[I|#15950]
Processing SourceController#index_package (for ::ffff:169.238.65.211 at
2010-05-28 14:39:22) [POST]
[I|#15950] Parameters: {"cmd"=>"deleteuploadrev", "project"=>"ISO_TEST",
"package"=>"_product"}
[D|#15950] AUTH: BasicdHRlbGZvcmQ6cGVybWlzc2lvbg==
[D|#15950] User Load (0.2ms) SELECT * FROM `users` WHERE (login =
'ttelford') LIMIT 1
[D|#15950] USER found: ttelford
[D|#15950] User ttelford initialised
[D|#15950] User's source backend <:>
[D|#15950] DbPackage Load (0.2ms) SELECT pack.*
FROM db_packages pack
LEFT OUTER JOIN db_projects pro ON pack.db_project_id = pro.id
WHERE pro.name = BINARY 'ISO_TEST' AND pack.name = BINARY '_product'
[D|#15950] roles_users Columns (0.3ms) SHOW FIELDS FROM `roles_users`
[D|#15950] Role Load (0.2ms) SELECT * FROM `roles` INNER JOIN
`roles_users` ON `roles`.id = `roles_users`.role_id WHERE
(`roles_users`.user_id = 2 )
[D|#15950] Role Columns (0.4ms) SHOW FIELDS FROM `roles`
[D|#15950] groups_users Columns (0.4ms) SHOW FIELDS FROM `groups_users`
[D|#15950] Group Load (0.2ms) SELECT * FROM `groups` INNER JOIN
`groups_users` ON `groups`.id = `groups_users`.group_id WHERE
(`groups_users`.user_id = 2 )
[D|#15950] roles_static_permissions Columns (0.4ms) SHOW FIELDS FROM
`roles_static_permissions`
[D|#15950] StaticPermission Load (0.2ms) SELECT * FROM
`static_permissions` INNER JOIN `roles_static_permissions` ON
`static_permissions`.id = `roles_static_permissions`.static_permission_id
WHERE (`roles_static_permissions`.role_id = 1 )
[D|#15950] StaticPermission Columns (0.4ms) SHOW FIELDS FROM
`static_permissions`
[D|#15950] dispatch_command: trying to call method
'index_package_deleteuploadrev'
[D|#15950] [backend] POST: /source/ISO_TEST/_product?cmd=deleteuploadrev
[I|#15950] Sending data
[I|#15950] Completed in 19ms (View: 0, DB: 3) | 200 OK
[http://obsapi.foo.bar.com/source/ISO_TEST/_product?cmd=deleteuploadrev]
I've found (through trial and error) that 'osc ci' doesn't like _any_
files with the extension *.inc. I can even create a 'junk' package
(named anything; it doesn't have to be _product), and if I try to add a
file named foo.inc and
check it in, I see the same error:
Interessting, either our filename validation code wents wrong or this may
be a rails bug. Can you tell which OBS version and which base system do
you use ? Do you use our packages or is it installed from git ?
I'm using your packages (for openSUSE 11.2).
(http://download.opensuse.org/repositories/openSUSE:/Tools/openSUSE_11.2/)
I keep them updated via zypper.
$ rpm -qa | grep obs
obs-service-download_url-0.1-7.1.noarch
obs-utils-1.7.5-1.1.x86_64
obs-common-1.7.0-1.1.x86_64
obs-api-1.7.5-1.1.x86_64
obs-worker-1.7.5-1.1.x86_64
obs-server-1.7.2-18.8.x86_64
obs-signd-1.7.0-5.1.x86_64
obs-source_service-1.7.5-1.1.x86_64
obs-productconverter-1.7.5-1.1.x86_64
have fun!
I managed to get an ISO image created; so I am having fun. Thanks.
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-buildservice+help@opensuse.org