You shouldn't have to modify the diff files even if the paths include . and ..
For patches generated in the root of the repository, the base directory should never have been ./, but / A patch generated in a subdirectory but trying to give a full file path (such as ../../trunk/path/File.java) should use the subdirectory as the base dir (namely /trunk/path/) All of this is handled for you if you use rbtools to post your changes. -David On Thu, Jun 11, 2015 at 8:31 AM Papaswede <papasw...@gmail.com> wrote: > Some more info here as well. > > If I generated a diff in /trunk/path and the patch file then ends up with > ../../trunk/path/File.java in it, reviewboard is not liking the ../../ and > I always get an error that says "../../trunk/path/File.java was not found > in the repository", so it seems that it's not interpreting the ../../ > correctly. > > > On Thursday, June 11, 2015 at 9:22:17 AM UTC-4, Papaswede wrote: > >> I recently upgraded our instance of ReviewBoard from 1.6.11 to 2.0.15. >> Quite a few people have been reporting issues with uploading diffs that >> contain ./ as the beginning of the file path and also using ./ as the base >> directory. They just get an "Unknown Error" on the patch upload screen. For >> example, if the patch file has this >> >> --- ./path/to/File.java >> +++ ./path/to/File.java >> >> that won't work. I've had to ask them to do a find and replace in the >> file and replace ./ with just / and use / as the basedir. So, the patch >> file ends up looking like this: >> >> --- /path/to/File.java >> +++ /path/to/File.java >> >> Should ./ not work anymore? Also, I know that ideally, we should be using >> the RBTools to upload files, but it hasn't been approved by our security >> department as a tool we can have installed yet. So, in the meantime I'm >> trying to make people's lives as simple as possible. >> >> Thanks! >> > -- > Supercharge your Review Board with Power Pack: > https://www.reviewboard.org/powerpack/ > Want us to host Review Board for you? Check out RBCommons: > https://rbcommons.com/ > Happy user? Let us know! https://www.reviewboard.org/users/ > --- > You received this message because you are subscribed to the Google Groups > "reviewboard" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to reviewboard+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/ Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/ Happy user? Let us know! https://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups "reviewboard" group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.