プロジェクト

全般

プロフィール

Vote #63043

完了

Unable to upload file via file menu due to version filed.

Admin Redmine さんがほぼ2年前に追加. ほぼ2年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Attachments_19
対象バージョン:
開始日:
2008/04/13
期日:
進捗率:

0%

予定工数:
category_id:
19
version_id:
7
issue_org_id:
1053
author_id:
4
assigned_to_id:
0
comments:
16
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

I am unable to upload file via file menu. After some debugging i have discovered that required filed version is empty in this menu.
Did some one know how that could happen? I am using r1349. With git 1.5.3.8 as scm. The database is MySQL 5.0.51a


journals

I have the same problem with 0.7.1 (from rubyforge).

File upload for issues works fine, but the "Files" menu at /projects/add_file/project-name doesn't. The "version" field is a dropdown list with no values, and it's marked with an asterisk (required).

After "Add" is pressed, the request is processed for quite some time and then the user is redirected to projects/list_files/project-name, with no flash message (no error message / no confirmation message).

In the Administration -> Information section, "File repository writable" = true
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Sorry for the confusion - my problems only arised because of my lack of familiarity with the tool (no version was present in the project). However, the application behaviour was quite enigmatic - as there was no flash after unsuccessful upload (I had no idea what prevents redmine to accept the file).

So, I have an usability suggestion which may improve the "out of the box" redmine experience of newbie users :)

I think it would be useful to add a flash message after unsuccessful file upload with the description of the reason why the action failed. Also, in case of missing version id (which is only possible to select from the UI when no version is created), the error description could mention that you cannot add files until a project version is created.

Alternatively, a more "general" solution to the possible "version required" confusion: how about forcing the user who creates the project to give the name for the initial version (so that there never exists a project without a version) ?

Thanks a lot for the great work - I've been using redmine for only a couple days now and I find it awesome! (recommending it to friends and at work already:)
--------------------------------------------------------------------------------
This does indeed cause some confusion, several of my users are baffled when they cannot upload new files into a project and receive no notification informing them.

Perhaps when a new project is created a default version is created so users can upload files straight away?
--------------------------------------------------------------------------------
I confirm this bug. Redmine 0.7.1, ruby 1.8.5 (2006-08-25) [x86_64-linux]
--------------------------------------------------------------------------------
i just ran into this too. i think it redmine shouldn't require a version for file uploads.
--------------------------------------------------------------------------------
Up to the current @0.8.0@ this issue still exists.

Files can be uploaded without having at least one version without getting a notice about the failure. Patches (working with 0.8?) for this behaviour exists and are providing a notice about the version-requirement. I've related them to this issue.

Though, as readable in the duplicates of this issue, it is debatable if the version-requirement is really necessary. This is really a design-issue...
--------------------------------------------------------------------------------
I've now tested the patch provided in issue #602 on Redmine 0.8.0-RC1 and it still works...

It looks to me that it is the fix for this issue when the design isn't going to be modified. See also my "note":http://www.redmine.org/issues/show/602#note-3 on issue #602...

Side-note: I "think" that a design-change is wanted by the people who don't use Redmine for version/milestone-based projects. See for example this "forum-thread":http://www.redmine.org/boards/2/topics/show/3217#message-3237.
--------------------------------------------------------------------------------
Mischa The Evil wrote:
>
> Side-note: I "think" that a design-change is wanted by the people who don't use Redmine for version/milestone-based projects. See for example this "forum-thread":http://www.redmine.org/boards/2/topics/show/3217#message-3237.

Yes that is correct in my case. We aren't using versions but would like to us the File module.

But we are also considering Redmine for a larger software project that would have versions, and even then we don't want file uploads to require a version. Let's say we have versions; beta1, beta2, rc1, etc. Then I have a corporate overview presentation I want to upload to the files area. Why should that be tied to a specific version of a software release? Yes, it could go in Documents or a Wiki, but those areas are sometimes more than you need to just share a file with a group.
--------------------------------------------------------------------------------
Brad Schick wrote:
> Mischa The Evil wrote:
> >
> > Side-note: I "think" that a design-change is wanted by the people who don't use Redmine for version/milestone-based projects. See for example this "forum-thread":http://www.redmine.org/boards/2/topics/show/3217#message-3237.
>
> Yes that is correct in my case. We aren't using versions but would like to us the File module.

+1 to this. We are using redmine for run of the mill project management, with no svn attached. Would like to upload versionless files.

cheers
--------------------------------------------------------------------------------
Fixed in r2117.
Version field is no longer required. And this field is hidden if no version is defined.

This functionality depends on some refactoring done in r2116 so I'm sure it will be added to 0.8.0 release.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Jean-Philippe Lang wrote:
> This functionality depends on some refactoring done in r2116 so I'm sure it will be added to 0.8.0 release.

> * *Target version* set to _0.8.1_

Currently (31-12-2008) r2116 (still) isn't merged into the @0.8-stable branch@. Don't know if it's intended, forgotten, planned or whatsoever. If it will be merged then issue #1792 imho could be re-targetted to version @0.8.1@ too.
If it is indeed intended not to merge this changeset (r2116) into the @0.8-stable branch@, this issue should imho be re-targetted to version @0.9@...
--------------------------------------------------------------------------------
Oh, sorry. You should have read:

> This functionality depends on some refactoring done in r2116 so I'm *not* sure it will be added to 0.8.0 release.

It will be merged soon in 0.8 branch.
--------------------------------------------------------------------------------
Merged in r2217.
--------------------------------------------------------------------------------


related_issues

relates,Closed,602,File module will upload file even when no Version is specified, and appear successful.
relates,Closed,1409,Prevent adding of files if no version is defined
duplicates,Closed,1417,unable to attach files to projects without a version
duplicates,Closed,2297,File uploads fail without versions
duplicates,Closed,1980,silent failure when uploading file when no version specified
duplicates,Closed,853,Remove version requirement for file uploads

Admin Redmine さんがほぼ2年前に更新

  • カテゴリAttachments_19 にセット
  • 対象バージョン0.8.1_7 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0