Re: attachments/diskfile entry not updated when moving issues
KM <info4km-/[email protected]> Fri, 10 Jun 2016 15:41:17 +0000 (UTC)
| Newsgroups | gmane.comp.bug-tracking.mantis.general |
|---|---|
| Message-ID | <[email protected]> |
--===============2470904006362894133==
Content-Type: multipart/alternative;
boundary="----=_Part_751925_1471166977.1465573277663"
Content-Length: 28905
------=_Part_751925_1471166977.1465573277663
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
I neglected to mention we are now using the 1.2.19, although I am not sure =
this will matter.
From: KM <info4km-/[email protected]>
To: mantis-help <[email protected]>=20
Sent: Friday, June 10, 2016 10:07 AM
Subject: Re: attachments/diskfile entry not updated when moving issues
=20
This has just happened again.=C2=A0 Even though the full path to the diskfi=
le attachment is in the record for the issue in the table, it tries to use =
the path from the project setup.=C2=A0 It looks like sometime in the past w=
e must have changed some of these locations or something and it is assuming=
the wrong path.=C2=A0=C2=A0 Why doesn't it use the full path to the file i=
f its in the DB.
Maybe this is a basic question.... I always put the full path to the file i=
n the attachments field when creating projects (i.e. /opt/mymantis/attachme=
nts/<myversionfolder>).=C2=A0=C2=A0 Maybe I shouldn't be?=C2=A0 Is it suppo=
sed to be relative to mantis or something.
I am not really sure what is going wrong.=C2=A0 I still think mantis code i=
s ignoring the full path to the file and using the projects attachment path=
to try and find it.
ThxKM
From: KM <info4km-/[email protected]>
To: mantis-help <[email protected]>=20
Sent: Thursday, July 31, 2014 2:37 PM
Subject: Re: attachments/diskfile entry not updated when moving issues
=20
OK.=C2=A0 For now I was able to move all of my issues.=C2=A0 I had to move =
the files to the folder where the originating project attachments were expe=
cted to be.=C2=A0 Then I had to update the manits bug file table records so=
the 'diskfile' had no path, only a filename, and so that the folder pointe=
d to the originating project's attachment folder (corresponding to where I =
moved the file).
Now moving the issue worked.=C2=A0=C2=A0 I wonder how much this is going to=
keep happening.=C2=A0=C2=A0 I have thousands of issues in the DB so there =
is no way I can go through all of these attachments and move them around...=
at least not easily.
We shall see how it goes.=C2=A0=C2=A0 I recently (a few months ago) upgrade=
d from 1.1.7 to 1.2.17.=C2=A0 I hope I did not miss any steps.=C2=A0 I don'=
t think so, but this is not the first issue that I have had.
Thank youKM
=20
From: KM <info4km-/[email protected]>
To: mantis-help <[email protected]>=20
Sent: Thursday, July 31, 2014 12:25 PM
Subject: Re: attachments/diskfile entry not updated when moving issues
=20
FYI - I noticed that now the moved entries are working for some updates -- =
I see now that there is a diskfile and folder field in the table.=C2=A0=C2=
=A0 for some entries the full path to the file is in the diskfile field, e.=
g. /opt/mantis/attachements/<file> instead of just <file>.=C2=A0=20
This is not the only issue though.=C2=A0 even if I fix the field in the db =
to point where the file actually is, it is still expecting it to be in the =
subfolder where the attachements for the project are.
I am really not sure how it got this way.=C2=A0=C2=A0=20
I am having a hard time moving these last few issues.
Thank youKM
From: KM <info4km-/[email protected]>
To: mantis-help <[email protected]>=20
Sent: Thursday, July 31, 2014 12:15 PM
Subject: attachments/diskfile entry not updated when moving issues
=20
I attempted to move a bunch of issues from one project to another.=C2=A0 It=
failed with the following:
Uploaded file could not be moved to the file storage directory. Directory e=
ither does not exist or not writable to webserver.
Then below it shows more detail:SYSTEM WARNING: 'rename(/opt/mantis/attachm=
ents/proj40/4.2/269657e041cab6943f7623738c7c503b,/opt/mantis/attachments/pr=
oj43/269657e041cab6943f7623738c7c503b) [function.rename]: No such file or d=
irectory' in '/opt/mantisbt-1.2.17/core/file_api.php' line 1025
SYSTEM WARNING: 'copy(/opt/mantis/attachments/proj40/4.2/269657e041cab6943f=
7623738c7c503b) [function.copy]: failed to open stream: No such file or dir=
ectory' in '/opt/mantisbt-1.2.17/core/file_api.php' line 1026
When moving my issue It is trying to copy the attachment 269657e041cab6943f=
7623738c7c503b from the "proj40/4.2" subdirectory of my attachments folder =
to the attachments directory of my new project (the target project for the =
move), "proj43".=C2=A0=C2=A0=20
Now theoretically this sounds good except that the file is=C2=A0not in a su=
bfolder, it is still in "attachments" directly.=C2=A0This issue was moved a=
bout 5 times to different projects.=C2=A0The record in the DB (mantis file =
table) for this file shows the correct location of the file directly in att=
achments.=C2=A0=C2=A0 When you move an issue it seems to be looking at the =
path set up for the current project and not where the attachments actually =
are.
Or - maybe the attachments should have been moved before but were not ? I a=
m not sure.=C2=A0=C2=A0=20
Note that moving the file to where it expects it allows the issue to be mov=
ed in most cases=C2=A0 - BUT -- the location is not being changed in the ma=
ntis file table.... so won't this happen again if we move the issue?=C2=A0=
=C2=A0 I am thinking that I need to=C2=A0 just keep all of the attachments =
for my new project right at the top level - and also going forward to avoid=
this issue.
Is anyone else having this problem and if show what did you do?
We are using mantis 1.2.17.
Thank youKM
=20
=20
=20
------=_Part_751925_1471166977.1465573277663
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<html><head></head><body><div style=3D"color:#000; background-color:#fff; f=
ont-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, =
sans-serif;font-size:16px"><div><span></span></div><div class=3D"qtdSeparat=
eBR" id=3D"yui_3_16_0_ym19_1_1465571897321_4643"><br>I neglected to mention=
we are now using the 1.2.19, although I am not sure this will matter.<br><=
/div><div class=3D"yahoo_quoted" id=3D"yui_3_16_0_ym19_1_1465571897321_4606=
" style=3D"display: block;"> <div id=3D"yui_3_16_0_ym19_1_1465571897321_46=
05" style=3D"font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, =
Lucida Grande, sans-serif; font-size: 16px;"> <div id=3D"yui_3_16_0_ym19_1_=
1465571897321_4604" style=3D"font-family: HelveticaNeue, Helvetica Neue, He=
lvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div id=3D"yu=
i_3_16_0_ym19_1_1465571897321_4603" dir=3D"ltr"> <font id=3D"yui_3_16_0_ym1=
9_1_1465571897321_4705" face=3D"Arial" size=3D"2"> <hr size=3D"1"> <b id=3D=
"yui_3_16_0_ym19_1_1465571897321_4704"><span id=3D"yui_3_16_0_ym19_1_146557=
1897321_4703" style=3D"font-weight: bold;">From:</span></b> KM <info4km@=
yahoo.com><br> <b><span style=3D"font-weight: bold;">To:</span></b> mant=
is-help <[email protected]> <br> <b id=3D"yui_3_16_=
0_ym19_1_1465571897321_4707"><span id=3D"yui_3_16_0_ym19_1_1465571897321_47=
06" style=3D"font-weight: bold;">Sent:</span></b> Friday, June 10, 2016 10:=
07 AM<br> <b><span style=3D"font-weight: bold;">Subject:</span></b> Re: att=
achments/diskfile entry not updated when moving issues<br> </font> </div> <=
div class=3D"y_msg_container"><br><div id=3D"yiv4965116726"><div><div style=
=3D"color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvet=
ica, Arial, Lucida Grande, sans-serif; font-size: 16px; background-color: r=
gb(255, 255, 255);"><div><span></span></div><div class=3D"yiv4965116726qtdS=
eparateBR" id=3D"yiv4965116726yui_3_16_0_ym19_1_1465567192939_4921">This ha=
s just happened again. Even though the full path to the diskfile atta=
chment is in the record for the issue in the table, it tries to use the pat=
h from the project setup. It looks like sometime in the past we must =
have changed some of these locations or something and it is assuming the wr=
ong path. Why doesn't it use the full path to the file if its i=
n the DB.</div><div class=3D"yiv4965116726qtdSeparateBR" id=3D"yiv496511672=
6yui_3_16_0_ym19_1_1465567192939_4937"><br clear=3D"none"></div><div class=
=3D"yiv4965116726qtdSeparateBR" id=3D"yiv4965116726yui_3_16_0_ym19_1_146556=
7192939_4938" dir=3D"ltr">Maybe this is a basic question.... I always put t=
he full path to the file in the attachments field when creating projects (i=
.e. /opt/mymantis/attachments/<myversionfolder>). Maybe I=
shouldn't be? Is it supposed to be relative to mantis or something.<=
/div><div class=3D"yiv4965116726qtdSeparateBR" dir=3D"ltr"><br clear=3D"non=
e"></div><div class=3D"yiv4965116726qtdSeparateBR" id=3D"yiv4965116726yui_3=
_16_0_ym19_1_1465567192939_4939" dir=3D"ltr">I am not really sure what is g=
oing wrong. I still think mantis code is ignoring the full path to th=
e file and using the projects attachment path to try and find it.</div><div=
class=3D"yiv4965116726qtdSeparateBR" id=3D"yiv4965116726yui_3_16_0_ym19_1_=
1465567192939_4940" dir=3D"ltr"><br clear=3D"none"></div><div class=3D"yiv4=
965116726qtdSeparateBR" dir=3D"ltr">Thx</div><div class=3D"yiv4965116726qtd=
SeparateBR" id=3D"yiv4965116726yui_3_16_0_ym19_1_1465567192939_4941" dir=3D=
"ltr">KM<br clear=3D"none"><br clear=3D"none"></div><div class=3D"yiv496511=
6726yqt3790153348" id=3D"yiv4965116726yqt54498"><div class=3D"yiv4965116726=
yahoo_quoted" id=3D"yiv4965116726yui_3_16_0_ym19_1_1465567192939_4838" styl=
e=3D"display: block;"> <div id=3D"yiv4965116726yui_3_16_0_ym19_1_146556719=
2939_4837" style=3D"font-family: HelveticaNeue, Helvetica Neue, Helvetica, =
Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div id=3D"yiv49651167=
26yui_3_16_0_ym19_1_1465567192939_4836" style=3D"font-family: HelveticaNeue=
, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 1=
6px;"> <div id=3D"yiv4965116726yui_3_16_0_ym19_1_1465567192939_4843" dir=3D=
"ltr"> <font id=3D"yiv4965116726yui_3_16_0_ym19_1_1465567192939_4943" face=
=3D"Arial" size=3D"2"> </font><hr size=3D"1" id=3D"yiv4965116726yui_3_16_0_=
ym19_1_1465567192939_4942"> <b><span style=3D"font-weight: bold;">From:</sp=
an></b> KM <info4km-/[email protected]><br clear=3D"none"> <b><span style=3D"f=
ont-weight: bold;">To:</span></b> mantis-help <[email protected]=
eforge.net> <br clear=3D"none"> <b><span style=3D"font-weight: bold;">Se=
nt:</span></b> Thursday, July 31, 2014 2:37 PM<br clear=3D"none"> <b><span =
style=3D"font-weight: bold;">Subject:</span></b> Re: attachments/diskfile e=
ntry not updated when moving issues<br clear=3D"none"> </div> <div class=
=3D"yiv4965116726y_msg_container" id=3D"yiv4965116726yui_3_16_0_ym19_1_1465=
567192939_4835"><br clear=3D"none"><div id=3D"yiv4965116726"><div id=3D"yiv=
4965116726yui_3_16_0_ym19_1_1465567192939_4834"><div id=3D"yiv4965116726yui=
_3_16_0_ym19_1_1465567192939_4833" style=3D"color: rgb(0, 0, 0); font-famil=
y: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-ser=
if; font-size: 10pt; background-color: rgb(255, 255, 255);"><div id=3D"yiv4=
965116726"><div id=3D"yiv4965116726yui_3_16_0_ym19_1_1465567192939_4832"><d=
iv id=3D"yiv4965116726yui_3_16_0_ym19_1_1465567192939_4831" style=3D"color:=
rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial=
, Lucida Grande, sans-serif; font-size: 10pt; background-color: rgb(255, 25=
5, 255);"><div id=3D"yiv4965116726yui_3_16_0_6_1406825816752_4"><span id=3D=
"yiv4965116726yui_3_16_0_6_1406825816752_11">OK. For now I was able t=
o move all of my issues. I had to move the files to the folder where =
the originating project attachments were expected to be. Then I had t=
o update the manits bug file table records so the 'diskfile' had no path, o=
nly a filename, and so that the folder pointed to the originating project's=
attachment folder (corresponding to where I moved the file).</span></div><=
div id=3D"yiv4965116726yui_3_16_0_6_1406825816752_14" style=3D"color: rgb(0=
, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Luci=
da Grande, sans-serif; font-size: 13.33px; font-style: normal; background-c=
olor: transparent;"><span id=3D"yiv4965116726yui_3_16_0_6_1406825816752_13"=
><br clear=3D"none"></span></div><div id=3D"yiv4965116726yui_3_16_0_6_14068=
25816752_16" style=3D"color: rgb(0, 0, 0); font-family: HelveticaNeue, Helv=
etica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13.33px=
; font-style: normal; background-color: transparent;"><span id=3D"yiv496511=
6726yui_3_16_0_6_1406825816752_15">Now moving the issue worked. =
I wonder how much this is going to keep happening. I have thou=
sands of issues in the DB so there is no way I can go through all of these =
attachments and move them around... at least not easily.</span></div><div i=
d=3D"yiv4965116726yui_3_16_0_6_1406825816752_19" style=3D"color: rgb(0, 0, =
0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Gr=
ande, sans-serif; font-size: 13.33px; font-style: normal; background-color:=
transparent;"><span id=3D"yiv4965116726yui_3_16_0_6_1406825816752_18"><br =
clear=3D"none"></span></div><div id=3D"yiv4965116726yui_3_16_0_6_1406825816=
752_21" style=3D"color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica=
Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13.33px; fon=
t-style: normal; background-color: transparent;"><span id=3D"yiv4965116726y=
ui_3_16_0_6_1406825816752_20">We shall see how it goes. I recen=
tly (a few months ago) upgraded from 1.1.7 to 1.2.17. I hope I did no=
t miss any steps. I don't think so, but this is not the first issue t=
hat I have had.</span></div><div class=3D"yiv4965116726ms__id13414" style=
=3D"color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvet=
ica, Arial, Lucida Grande, sans-serif; font-size: 13.33px; font-style: norm=
al; background-color: transparent;"><span><br clear=3D"none"></span></div><=
div class=3D"yiv4965116726ms__id13414" style=3D"color: rgb(0, 0, 0); font-f=
amily: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans=
-serif; font-size: 13.33px; font-style: normal; background-color: transpare=
nt;"><span>Thank you</span></div><div class=3D"yiv4965116726ms__id13414" st=
yle=3D"color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Hel=
vetica, Arial, Lucida Grande, sans-serif; font-size: 13.33px; font-style: n=
ormal; background-color: transparent;"><span>KM</span></div><div id=3D"yiv4=
965116726yui_3_16_0_6_1406825816752_10"><br id=3D"yiv4965116726yui_3_16_0_6=
_1406825816752_5" clear=3D"none"></div> <div class=3D"yiv4965116726qtdSepa=
rateBR"><br clear=3D"none"><br clear=3D"none"></div><div class=3D"yiv496511=
6726yqt2904985837" id=3D"yiv4965116726yqt98048"><div class=3D"yiv4965116726=
yqt2340948766" id=3D"yiv4965116726yqt08009"><div class=3D"yiv4965116726ms__=
id11415" id=3D"yiv4965116726yui_3_16_0_6_1406825816752_7" style=3D"font-fam=
ily: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-s=
erif; font-size: 10pt;"> <div class=3D"yiv4965116726ms__id11419" id=3D"yiv4=
965116726yui_3_16_0_1_1406825816752_2834" style=3D"font-family: HelveticaNe=
ue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size:=
12pt;"> <div id=3D"yiv4965116726yui_3_16_0_1_1406825816752_2833" dir=3D"lt=
r"> <div class=3D"yiv4965116726hr yiv4965116726yui-non yiv4965116726yui-ski=
p" style=3D"margin: 5px 0px; padding: 0px; border: 1px solid rgb(204, 204, =
204); border-image: none; height: 0px; line-height: 0; font-size: 0px;"></d=
iv> <font id=3D"yiv4965116726yui_3_16_0_1_1406825816752_2837" face=3D"Aria=
l" size=3D"2"> <b id=3D"yiv4965116726yui_3_16_0_1_1406825816752_2836"><span=
id=3D"yiv4965116726yui_3_16_0_1_1406825816752_2835" style=3D"font-weight: =
bold;">From:</span></b> KM <info4km-/[email protected]><br clear=3D"none"> <b =
id=3D"yiv4965116726yui_3_16_0_1_1406825816752_2839"><span id=3D"yiv49651167=
26yui_3_16_0_1_1406825816752_2838" style=3D"font-weight: bold;">To:</span><=
/b> mantis-help <[email protected]> <br clear=3D"no=
ne"> <b id=3D"yiv4965116726yui_3_16_0_1_1406825816752_2841"><span id=3D"yiv=
4965116726yui_3_16_0_1_1406825816752_2840" style=3D"font-weight: bold;">Sen=
t:</span></b> Thursday, July 31, 2014 12:25 PM<br clear=3D"none"> <b><span =
style=3D"font-weight: bold;">Subject:</span></b> Re: attachments/diskfile e=
ntry not updated when moving issues<br clear=3D"none"> </font> </div> <div =
class=3D"yiv4965116726y_msg_container"><br clear=3D"none"><div id=3D"yiv496=
5116726"><div><div class=3D"yiv4965116726ms__id11425" style=3D"color: rgb(0=
, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Luci=
da Grande, sans-serif; font-size: 10pt; background-color: rgb(255, 255, 255=
);"><div><span><br clear=3D"none"></span></div><div class=3D"yiv4965116726m=
s__id11426" style=3D"color: rgb(0, 0, 0); font-family: HelveticaNeue, Helve=
tica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13.33px;=
font-style: normal; background-color: transparent;"><span>FYI - I noticed =
that now the moved entries are working for some updates -- I see now that t=
here is a
diskfile and folder field in the table. for some entries the f=
ull path to the file is in the diskfile field, e.g. /opt/mantis/attachement=
s/<file> instead of just <file>. </span></div><div class=
=3D"yiv4965116726ms__id11427" style=3D"color: rgb(0, 0, 0); font-family: He=
lveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; f=
ont-size: 13.33px; font-style: normal; background-color: transparent;"><spa=
n><br clear=3D"none"></span></div><div class=3D"yiv4965116726ms__id11428" s=
tyle=3D"color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, He=
lvetica, Arial, Lucida Grande, sans-serif; font-size: 13.33px; font-style: =
normal; background-color: transparent;"><span>This is not the only issue th=
ough. even if I fix the field in the db to point where the file actua=
lly is, it is still expecting it to be in the subfolder where the attacheme=
nts for the project are.</span></div><div class=3D"yiv4965116726ms__id11429=
" style=3D"color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue,=
Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13.33px; font-styl=
e: normal; background-color: transparent;"><span><br clear=3D"none"></span>=
</div><div class=3D"yiv4965116726ms__id11430" style=3D"color: rgb(0, 0, 0);=
font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grand=
e, sans-serif; font-size: 13.33px; font-style: normal; background-color: tr=
ansparent;"><span>I am really not sure how it got this way. </s=
pan></div><div class=3D"yiv4965116726ms__id11431" style=3D"color: rgb(0, 0,=
0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida G=
rande, sans-serif; font-size: 13.33px; font-style: normal; background-color=
: transparent;"><span><br clear=3D"none"></span></div><div class=3D"yiv4965=
116726ms__id11432" style=3D"color: rgb(0, 0, 0); font-family: HelveticaNeue=
, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 1=
3.33px; font-style: normal; background-color: transparent;"><span>I am havi=
ng a hard time moving these last few issues.</span></div><div class=3D"yiv4=
965116726ms__id11433" style=3D"color: rgb(0, 0, 0); font-family: HelveticaN=
eue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size=
: 13.33px; font-style: normal; background-color: transparent;"><span><br cl=
ear=3D"none"></span></div><div class=3D"yiv4965116726ms__id11434" style=3D"=
color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica,=
Arial, Lucida Grande, sans-serif; font-size: 13.33px; font-style: normal; =
background-color: transparent;"><span>Thank you</span></div><div class=3D"y=
iv4965116726ms__id11435" style=3D"color: rgb(0, 0, 0); font-family: Helveti=
caNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-s=
ize: 13.33px; font-style: normal; background-color: transparent;"><span>KM<=
/span></div><div><br clear=3D"none"></div> <div class=3D"yiv4965116726yqt5=
150246522" id=3D"yiv4965116726yqt67339"><div class=3D"yiv4965116726ms__id11=
436" style=3D"font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial,=
Lucida Grande, sans-serif; font-size: 10pt;"> <div class=3D"yiv4965116726m=
s__id11437" style=3D"font-family: HelveticaNeue, Helvetica Neue, Helvetica,=
Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div dir=3D"ltr"> <di=
v class=3D"yiv4965116726hr" style=3D"margin: 5px 0px; padding: 0px; border:=
1px solid rgb(204, 204, 204); border-image: none; height: 0px; line-height=
: 0; font-size: 0px;"></div> <font face=3D"Arial" size=3D"2"> <b><span sty=
le=3D"font-weight: bold;">From:</span></b> KM <info4km-/[email protected]><br =
clear=3D"none"> <b><span style=3D"font-weight: bold;">To:</span></b> mantis=
-help <[email protected]> <br clear=3D"none"> <b><s=
pan style=3D"font-weight: bold;">Sent:</span></b> Thursday, July 31, 2014 1=
2:15 PM<br clear=3D"none"> <b><span style=3D"font-weight: bold;">Subject:</=
span></b> attachments/diskfile entry
not updated when moving
issues<br clear=3D"none"> </font> </div> <div class=3D"yiv4965116726y_msg_=
container"><br clear=3D"none"><div id=3D"yiv4965116726"><div><div class=3D"=
yiv4965116726ms__id11444" style=3D"color: rgb(0, 0, 0); font-family: Helvet=
icaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-=
size: 10pt; background-color: rgb(255, 255, 255);"><div>I attempted to move=
a bunch of issues from one project to another. It failed with the fo=
llowing:</div><div><br clear=3D"none"></div><div style=3D"color: red;">Uplo=
aded file could not be moved to the file storage directory. Directory eithe=
r does not exist or not writable to webserver.</div><div style=3D"color: re=
d;"><br clear=3D"none"></div><div style=3D"color: red;"><font color=3D"#000=
000">Then below it shows more detail:</font></div><div style=3D"color: red;=
">SYSTEM WARNING: 'rename(/opt/mantis/attachments/proj40/4.2/269657e041cab6=
943f7623738c7c503b,/opt/mantis/attachments/proj43/269657e041cab6943f7623738=
c7c503b) [<a href=3D"https://bugtracker.netforensics.com/function.rename" t=
arget=3D"_blank" rel=3D"nofollow" shape=3D"rect"><font color=3D"#0066cc">fu=
nction.rename</font></a>]: No such file or directory' in '/opt/mantisbt-1.2=
.17/core/file_api.php' line 1025</div><div class=3D"yiv4965116726ms__id1144=
9" style=3D"color: rgb(0, 102, 204); font-family: HelveticaNeue, Helvetica =
Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13.33px; font=
-style: normal; background-color: transparent;"><br clear=3D"none"></div><d=
iv style=3D"color: red;">SYSTEM WARNING: 'copy(/opt/mantis/attachments/proj=
40/4.2/269657e041cab6943f7623738c7c503b) [<a href=3D"https://bugtracker.net=
forensics.com/function.copy" target=3D"_blank" rel=3D"nofollow" shape=3D"re=
ct"><font color=3D"#0066cc">function.copy</font></a>]: failed to open strea=
m: No such file or directory' in '/opt/mantisbt-1.2.17/core/file_api.php' l=
ine 1026</div><div class=3D"yiv4965116726ms__id11451" style=3D"color: rgb(0=
, 102, 204); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, =
Lucida Grande, sans-serif; font-size: 13.33px; font-style: normal; backgrou=
nd-color: transparent;"><br clear=3D"none"></div><div class=3D"yiv496511672=
6ms__id11452" style=3D"color: rgb(0, 102, 204); font-family: HelveticaNeue,=
Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13=
.33px; font-style: normal; background-color: transparent;"><font color=3D"#=
000000">When moving my issue It is trying to copy the attachment 269657e041=
cab6943f7623738c7c503b from the "proj40/4.2" subdirectory of my attachments=
folder to the attachments directory of my new project (the target project =
for the move), "proj43". </font></div><div class=3D"yiv49651167=
26ms__id11453" style=3D"color: rgb(0, 0, 0); font-family: HelveticaNeue, He=
lvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13.33=
px; font-style: normal; background-color: transparent;"><font color=3D"#000=
000"><br clear=3D"none"></font></div><div class=3D"yiv4965116726ms__id11454=
" style=3D"color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue,=
Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13.33px; font-styl=
e: normal; background-color: transparent;">Now theoretically this sounds go=
od except that the file is not in a subfolder, it is still in
"attachments" directly. This issue was moved about 5 times to differe=
nt projects. The record in the DB (mantis file table) for this file sh=
ows the
correct location of the file directly in attachments. When you=
move an issue it seems to be looking at the path set up for the current pr=
oject and not where the attachments actually are.</div><div class=3D"yiv496=
5116726ms__id11455" style=3D"color: rgb(0, 0, 0); font-family: HelveticaNeu=
e, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: =
13.33px; font-style: normal; background-color: transparent;"><br clear=3D"n=
one"></div><div class=3D"yiv4965116726ms__id11456" style=3D"color: rgb(0, 0=
, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida =
Grande, sans-serif; font-size: 13.33px; font-style: normal; background-colo=
r: transparent;">Or - maybe the attachments should have been moved before b=
ut were not ? I am not sure. </div><div class=3D"yiv4965116726m=
s__id11457" style=3D"color: rgb(0, 0, 0); font-family: HelveticaNeue, Helve=
tica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13.33px;=
font-style: normal; background-color: transparent;"><br clear=3D"none"></d=
iv><div class=3D"yiv4965116726ms__id11458" style=3D"color: rgb(0, 0, 0); fo=
nt-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, =
sans-serif; font-size: 13.33px; font-style: normal; background-color: trans=
parent;">Note that moving the file to where it expects it allows the issue =
to be moved in most cases - BUT -- the location is not being changed =
in the mantis file table.... so won't this happen again if we move the issu=
e? I am thinking that I need to just keep all of the atta=
chments for my new project right at the top level - and also going forward =
to avoid this issue.</div><div class=3D"yiv4965116726ms__id11459" style=3D"=
color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica,=
Arial, Lucida Grande, sans-serif; font-size: 13.33px; font-style: normal; =
background-color: transparent;"><br clear=3D"none"></div><div class=3D"yiv4=
965116726ms__id11460" style=3D"color: rgb(0, 0, 0); font-family: HelveticaN=
eue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size=
: 13.33px; font-style: normal; background-color: transparent;">Is anyone el=
se having this
problem and if show what did you do?</div><div class=3D"yiv4965116726ms__i=
d11461" style=3D"color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica=
Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13.33px; fon=
t-style: normal; background-color: transparent;"><br clear=3D"none"></div><=
div class=3D"yiv4965116726ms__id11462" style=3D"color: rgb(0, 0, 0); font-f=
amily: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans=
-serif; font-size: 13.33px; font-style: normal; background-color: transpare=
nt;">We are using mantis 1.2.17.</div><div class=3D"yiv4965116726ms__id1146=
3" style=3D"color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue=
, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13.33px; font-sty=
le: normal; background-color: transparent;"><br clear=3D"none"></div><div c=
lass=3D"yiv4965116726ms__id11464" style=3D"color: rgb(0, 0, 0); font-family=
: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-seri=
f; font-size: 13.33px; font-style: normal; background-color: transparent;">=
Thank you</div><div class=3D"yiv4965116726ms__id11465" style=3D"color: rgb(=
0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Luc=
ida Grande, sans-serif; font-size: 13.33px; font-style: normal; background-=
color: transparent;">KM</div></div></div></div><br clear=3D"none"><br clear=
=3D"none"></div> </div> </div></div> </div></div></div><br clear=3D"none">=
<br clear=3D"none"></div> </div> </div></div></div> </div></div></div></di=
v></div></div><br clear=3D"none"><br clear=3D"none"></div> </div> </div> <=
/div></div></div></div></div><br><br></div> </div> </div> </div></div></bo=
dy></html>
------=_Part_751925_1471166977.1465573277663--
--===============2470904006362894133==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
--===============2470904006362894133==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
mantisbt-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mantisbt-help
--===============2470904006362894133==--